On 16.09.2014 11:20, Victor L. wrote:
>
>
> On Tuesday, September 16, 2014 1:03:50 AM UTC+2, Marek Marczykowski-Górecki
> wrote:
>>
>> On 10.09.2014 13:19, Victor L. wrote:
>>> Looking for a solution to the 4306MB mem limit for an AppVM in my 16GB
>> PC,
>>> regardless of the max memory I set for it...
>>
>> Do you mean "xen:balloon: reserve_additional_memory: add_memory() failed:
>> -17"
>> problem?
>>
>
> Yes, where should I look for info on how to solve this? or whose bugzilla
> should I ping?
I didn't investigated the issue before, it isn't so common to have more than
4GB RAM in a single VM... Anyway did a quick search and found this bugreport,
with a lot of information:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1304001
It is mostly about HVM, but people report there the same issue also for PV.
There is also linked patch, but it only mute the message.
Then I found that even with maxmem=8192, VM kernel reports only ~4.5GB available:
[user@testvm ~]$ dmesg|grep Memory
[ 0.000000] Memory: 269840K/4505212K available (5049K kernel code, 576K
rwdata, 2348K rodata, 952K init, 992K bss, 4235372K reserved)
It is also consistent with:
[ 0.000000] e820: last_pfn = 0x113000 max_arch_pfn = 0x400000000
So this looks like the problem - kernel do not notice memory available above
that limit. Even with "mem=8G" parameter. Initially I though this is a VM
kernel problem, but now I cannot rule out toolstack(xl) or hypervisor itself.
Xen-balloon driver parameters confirming stuck at 4400MB:
[user@testvm xen_memory0]$ pwd
/sys/devices/system/xen_memory/xen_memory0
[user@testvm xen_memory0]$ cat target_kb
5057596
[user@testvm xen_memory0]$ cat info/current_kb
4505600
Currently this is really low prio problem, surely I will not investigate it
further before final R2 release. But if you want to help, you can search
xen-devel ML for similar reports (that kernel message is good search term) and
posting above details there, or starting new thread there.
BTW Attached debug messages from xl create, you can get those by replacing
line 1721 of /usr/lib64/python2.7/site-package/qubes/modules/000QubesVm.py with:
xl_cmdline = ['sudo', '/usr/sbin/xl', '-v', 'create', self.conf_file,
'-d', '-p']
(added -v and replaced -q with -d)