Hi Ryan,

My ~700MB came from 'prtconf -v' and looking at the difference between physical 
and reported;

amup# prtconf | head -2
System Configuration:  Sun Microsystems  i86pc
Memory size: 3396 Megabytes
amup# 

Doing a little more digging with xm the numbers look a lot worse and don't seem 
to make much sense; sense in that prtconf is reporting more memory than xm 
dmesg is reporting as being allocated...

An extract from 'xm dmesg'

 xVM version 3.0.4-1-xvm
 Latest ChangeSet: Tue Dec 04 09:56:10 2007 +0000 13231:f6074ad033f3

(XEN) Command line: /boot/amd64/xen.gz
(XEN) Physical RAM map:
(XEN)  0000000000000000 - 00000000000a0000 (usable)
(XEN)  00000000000f0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000dfe8cc00 (usable)
(XEN)  00000000dfe8cc00 - 00000000dfe8ec00 (ACPI NVS)
(XEN)  00000000dfe8ec00 - 00000000dfe90c00 (ACPI data)
(XEN)  00000000dfe90c00 - 00000000e4000000 (reserved)
(XEN)  00000000fec00000 - 00000000fed00400 (reserved)
(XEN)  00000000fed20000 - 00000000feda0000 (reserved)
(XEN)  00000000fee00000 - 00000000fef00000 (reserved)
(XEN)  00000000ffb00000 - 0000000100000000 (reserved)
(XEN) System RAM: 3582MB (3668144kB)

Aside from the non-contiguous memory ranges (where did they go?) I have 
0xDFE2CC00 usable memory, or 3582MB.  4096 - 3582 = 514MB lost before anything 
is allocated.

A little later:

(XEN)  Dom0 alloc.:   000000000c000000->0000000010000000 (852864 pages to be 
allocated)

So that means Dom0 only has 3331MB allocated to it (another 150MB gone).  As I 
only have a Dom0 (couldn't get my linux of choice installed as a domU) all 
memory should be allocated to it.  virsh dominfo 0 shows:

Max memory:     no limit       
Used memory:    3065856 kB

This is 2994MB out of 4GB allocated to a single Dom0; it is interesting that 
prtconf and virsh don't agree on how much memory dom0 is using.

I agree that I shouldn't be losing 700MB.  Tomorrow given some time I'll 
re-test the ugen issue and log as a bug if it still holds.  Is this memory 
issue something which should be reported as a bug or am I missing a subtlety 
with opensolaris & Xen's reporting & usage of memory?

Thanks.
 
 
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to