![/proc/iomem 显示多个内存映射](https://linux22.com/image/955807/%2Fproc%2Fiomem%20%E6%98%BE%E7%A4%BA%E5%A4%9A%E4%B8%AA%E5%86%85%E5%AD%98%E6%98%A0%E5%B0%84.png)
我们连接了一张英特尔 NIC 卡,lspci 如下所示,NIC 驱动程序为“ixgbe”。/proc/iomem 显示为驱动程序 ixgbe、81:00.0 和 81:00.1 映射了多个内存。我认为内存应该只分配给端口(81:00.0 和 81:00.1)。您能否让我理解为什么会有重复的不同分配,如 0 Mb、15 Mb 和 32 Mb。TIA。
1.) lspci shows one NIC with two ports.
81:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
81:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)```
2.) /proc/iomem shows multiple entries for that NIC.
3355443200 to 3372220415 bytes (3200 to 3215 Mb) - ixgbe <-- 15 Mb
3372220416 to 3388997631 bytes (3216 to 3231 Mb) - ixgbe <-- 15 Mb
3388997632 to 3389014015 bytes (3232 to 3232 Mb) - ixgbe <-- 0 Mb
3389014016 to 3389030399 bytes (3232 to 3232 Mb) - ixgbe <-- 0 Mb
355443200 to 3390046207 bytes (3200 to 3232 Mb) - PCI Bus 0000:81 <-- 32 Mb
3355443200 to 3372220415 bytes (3200 to 3215 Mb) - 0000:81:00.1 <-- 15 Mb
3372220416 to 3388997631 bytes (3216 to 3231 Mb) - 0000:81:00.0 <-- 15 Mb
3388997632 to 3389014015 bytes (3232 to 3232 Mb) - 0000:81:00.1 <-- 0 Mb
3389014016 to 3389030399 bytes (3232 to 3232 Mb) - 0000:81:00.0 <-- 0 Mb
4123168604160 to 4123172798463 bytes (3932160 to 3932163 Mb) - PCI Bus 0000:81 <-- 3 Mb
4123168604160 to 4123169652735 bytes (3932160 to 3932160 Mb) - 0000:81:00.0 <-- 0 Mb
4123169652736 to 4123170701311 bytes (3932161 to 3932161 Mb) - 0000:81:00.0 <-- 0 Mb
4123170701312 to 4123171749887 bytes (3932162 to 3932162 Mb) - 0000:81:00.1 <-- 0 Mb
4123171749888 to 4123172798463 bytes (3932163 to 3932163 Mb) - 0000:81:00.1 <-- 0 Mb