All of lore.kernel.org
 help / color / mirror / Atom feed
* .img on nfs, relative on ram, consuming mass ram
@ 2010-09-15  9:39 TOURNIER Frédéric
  2010-09-16  9:09 ` Andre Przywara
  2011-09-19 12:12 ` Rickard Lundin
  0 siblings, 2 replies; 12+ messages in thread
From: TOURNIER Frédéric @ 2010-09-15  9:39 UTC (permalink / raw)
  To: kvm

Hi !
Here's my config :

Version : qemu-kvm-0.12.5, qemu-kvm-0.12.4
Hosts : AMD 64X2, Phenom and Core 2 duo
OS : Slackware 64 13.0
Kernel : 2.6.35.4 and many previous versions

I use a PXE server to boot semi-diskless (swap partitions and some local stuff) stations.
This server also serves a read-only nfs folder, with plenty of .img on it.
When clients connects, a relative image is created in /tmp, which is a tmpfs, so hosted in ram.

And here i go on my 2G stations :
qemu-system-x86_64 -m 1024 -vga std -usb -usbdevice tablet -localtime -soundhw es1370 /tmp/relimg.img
qemu-system-x86_64 -m 1024 -vga std -usb -usbdevice tablet -localtime -soundhw es1370 /dev/shm/relimg.img

I tried both. Always the same result : the ram is consumed quickly, and mass swap occurs.
On a 4G system, i see kvm uses more than 1024, maybe 1200.
And everytime a launch a program inside the vm, the amount of the host free ram (not cached) diminishes, which is weird, because it should have been reserved.

So on a 2G system, swap occurs very fast and the machine slow a lot down.
An on a total diskless system, this leads fast to a freeze.

I have no problem if i use a relative image on disk :
qemu-system-x86_64 -m 1024 -vga std -usb -usbdevice tablet -localtime -soundhw es1370 -drive file=/mnt/hd/sda/sda1/tmp/relimg.img,cache=none


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-19 12:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15  9:39 .img on nfs, relative on ram, consuming mass ram TOURNIER Frédéric
2010-09-16  9:09 ` Andre Przywara
2010-09-16 12:01   ` TOURNIER Frédéric
2010-09-16 12:03     ` Andre Przywara
2010-09-16 13:19       ` Stefan Hajnoczi
2010-09-16 13:48         ` Andre Przywara
2010-09-16 15:59           ` TOURNIER Frédéric
2010-09-20 13:30           ` TOURNIER Frédéric
2010-09-20 14:00             ` Andre Przywara
2010-09-20 15:34               ` TOURNIER Frédéric
2010-09-16 14:49   ` David S. Ahern
2011-09-19 12:12 ` Rickard Lundin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.