Kenichi Maehashi's Blog

脳内コアダンプ

RSS
Category: Linux
いちいち数えるの面倒だよ! ということで、よく使いそうなのでメモ。
perl -nle 'm/^(\s+)?(.+?)-(.+?)\s(.+)$/; print $1,$2,"-",$3," (",hex($3)-hex($2)+1," bytes) ",$4' < /proc/iomem
結果:
00000000-00000fff (4096 bytes) : reserved
00001000-0009d3ff (640000 bytes) : System RAM
0009d400-0009ffff (11264 bytes) : reserved
000c0000-000c7fff (32768 bytes) : Video ROM
000c8000-000c9dff (7680 bytes) : Adapter ROM
000ca000-000cafff (4096 bytes) : Adapter ROM
000dc000-000fffff (147456 bytes) : reserved
000f0000-000fffff (65536 bytes) : System ROM
00100000-bf79ffff (3211395072 bytes) : System RAM
01000000-014f72d4 (5206741 bytes) : Kernel code
014f72d5-01c066cf (7402491 bytes) : Kernel data
01d49000-0200c7e3 (2897892 bytes) : Kernel bss
bf7a0000-bf7acfff (53248 bytes) : ACPI Tables
bf7ad000-bf7adfff (4096 bytes) : ACPI Non-volatile Storage
bf7ae000-bf7fefff (331776 bytes) : reserved
bf7ff000-bf7fffff (4096 bytes) : RAM buffer
bf800000-bfffffff (8388608 bytes) : reserved
c0000000-c01fffff (2097152 bytes) : PCI Bus 0000:10
c0200000-c03fffff (2097152 bytes) : PCI Bus 0000:10
c0400000-c05fffff (2097152 bytes) : PCI Bus 0000:1a
c0600000-c07fffff (2097152 bytes) : PCI Bus 0000:1a
c0800000-c09fffff (2097152 bytes) : PCI Bus 0000:1e
c0a00000-c0bfffff (2097152 bytes) : PCI Bus 0000:20
c0c00000-c0dfffff (2097152 bytes) : PCI Bus 0000:20
dd000000-ddffffff (16777216 bytes) : PCI Bus 0000:1c
dd000000-ddffffff (16777216 bytes) : 0000:1c:00.0
de000000-de7fffff (8388608 bytes) : PCI Bus 0000:01
de000000-de7fffff (8388608 bytes) : 0000:01:00.0
de000000-de7fffff (8388608 bytes) : ib_mthca
de800000-df0fffff (9437184 bytes) : PCI Bus 0000:1c
de800000-deffffff (8388608 bytes) : 0000:1c:00.0
df000000-df003fff (16384 bytes) : 0000:1c:00.0
df010000-df01ffff (65536 bytes) : 0000:1c:00.0
df100000-df1fffff (1048576 bytes) : PCI Bus 0000:01
df100000-df1fffff (1048576 bytes) : 0000:01:00.0
df100000-df1fffff (1048576 bytes) : ib_mthca
df200000-df2fffff (1048576 bytes) : PCI Bus 0000:1e
df200000-df20ffff (65536 bytes) : 0000:1e:00.0
df200000-df20ffff (65536 bytes) : tg3
df502000-df5023ff (1024 bytes) : 0000:00:1a.0
df502000-df5023ff (1024 bytes) : ehci_hcd
df503000-df5033ff (1024 bytes) : 0000:00:1d.0
df503000-df5033ff (1024 bytes) : ehci_hcd
df504000-df5047ff (2048 bytes) : 0000:00:1f.2
df504000-df5047ff (2048 bytes) : ahci
df505000-df5050ff (256 bytes) : 0000:00:1f.3
e0000000-efffffff (268435456 bytes) : reserved
e0000000-efffffff (268435456 bytes) : pnp 00:01
e0000000-e2ffffff (50331648 bytes) : PCI MMCONFIG 0 [00-2f]
fc000000-fcffffff (16777216 bytes) : pnp 00:01
fe710000-fe710fff (4096 bytes) : pnp 00:01
fe711000-fe711fff (4096 bytes) : pnp 00:01
fe713000-fe713fff (4096 bytes) : pnp 00:01
fe800000-fe9fffff (2097152 bytes) : pnp 00:01
feb00000-febfffff (1048576 bytes) : pnp 00:01
fec00000-fec0ffff (65536 bytes) : reserved
fec00000-fec00fff (4096 bytes) : IOAPIC 0
fed00000-fed003ff (1024 bytes) : HPET 0
fed20000-fed44fff (151552 bytes) : pnp 00:01
fed45000-fed8ffff (307200 bytes) : pnp 00:01
fee00000-fee00fff (4096 bytes) : Local APIC
fee00000-fee00fff (4096 bytes) : reserved
ff000000-ffffffff (16777216 bytes) : reserved
100000000-83fffffff (31138512896 bytes) : System RAM
追記: +1 してなかったので、修正。

Comments

Leave Yours...
Name:
E-mail / URL (optional):
Comment:
Are You Robot?: