[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] DomU sees only 512MB RAM with PCI-passthrough


  • To: xen-users@xxxxxxxxxxxxx
  • From: Christian Holpert <christian@xxxxxxxxxx>
  • Date: Thu, 13 Dec 2012 12:43:38 +0100
  • Delivery-date: Thu, 13 Dec 2012 11:45:11 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello Ian,

At 10:38 13.12.2012, you wrote:
On Wed, 2012-12-12 at 17:04 +0000, Christian Holpert wrote:
> Please tell me, if you need more logs.

dmesg of the guest booting both with and without the pci device might be
interesting. So would the output of "xl -vvv create" in both cases.

attached.

Is the 512MB number coming only from within the guest or is it also
visible in e.g. xl list?

with pci:
xen xen # xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2557     4     r-----    2928.2
nodi                                        27   512     3     r-----      34.1

--------------

without pci:
xen xen # xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2557     4     r-----    2953.2
nodi                                        28  2048     3     -b----       0.6

You could try ballooning up inside the guest,
by writing to the /sys/devices/system/xen_memory/xen_memory0/target_kb
sysfs node.

(with pci:)
No effect. sysfs already shows 2GB, but is ignored for values above 512MB.

nodi ~ # cat /sys/devices/system/xen_memory/xen_memory0/target_kb
2097152
nodi ~ # cat /proc/meminfo
MemTotal:         511268 kB
MemFree:          266328 kB
Buffers:           16572 kB
Cached:           152604 kB
SwapCached:            0 kB
Active:            65400 kB
Inactive:         157904 kB
Active(anon):      54180 kB
Inactive(anon):      332 kB
Active(file):      11220 kB
Inactive(file):   157572 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         511268 kB
LowFree:          266328 kB
SwapTotal:        983036 kB
SwapFree:         983036 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         54208 kB
Mapped:            33852 kB
Shmem:               388 kB
Slab:               8552 kB
SReclaimable:       3284 kB
SUnreclaim:         5268 kB
KernelStack:         760 kB
PageTables:         1076 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1238668 kB
Committed_AS:     237812 kB
VmallocTotal:     339960 kB
VmallocUsed:        7816 kB
VmallocChunk:     331464 kB
DirectMap4k:      524288 kB
DirectMap2M:           0 kB
nodi ~ # echo 1048576 > /sys/devices/system/xen_memory/xen_memory0/target_kb
nodi ~ # cat /sys/devices/system/xen_memory/xen_memory0/target_kb
1048576
nodi ~ # cat /proc/meminfo
MemTotal:         511268 kB
MemFree:          242920 kB
Buffers:           16580 kB
[...]

I was able to change to values below 512MB though. So the interface is working at least.

Lastly you should try a more recent domU kernel.

today all tests above done with 3.6.6-gentoo.
Tried 2.6.38 and 3.4.11 yesterday.

Thanks for taking time,
Christian


--
Markt-Apotheke Christian Holpert e.K., Mömbris
  http://www.marktapotheke.org - info@xxxxxxxxxxxxxxxxx
  http://www.blue-essentials-shop.de - info@xxxxxxxxxxxxxxxxxxxxxxx
  Apotheker Christian Holpert
Im Markthof 5
63776 Mömbris
  Tel.: 06029-1379 Fax: 9986589

Amtsgericht Aschaffenburg, HR.A, Registernummer 2165

Attachment: dmesg_with_pci.log
Description: Binary data

Attachment: dmesg_without_pci.log
Description: Binary data

Attachment: xl_without_pci.log
Description: Binary data

Attachment: xl_with_pci.log
Description: Binary data

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.