Skip to contentSkip to conversation

kvm errors when using greater than 3572m of memory

DISCUSSION Brian Almeida 2 participants 7 messages Dec 7, 2007 – Dec 8, 2007 6 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I get the following error when I give -m 3752 or higher:

stormcrow:/data/kvm# kvm -no-acpi -m 3572 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 
create_kernel_phys_mem: Invalid argumentset_vram_mapping: cannot
allocate memory: Invalid argument
NULL vram_pointer

If I do -m 3751 I get no error and it works:

stormcrow:/data/kvm# kvm -no-acpi -m 3571 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 

If I go up a little bit higher, the message changes:

stormcrow:/data/kvm# kvm -no-acpi -m 3600 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 
qemu: could not load PC BIOS '/usr/share/kvm/bios.bin'

shmmax is set to 4g:

stormcrow:/data/kvm# cat /proc/sys/kernel/shmmax 
4294967296

I'm using kvm 54 from Debian unstable on 2.6.22-3-amd64. Any other debugging info can be provided upon request.

Thanks,

Brian

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 20071207190704.GG6205-gUs/[email protected]

#2 lore raw
Quoted 11 lines · Brian Almeida

Hi,

I get the following error when I give -m 3752 or higher:

stormcrow:/data/kvm# kvm -no-acpi -m 3572 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 
create_kernel_phys_mem: Invalid argumentset_vram_mapping: cannot
allocate memory: Invalid argument
NULL vram_pointe

great :),
for to be able to run with above 4giga at "safe" way right now you need kvm module above 46
is it possible that you use the module from the 2.6.22 kernel? and not the module from the kvm-54 package?

please tell me what happen if you run it with -m 4096

Quoted 22 lines

If I do -m 3751 I get no error and it works:

stormcrow:/data/kvm# kvm -no-acpi -m 3571 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 

If I go up a little bit higher, the message changes:

stormcrow:/data/kvm# kvm -no-acpi -m 3600 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img 
qemu: could not load PC BIOS '/usr/share/kvm/bios.bin'

shmmax is set to 4g:

stormcrow:/data/kvm# cat /proc/sys/kernel/shmmax 
4294967296

I'm using kvm 54 from Debian unstable on 2.6.22-3-amd64. Any other debugging info can be provided upon request.

Thanks,

Brian

Quoted 11 lines

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 475999CF.2030208-atKUWr5tajBWk0Htik3J/[email protected]

#4 lore raw
Quoted 11 lines · Izik Eidus
Quoted 10 lines · Brian Almeida

Hi,

I get the following error when I give -m 3752 or higher:

stormcrow:/data/kvm# kvm -no-acpi -m 3572 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img create_kernel_phys_mem: Invalid argumentset_vram_mapping: 
cannot
allocate memory: Invalid argument
NULL vram_pointe
Quoted 39 lines

great :),
for to be able to run with above 4giga at "safe" way right now you need kvm module above 46
is it possible that you use the module from the 2.6.22 kernel? and not the module from the kvm-54 package?

please tell me what happen if you run it with -m 4096

Quoted 30 lines

If I do -m 3751 I get no error and it works:

stormcrow:/data/kvm# kvm -no-acpi -m 3571 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img
If I go up a little bit higher, the message changes:
stormcrow:/data/kvm# kvm -no-acpi -m 3600 -cdrom
/data/iso/w2k3_server_ent_r2_disc1.iso -boot d -usbdevice tablet
tharkun.img qemu: could not load PC BIOS '/usr/share/kvm/bios.bin'

shmmax is set to 4g:

stormcrow:/data/kvm# cat /proc/sys/kernel/shmmax 4294967296

I'm using kvm 54 from Debian unstable on 2.6.22-3-amd64. Any other debugging info can be provided upon request.

Thanks,

Brian

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

SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

yea it does look like the reason is that you use old kvm module version, i ran it on my box with 3572 mb of ram and it work

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 47599B9D.5020504-atKUWr5tajBWk0Htik3J/[email protected]

#6 lore raw
Quoted 2 lines · Izik Eidus

yea it does look like the reason is that you use old kvm module version, i ran it on my box with 3572 mb of ram and it work

Ok - I will try with the latest version. Thanks!

Brian

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 20071207193037.GH6205-gUs/[email protected]

#8 lore raw
Quoted 10 lines · Brian Almeida
Quoted 3 lines · Izik Eidus

yea it does look like the reason is that you use old kvm module version, i ran it on my box with 3572 mb of ram and it work

Ok - I will try with the latest version. Thanks!

Brian

(note that kvm-54 should be enough, you just have to make sure that you use the modules that come with it)

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 47599EEA.3090108-atKUWr5tajBWk0Htik3J/[email protected]

#10 lore raw
Quoted 2 lines · Izik Eidus

(note that kvm-54 should be enough, you just have to make sure that you use the modules that come with it)

Yes, this fixed the problem.

Any idea why the ACPI opitmization patches (tpr-opt-1) are slated to make it in an upstream release so I can use SMP on windows guests? Do they work with kvm-5[45]?

Brian

Signature · 9 lines
Brian Almeida
http://thunderkeys.net

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

A message that is not in the archive (sent off-list or not yet received): 20071208042128.GK6205-gUs/[email protected]

#12 lore raw
Quoted 6 lines · Brian Almeida
Quoted 3 lines · Izik Eidus

(note that kvm-54 should be enough, you just have to make sure that you use the modules that come with it)

Quoted 9 lines

Yes, this fixed the problem.

Any idea why the ACPI opitmization patches (tpr-opt-1) are slated to make it in an upstream release so I can use SMP on windows guests? Do they work with kvm-5[45]?

Brian

there is a work right now to clean this patches so they can come to kvm upstream releases
i guess you will be able to see them in the very near future. (btw, if i am not wrong, in 64bits windows guests it should be a problem to run with acpi)

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php