mmap max size (qemu VM memsize limit)



Hello,

I'm trying to set up a qemu with 4G memory to the host system
on a 7-BETA2, and I've hit some kind of limit in freebsd.

When i give more then ~2000MB of memory to qemu, it returns
an after trying to mmap() it, saying "Could not map physical memory".

At the end of mmap(2) there's a note saying:
" The len argument is limited to the maximum file size or available user-
land address space. Files may not be able to be made more than 1TB large
on 32 bit systems due to file systems restrictions and bugs, but address
space is far more restrictive. Larger files may be possible on 64 bit
systems."

I guess I've found this limit. I've tried to check a few sysctls but I wasn't
able to find the one effecting this limit.

Could someone point me into the right direction in increasing the maximum
mmap-able size?

Sincerely,

Gergely Czuczy
mailto: gergely.czuczy@xxxxxxxxxxx

--
Weenies test. Geniuses solve problems that arise.

Attachment: pgpRoNQqWqnQE.pgp
Description: PGP signature



Relevant Pages

  • Re: mmap max size (qemu VM memsize limit)
    ... I'm trying to set up a qemu with 4G memory to the host system ... " The len argument is limited to the maximum file size or available user- ... on 32 bit systems due to file systems restrictions and bugs, ...
    (freebsd-stable)
  • Re: qemu memory question
    ... Michel Talon wrote: ... >>qemu's memory. ... are you saying that when I run qemu the memory of the VM is in ... hidden file containing the RAM of the virtual machine. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: qemu memory question
    ... > the physical memory of the host OS? ... At least for ordinary qemu, ... Michel TALON ...
    (comp.unix.bsd.freebsd.misc)
  • Re: virtual machine software
    ... If it crashes with 'Bad system call' make sure you have aio support loaded. ... I tried QEmu, but XP wouldn't ... I would investigate _why_ it doesn't install under qemu before turning ... and 384M memory for the VM. ...
    (freebsd-questions)
  • Re: mmap max size (qemu VM memsize limit)
    ... I'm trying to set up a qemu with 4G memory to the host system ... on 32 bit systems due to file systems restrictions and bugs, ... Guy Helmer, Ph.D. ...
    (freebsd-stable)