Re: Swap usage with KVM

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Bareiro
Date: Sunday, July 11, 2010 - 3:08 pm

Hi, Freddie.

On Sunday, 11 July 2010 14:05:38 -0700,
Freddie Cash wrote:



Yes, we are using Virtio drivers for networking and storage in both VMs
with cache=none. Both VMs are running Linux 2.6.32-bpo.5-amd64 from
Lenny Backports repositories. For VMHost, we are using a stable version
of KVM with Linux 2.6.32.12 compiled from source code of kernel.org and
qemu-kvm 0.12.3 compiled with the source code obtained from the official
site of KVM.

This is the syntax I'm using to boot the virtual machines:


 8587 ?        Sl   6515:25 /usr/local/qemu-kvm/bin/qemu-system-x86_64 -drive
file=/dev/vm/aps4-raiz,cache=none,if=virtio,boot=on -drive
file=/dev/vm/aps4-cache,cache=none,if=virtio -drive file=/dev/vm/aps4-index,cache=none,if=virtio
-drive file=/dev/vm/aps4-space,cache=none,if=virtio -m 7168 -smp 4 -net
nic,model=virtio,macaddr=00:16:3e:00:00:95 -net tap -daemonize -vnc :3 -k es -localtime -monitor
telnet:localhost:4003,server,nowait -serial telnet:localhost:4043,server,nowait

 9769 ?        Rl   11968:47 /usr/local/qemu-kvm/bin/qemu-system-x86_64 -drive
file=/dev/vm/leela-raiz,cache=none,if=virtio,boot=on -drive
file=/dev/vm/leela-u01,cache=none,if=virtio -drive file=/dev/vm/leela-u02,cache=none,if=virtio
-drive file=/dev/vm/leela-u03,cache=none,if=virtio -drive
file=/dev/vm/leela-u04,cache=none,if=virtio -drive file=/dev/vm/leela-u05,cache=none,if=virtio
-drive file=/dev/vm/leela-u06,cache=none,if=virtio -drive
file=/dev/vm/leela-u07,cache=none,if=virtio -drive file=/dev/vm/leela-u08,cache=none,if=virtio
-drive file=/dev/vm/leela-u09,cache=none,if=virtio -drive
file=/dev/vm/leela-space,cache=none,if=virtio -m 7168 -smp 8 -net
nic,model=virtio,macaddr=00:16:3e:00:00:96 -net tap -daemonize -vnc :4 -k es -localtime -monitor
telnet:localhost:4004,server,nowait -serial telnet:localhost:4044,server,nowait


To make the switch from Virtio to SCSI I would have to shut down the
hosts, which would not be a good idea whereas are two productive
systems. At least, before doing so I would be sure of what might be the
problem.

Taking a current measurement in VMHost with free, I got the following:


ss04:~# free
             total       used       free     shared    buffers     cached
Mem:      16461588   16406504      55084          0       2920      21504
-/+ buffers/cache:   16382080      79508
Swap:      2028492     983140    1045352


It draws attention to me that thinking about initially leaving a margin
of 2 GB of RAM for the VMHost, already it has used almost half of swap.


Thanks for your reply.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Swap usage with KVM, Daniel Bareiro, (Sun Jul 11, 8:12 am)
Re: Swap usage with KVM, Daniel Bareiro, (Sun Jul 11, 12:12 pm)
Re: Swap usage with KVM, Freddie Cash, (Sun Jul 11, 2:05 pm)
Re: Swap usage with KVM, Rik van Riel, (Sun Jul 11, 2:49 pm)
Re: Swap usage with KVM, Daniel Bareiro, (Sun Jul 11, 3:08 pm)
Re: Swap usage with KVM, Daniel Bareiro, (Tue Jul 20, 8:04 am)
Re: Swap usage with KVM, David Weber, (Tue Jul 20, 12:18 pm)
Re: Swap usage with KVM, Daniel Bareiro, (Thu Jul 22, 3:09 am)
Re: Swap usage with KVM, Daniel Bareiro, (Mon Aug 2, 11:57 am)
Re: Swap usage with KVM, Rik van Riel, (Mon Aug 2, 12:31 pm)
Re: Swap usage with KVM, Daniel Bareiro, (Mon Aug 2, 12:52 pm)
Re: Swap usage with KVM, Rik van Riel, (Mon Aug 2, 1:22 pm)
Re: Swap usage with KVM, Daniel Bareiro, (Mon Aug 2, 2:43 pm)
Re: Swap usage with KVM (and KSM), Daniel Bareiro, (Fri Aug 27, 3:04 am)
Re: Swap usage with KVM (and KSM), Rik van Riel, (Fri Aug 27, 6:42 am)