[Lguest] memory question
Don W Rudish
dwrudis at sandia.gov
Thu Feb 11 06:04:51 EST 2010
Can someone please help me understand why my lguest guest kernel uses
~26mb of memory for my ~3mb kernel?
Here are the reservations that I pulled from dmesg. I also attached my
dmesg output.
4k for BIOS
2.7mb for DATA
1.4mb for RAMDISK
36kb for PGTABLE
4kb for BOOTMAP
Thanks,
-Don
Here is my dmesg output:
KERNEL supported
cpus:
Intel
GenuineIntel
AMD
AuthenticAMD
NSC Geode by
NSC
Cyrix
CyrixInstead
Centaur
CentaurHauls
Transmeta
GenuineTMx86
Transmeta
TransmetaCPU
UMC UMC UMC
UMC
BIOS-provided physical RAM
map:
LGUEST: 0000000000000000 - 0000000001e00000
(usable)
DMI not present or
invalid.
last_pfn = 0x1e00 max_arch_pfn =
0x100000
initial memory mapped : 0 -
08000000
init_memory_mapping:
0000000000000000-0000000001e00000
0000000000 - 0001e00000 page
4k
kernel direct mapping tables up to 1e00000 @
7000-12000
RAMDISK: 01c8c000 -
01e00000
30MB LOWMEM
available.
mapped low ram: 0 -
01e00000
low ram: 0 -
01e00000
node 0 low ram: 00000000 -
01e00000
node 0 bootmap 00001000 -
000013c0
(5 early reservations) ==> bootmem [0000000000 -
0001e00000]
#0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 -
0000001000]
#1 [0001000000 - 00012b1878] TEXT DATA BSS ==> [0001000000 -
00012b1878]
#2 [0001c8c000 - 0001e00000] RAMDISK ==> [0001c8c000 -
0001e00000]
#3 [0000007000 - 0000010000] PGTABLE ==> [0000007000 -
0000010000]
#4 [0000001000 - 0000002000] BOOTMAP ==> [0000001000 -
0000002000]
Zone PFN
ranges:
DMA 0x00000000 ->
0x00001000
Normal 0x00001000 ->
0x00001e00
Movable zone start PFN for each
node
early_node_map[1] active PFN
ranges
0: 0x00000000 ->
0x00001e00
On node 0 totalpages:
7680
free_area_init_node: node 0, pgdat c12466e0, node_mem_map
c12b2000
DMA zone: 32 pages used for
memmap
DMA zone: 0 pages
reserved
DMA zone: 4064 pages, LIFO
batch:0
Normal zone: 28 pages used for
memmap
Normal zone: 3556 pages, LIFO
batch:0
Allocating PCI resources starting at 1e00000 (gap:
1e00000:fe200000)
Booting paravirtualized kernel on
lguest
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
7620
Kernel command line: hostname=test1-vm1 mac=00:00:00:00:00:01
ip=10.11.0.1 SB=
PID hash table entries: 128 (order: -3, 512
bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384
bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192
bytes)
Enabling fast FPU save and restore...
done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
Memory: 26148k/30720k available (1815k kernel code, 4568k reserved, 527k
data, 216k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xffbe5000 - 0xffbff000 ( 104 kB)
vmalloc : 0xc2600000 - 0xffbe3000 ( 981 MB)
lowmem : 0xc0000000 - 0xc1e00000 ( 30 MB)
.init : 0xc124a000 - 0xc1280000 ( 216 kB)
.data : 0xc11c5ea5 - 0xc1249b70 ( 527 kB)
.text : 0xc1000000 - 0xc11c5ea5 (1815 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:16
Console: colour dummy device 80x25
console [hvc0] enabled
Trying to install interrupt handler for IRQ0
Marking TSC unstable due to could not calculate TSC khz
Calibrating delay loop... 814.28 BogoMIPS (lpj=4071424)
Mount-cache hash table entries: 512
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU: AMD QEMU Virtual CPU version 0.11.0 stepping 03
NET: Registered protocol family 16
Device at 0 has size 37
Device at 37 has size 21
PCI: Fatal: No config space access function found
bio: create slab <bio-0> at 0
vgaarb: loaded
PCI: System does not support PCI
PCI: System does not support PCI
Switching to clocksource lguest
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
Unpacking initramfs...
Freeing initrd memory: 1488k freed
More information about the Lguest
mailing list