Hi, Avi.

On Sunday, 27 December 2009 18:03:18 +0200,
Avi Kivity wrote:

>> I installed qemu-kvm-0.12.1.1 in one equipment of my house yesterday
>> to test it with Linux 2.6.32 compiled by myself from the source code
>> of kernel.org.

>> [...]
>>
>> This is what I obtain with 'free' in the host:
>>
>> r...@ubuntu:~# free
>>               total       used       free     shared    buffers     cached
>> Mem:       4060340    3989512      70828          0    1804272      95212
>> -/+ buffers/cache:    2090028    1970312
>> Swap:       497972     415680      82292
>>
>>
>> To what that so high use of swap can be due?

> Probably a regression in Linux swapping.  Rik, Hugh, are you aware of
> any?  Hugh posted something but it appears to be performance related,
> not causing early swap.

> Try setting /proc/sys/vm/swappiness to 0, and running your guests with
> cache=none (a good idea in any case).

Now that you mention "cache=none", I read it in the document of KVM
tuning [1], although I didn't apply it yet. I will consider it to future
in my other installations with KVM-88 and qemu-kvm-0.12.1.1 after
solving this problem.

> Also, qemu might be leaking memory.  Please post 'pmap $pid' for all of  
> your guests (do that before any of the other tests, on your swapped-out  
> system).

---------------------------------------------------------------------
r...@ubuntu:~# pmap 3348
3348:   /usr/local/qemu-kvm/bin/qemu-system-x86_64 -hda /dev/vm/backup-raiz 
-hdb /dev/vm/backup-space -m 512 -boot c -net 
nic,vlan=0,macaddr=00:16:3e:00:00:32 -net tap -daemonize -vnc :1 -k es 
-localtime -serial telnet:localhost:4002,server,nowait -monitor 
telnet:localhost:4042,server,nowait
0000000000400000   2220K r-x--  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000082b000    124K rw---  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000084a000   8060K rw---    [ anon ]
000000004153d000      4K -----    [ anon ]
000000004153e000   8192K rw---    [ anon ]
0000000041d3e000      4K -----    [ anon ]
0000000041d3f000   8192K rw---    [ anon ]
00007f7c104a4000   3012K rw---    [ anon ]
00007f7c10795000    136K rw---    [ anon ]
00007f7c107b7000 540688K rw---    [ anon ]
00007f7c317bb000     40K r-x--  /lib/libnss_files-2.7.so
00007f7c317c5000   2048K -----  /lib/libnss_files-2.7.so
00007f7c319c5000      8K rw---  /lib/libnss_files-2.7.so
00007f7c319c7000     20K r-x--  /usr/lib/libXdmcp.so.6.0.0
00007f7c319cc000   2044K -----  /usr/lib/libXdmcp.so.6.0.0
00007f7c31bcb000      4K rw---  /usr/lib/libXdmcp.so.6.0.0
00007f7c31bcc000      8K r-x--  /usr/lib/libXau.so.6.0.0
00007f7c31bce000   2044K -----  /usr/lib/libXau.so.6.0.0
00007f7c31dcd000      4K rw---  /usr/lib/libXau.so.6.0.0
00007f7c31dce000     12K r-x--  /lib/libgpg-error.so.0.3.0
00007f7c31dd1000   2044K -----  /lib/libgpg-error.so.0.3.0
00007f7c31fd0000      4K rw---  /lib/libgpg-error.so.0.3.0
00007f7c31fd1000    108K r-x--  /usr/lib/libxcb.so.1.0.0
00007f7c31fec000   2044K -----  /usr/lib/libxcb.so.1.0.0
00007f7c321eb000      4K rw---  /usr/lib/libxcb.so.1.0.0
00007f7c321ec000      4K r-x--  /usr/lib/libxcb-xlib.so.0.0.0
00007f7c321ed000   2044K -----  /usr/lib/libxcb-xlib.so.0.0.0
00007f7c323ec000      4K rw---  /usr/lib/libxcb-xlib.so.0.0.0
00007f7c323ed000     80K r-x--  /usr/lib/libdirect-1.0.so.0.1.0
00007f7c32401000   2044K -----  /usr/lib/libdirect-1.0.so.0.1.0
00007f7c32600000      8K rw---  /usr/lib/libdirect-1.0.so.0.1.0
00007f7c32602000     32K r-x--  /usr/lib/libfusion-1.0.so.0.1.0
00007f7c3260a000   2044K -----  /usr/lib/libfusion-1.0.so.0.1.0
00007f7c32809000      4K rw---  /usr/lib/libfusion-1.0.so.0.1.0
00007f7c3280a000    428K r-x--  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f7c32875000   2048K -----  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f7c32a75000     12K rw---  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f7c32a78000    860K r-x--  /usr/lib/libasound.so.2.0.0
00007f7c32b4f000   2048K -----  /usr/lib/libasound.so.2.0.0
00007f7c32d4f000     28K rw---  /usr/lib/libasound.so.2.0.0
00007f7c32d56000    304K r-x--  /lib/libgcrypt.so.11.2.3
00007f7c32da2000   2044K -----  /lib/libgcrypt.so.11.2.3
00007f7c32fa1000     12K rw---  /lib/libgcrypt.so.11.2.3
00007f7c32fa4000     64K r-x--  /usr/lib/libtasn1.so.3.0.12
00007f7c32fb4000   2044K -----  /usr/lib/libtasn1.so.3.0.12
00007f7c331b3000      4K rw---  /usr/lib/libtasn1.so.3.0.12
00007f7c331b4000      8K r-x--  /lib/libdl-2.7.so
00007f7c331b6000   2048K -----  /lib/libdl-2.7.so
00007f7c333b6000      8K rw---  /lib/libdl-2.7.so
00007f7c333b8000   1376K r-x--  /lib/libc-2.7.so
00007f7c33510000   2048K -----  /lib/libc-2.7.so
00007f7c33710000     12K r----  /lib/libc-2.7.so
00007f7c33713000      8K rw---  /lib/libc-2.7.so
00007f7c33715000     20K rw---    [ anon ]
00007f7c3371a000    512K r-x--  /lib/libm-2.7.so
00007f7c3379a000   2044K -----  /lib/libm-2.7.so
00007f7c33999000      8K rw---  /lib/libm-2.7.so
00007f7c3399b000   1020K r-x--  /usr/lib/libX11.so.6.2.0
00007f7c33a9a000   2044K -----  /usr/lib/libX11.so.6.2.0
00007f7c33c99000     20K rw---  /usr/lib/libX11.so.6.2.0
00007f7c33c9e000    412K r-x--  /usr/lib/libSDL-1.2.so.0.11.1
00007f7c33d05000   2048K -----  /usr/lib/libSDL-1.2.so.0.11.1
00007f7c33f05000      8K rw---  /usr/lib/libSDL-1.2.so.0.11.1
00007f7c33f07000    176K rw---    [ anon ]
00007f7c33f33000    492K r-x--  /usr/lib/libgnutls.so.13.9.1
00007f7c33fae000   2048K -----  /usr/lib/libgnutls.so.13.9.1
00007f7c341ae000     40K rw---  /usr/lib/libgnutls.so.13.9.1
00007f7c341b8000    220K r-x--  /lib/libncurses.so.5.6
00007f7c341ef000   2044K -----  /lib/libncurses.so.5.6
00007f7c343ee000     20K rw---  /lib/libncurses.so.5.6
00007f7c343f3000     88K r-x--  /usr/lib/libz.so.1.2.3.3
00007f7c34409000   2048K -----  /usr/lib/libz.so.1.2.3.3
00007f7c34609000      4K rw---  /usr/lib/libz.so.1.2.3.3
00007f7c3460a000      8K r-x--  /lib/libutil-2.7.so
00007f7c3460c000   2044K -----  /lib/libutil-2.7.so
00007f7c3480b000      8K rw---  /lib/libutil-2.7.so
00007f7c3480d000     88K r-x--  /lib/libpthread-2.7.so
00007f7c34823000   2048K -----  /lib/libpthread-2.7.so
00007f7c34a23000      8K rw---  /lib/libpthread-2.7.so
00007f7c34a25000     16K rw---    [ anon ]
00007f7c34a29000     32K r-x--  /lib/librt-2.7.so
00007f7c34a31000   2044K -----  /lib/librt-2.7.so
00007f7c34c30000      8K rw---  /lib/librt-2.7.so
00007f7c34c32000    116K r-x--  /lib/ld-2.7.so
00007f7c34c68000   1472K rw---    [ anon ]
00007f7c34df9000    308K rw---    [ anon ]
00007f7c34e49000     12K rw-s-    [ anon ]
00007f7c34e4c000     12K rw---    [ anon ]
00007f7c34e4f000      8K rw---  /lib/ld-2.7.so
00007fff03de5000     84K rw---    [ stack ]
00007fff03dff000      4K r-x--    [ anon ]
ffffffffff600000      4K r-x--    [ anon ]
 total           626376K
---------------------------------------------------------------------

r...@ubuntu:~# pmap 3357
3357:   /usr/local/qemu-kvm/bin/qemu-system-x86_64 -hda /dev/vm/central-raiz 
-hdb /dev/vm/central-space -m 512 -boot c -net 
nic,vlan=0,macaddr=00:16:3e:00:00:36 -net tap -daemonize -vnc :5 -k es 
-localtime -serial telnet:localhost:4005,server,nowait -monitor 
telnet:localhost:4045,server,nowait
0000000000400000   2220K r-x--  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000082b000    124K rw---  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000084a000   8156K rw---    [ anon ]
0000000040e5b000      4K -----    [ anon ]
0000000040e5c000   8192K rw---    [ anon ]
000000004165c000      4K -----    [ anon ]
000000004165d000   8192K rw---    [ anon ]
00007f00c5dd0000   3012K rw---    [ anon ]
00007f00c60c1000    136K rw---    [ anon ]
00007f00c60e3000 540688K rw---    [ anon ]
00007f00e70e7000     40K r-x--  /lib/libnss_files-2.7.so
00007f00e70f1000   2048K -----  /lib/libnss_files-2.7.so
00007f00e72f1000      8K rw---  /lib/libnss_files-2.7.so
00007f00e72f3000     20K r-x--  /usr/lib/libXdmcp.so.6.0.0
00007f00e72f8000   2044K -----  /usr/lib/libXdmcp.so.6.0.0
00007f00e74f7000      4K rw---  /usr/lib/libXdmcp.so.6.0.0
00007f00e74f8000      8K r-x--  /usr/lib/libXau.so.6.0.0
00007f00e74fa000   2044K -----  /usr/lib/libXau.so.6.0.0
00007f00e76f9000      4K rw---  /usr/lib/libXau.so.6.0.0
00007f00e76fa000     12K r-x--  /lib/libgpg-error.so.0.3.0
00007f00e76fd000   2044K -----  /lib/libgpg-error.so.0.3.0
00007f00e78fc000      4K rw---  /lib/libgpg-error.so.0.3.0
00007f00e78fd000    108K r-x--  /usr/lib/libxcb.so.1.0.0
00007f00e7918000   2044K -----  /usr/lib/libxcb.so.1.0.0
00007f00e7b17000      4K rw---  /usr/lib/libxcb.so.1.0.0
00007f00e7b18000      4K r-x--  /usr/lib/libxcb-xlib.so.0.0.0
00007f00e7b19000   2044K -----  /usr/lib/libxcb-xlib.so.0.0.0
00007f00e7d18000      4K rw---  /usr/lib/libxcb-xlib.so.0.0.0
00007f00e7d19000     80K r-x--  /usr/lib/libdirect-1.0.so.0.1.0
00007f00e7d2d000   2044K -----  /usr/lib/libdirect-1.0.so.0.1.0
00007f00e7f2c000      8K rw---  /usr/lib/libdirect-1.0.so.0.1.0
00007f00e7f2e000     32K r-x--  /usr/lib/libfusion-1.0.so.0.1.0
00007f00e7f36000   2044K -----  /usr/lib/libfusion-1.0.so.0.1.0
00007f00e8135000      4K rw---  /usr/lib/libfusion-1.0.so.0.1.0
00007f00e8136000    428K r-x--  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f00e81a1000   2048K -----  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f00e83a1000     12K rw---  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f00e83a4000    860K r-x--  /usr/lib/libasound.so.2.0.0
00007f00e847b000   2048K -----  /usr/lib/libasound.so.2.0.0
00007f00e867b000     28K rw---  /usr/lib/libasound.so.2.0.0
00007f00e8682000    304K r-x--  /lib/libgcrypt.so.11.2.3
00007f00e86ce000   2044K -----  /lib/libgcrypt.so.11.2.3
00007f00e88cd000     12K rw---  /lib/libgcrypt.so.11.2.3
00007f00e88d0000     64K r-x--  /usr/lib/libtasn1.so.3.0.12
00007f00e88e0000   2044K -----  /usr/lib/libtasn1.so.3.0.12
00007f00e8adf000      4K rw---  /usr/lib/libtasn1.so.3.0.12
00007f00e8ae0000      8K r-x--  /lib/libdl-2.7.so
00007f00e8ae2000   2048K -----  /lib/libdl-2.7.so
00007f00e8ce2000      8K rw---  /lib/libdl-2.7.so
00007f00e8ce4000   1376K r-x--  /lib/libc-2.7.so
00007f00e8e3c000   2048K -----  /lib/libc-2.7.so
00007f00e903c000     12K r----  /lib/libc-2.7.so
00007f00e903f000      8K rw---  /lib/libc-2.7.so
00007f00e9041000     20K rw---    [ anon ]
00007f00e9046000    512K r-x--  /lib/libm-2.7.so
00007f00e90c6000   2044K -----  /lib/libm-2.7.so
00007f00e92c5000      8K rw---  /lib/libm-2.7.so
00007f00e92c7000   1020K r-x--  /usr/lib/libX11.so.6.2.0
00007f00e93c6000   2044K -----  /usr/lib/libX11.so.6.2.0
00007f00e95c5000     20K rw---  /usr/lib/libX11.so.6.2.0
00007f00e95ca000    412K r-x--  /usr/lib/libSDL-1.2.so.0.11.1
00007f00e9631000   2048K -----  /usr/lib/libSDL-1.2.so.0.11.1
00007f00e9831000      8K rw---  /usr/lib/libSDL-1.2.so.0.11.1
00007f00e9833000    176K rw---    [ anon ]
00007f00e985f000    492K r-x--  /usr/lib/libgnutls.so.13.9.1
00007f00e98da000   2048K -----  /usr/lib/libgnutls.so.13.9.1
00007f00e9ada000     40K rw---  /usr/lib/libgnutls.so.13.9.1
00007f00e9ae4000    220K r-x--  /lib/libncurses.so.5.6
00007f00e9b1b000   2044K -----  /lib/libncurses.so.5.6
00007f00e9d1a000     20K rw---  /lib/libncurses.so.5.6
00007f00e9d1f000     88K r-x--  /usr/lib/libz.so.1.2.3.3
00007f00e9d35000   2048K -----  /usr/lib/libz.so.1.2.3.3
00007f00e9f35000      4K rw---  /usr/lib/libz.so.1.2.3.3
00007f00e9f36000      8K r-x--  /lib/libutil-2.7.so
00007f00e9f38000   2044K -----  /lib/libutil-2.7.so
00007f00ea137000      8K rw---  /lib/libutil-2.7.so
00007f00ea139000     88K r-x--  /lib/libpthread-2.7.so
00007f00ea14f000   2048K -----  /lib/libpthread-2.7.so
00007f00ea34f000      8K rw---  /lib/libpthread-2.7.so
00007f00ea351000     16K rw---    [ anon ]
00007f00ea355000     32K r-x--  /lib/librt-2.7.so
00007f00ea35d000   2044K -----  /lib/librt-2.7.so
00007f00ea55c000      8K rw---  /lib/librt-2.7.so
00007f00ea55e000    116K r-x--  /lib/ld-2.7.so
00007f00ea594000   1472K rw---    [ anon ]
00007f00ea725000    308K rw---    [ anon ]
00007f00ea775000     12K rw-s-    [ anon ]
00007f00ea778000     12K rw---    [ anon ]
00007f00ea77b000      8K rw---  /lib/ld-2.7.so
00007fff1f553000     84K rw---    [ stack ]
00007fff1f5ff000      4K r-x--    [ anon ]
ffffffffff600000      4K r-x--    [ anon ]
 total           626472K
---------------------------------------------------------------------

r...@ubuntu:~# pmap 3366
3366:   /usr/local/qemu-kvm/bin/qemu-system-x86_64 -hda /dev/vm/ws2-raiz -hdb 
/dev/vm/ws2-space -m 512 -boot c -net nic,vlan=0,macaddr=00:16:3e:00:00:31 -net 
tap -daemonize -vnc :0 -k es -localtime -serial 
telnet:localhost:4000,server,nowait
0000000000400000   2220K r-x--  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000082b000    124K rw---  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000084a000   8080K rw---    [ anon ]
0000000041988000      4K -----    [ anon ]
0000000041989000   8192K rw---    [ anon ]
0000000042189000      4K -----    [ anon ]
000000004218a000   8192K rw---    [ anon ]
00007ff0ecb15000   3012K rw---    [ anon ]
00007ff0ece06000    136K rw---    [ anon ]
00007ff0ece28000 540688K rw---    [ anon ]
00007ff10de2c000     40K r-x--  /lib/libnss_files-2.7.so
00007ff10de36000   2048K -----  /lib/libnss_files-2.7.so
00007ff10e036000      8K rw---  /lib/libnss_files-2.7.so
00007ff10e038000     20K r-x--  /usr/lib/libXdmcp.so.6.0.0
00007ff10e03d000   2044K -----  /usr/lib/libXdmcp.so.6.0.0
00007ff10e23c000      4K rw---  /usr/lib/libXdmcp.so.6.0.0
00007ff10e23d000      8K r-x--  /usr/lib/libXau.so.6.0.0
00007ff10e23f000   2044K -----  /usr/lib/libXau.so.6.0.0
00007ff10e43e000      4K rw---  /usr/lib/libXau.so.6.0.0
00007ff10e43f000     12K r-x--  /lib/libgpg-error.so.0.3.0
00007ff10e442000   2044K -----  /lib/libgpg-error.so.0.3.0
00007ff10e641000      4K rw---  /lib/libgpg-error.so.0.3.0
00007ff10e642000    108K r-x--  /usr/lib/libxcb.so.1.0.0
00007ff10e65d000   2044K -----  /usr/lib/libxcb.so.1.0.0
00007ff10e85c000      4K rw---  /usr/lib/libxcb.so.1.0.0
00007ff10e85d000      4K r-x--  /usr/lib/libxcb-xlib.so.0.0.0
00007ff10e85e000   2044K -----  /usr/lib/libxcb-xlib.so.0.0.0
00007ff10ea5d000      4K rw---  /usr/lib/libxcb-xlib.so.0.0.0
00007ff10ea5e000     80K r-x--  /usr/lib/libdirect-1.0.so.0.1.0
00007ff10ea72000   2044K -----  /usr/lib/libdirect-1.0.so.0.1.0
00007ff10ec71000      8K rw---  /usr/lib/libdirect-1.0.so.0.1.0
00007ff10ec73000     32K r-x--  /usr/lib/libfusion-1.0.so.0.1.0
00007ff10ec7b000   2044K -----  /usr/lib/libfusion-1.0.so.0.1.0
00007ff10ee7a000      4K rw---  /usr/lib/libfusion-1.0.so.0.1.0
00007ff10ee7b000    428K r-x--  /usr/lib/libdirectfb-1.0.so.0.1.0
00007ff10eee6000   2048K -----  /usr/lib/libdirectfb-1.0.so.0.1.0
00007ff10f0e6000     12K rw---  /usr/lib/libdirectfb-1.0.so.0.1.0
00007ff10f0e9000    860K r-x--  /usr/lib/libasound.so.2.0.0
00007ff10f1c0000   2048K -----  /usr/lib/libasound.so.2.0.0
00007ff10f3c0000     28K rw---  /usr/lib/libasound.so.2.0.0
00007ff10f3c7000    304K r-x--  /lib/libgcrypt.so.11.2.3
00007ff10f413000   2044K -----  /lib/libgcrypt.so.11.2.3
00007ff10f612000     12K rw---  /lib/libgcrypt.so.11.2.3
00007ff10f615000     64K r-x--  /usr/lib/libtasn1.so.3.0.12
00007ff10f625000   2044K -----  /usr/lib/libtasn1.so.3.0.12
00007ff10f824000      4K rw---  /usr/lib/libtasn1.so.3.0.12
00007ff10f825000      8K r-x--  /lib/libdl-2.7.so
00007ff10f827000   2048K -----  /lib/libdl-2.7.so
00007ff10fa27000      8K rw---  /lib/libdl-2.7.so
00007ff10fa29000   1376K r-x--  /lib/libc-2.7.so
00007ff10fb81000   2048K -----  /lib/libc-2.7.so
00007ff10fd81000     12K r----  /lib/libc-2.7.so
00007ff10fd84000      8K rw---  /lib/libc-2.7.so
00007ff10fd86000     20K rw---    [ anon ]
00007ff10fd8b000    512K r-x--  /lib/libm-2.7.so
00007ff10fe0b000   2044K -----  /lib/libm-2.7.so
00007ff11000a000      8K rw---  /lib/libm-2.7.so
00007ff11000c000   1020K r-x--  /usr/lib/libX11.so.6.2.0
00007ff11010b000   2044K -----  /usr/lib/libX11.so.6.2.0
00007ff11030a000     20K rw---  /usr/lib/libX11.so.6.2.0
00007ff11030f000    412K r-x--  /usr/lib/libSDL-1.2.so.0.11.1
00007ff110376000   2048K -----  /usr/lib/libSDL-1.2.so.0.11.1
00007ff110576000      8K rw---  /usr/lib/libSDL-1.2.so.0.11.1
00007ff110578000    176K rw---    [ anon ]
00007ff1105a4000    492K r-x--  /usr/lib/libgnutls.so.13.9.1
00007ff11061f000   2048K -----  /usr/lib/libgnutls.so.13.9.1
00007ff11081f000     40K rw---  /usr/lib/libgnutls.so.13.9.1
00007ff110829000    220K r-x--  /lib/libncurses.so.5.6
00007ff110860000   2044K -----  /lib/libncurses.so.5.6
00007ff110a5f000     20K rw---  /lib/libncurses.so.5.6
00007ff110a64000     88K r-x--  /usr/lib/libz.so.1.2.3.3
00007ff110a7a000   2048K -----  /usr/lib/libz.so.1.2.3.3
00007ff110c7a000      4K rw---  /usr/lib/libz.so.1.2.3.3
00007ff110c7b000      8K r-x--  /lib/libutil-2.7.so
00007ff110c7d000   2044K -----  /lib/libutil-2.7.so
00007ff110e7c000      8K rw---  /lib/libutil-2.7.so
00007ff110e7e000     88K r-x--  /lib/libpthread-2.7.so
00007ff110e94000   2048K -----  /lib/libpthread-2.7.so
00007ff111094000      8K rw---  /lib/libpthread-2.7.so
00007ff111096000     16K rw---    [ anon ]
00007ff11109a000     32K r-x--  /lib/librt-2.7.so
00007ff1110a2000   2044K -----  /lib/librt-2.7.so
00007ff1112a1000      8K rw---  /lib/librt-2.7.so
00007ff1112a3000    116K r-x--  /lib/ld-2.7.so
00007ff1112d9000   1472K rw---    [ anon ]
00007ff11146a000    308K rw---    [ anon ]
00007ff1114ba000     12K rw-s-    [ anon ]
00007ff1114bd000     12K rw---    [ anon ]
00007ff1114c0000      8K rw---  /lib/ld-2.7.so
00007fff663c3000     84K rw---    [ stack ]
00007fff663ff000      4K r-x--    [ anon ]
ffffffffff600000      4K r-x--    [ anon ]
 total           626396K
---------------------------------------------------------------------

r...@ubuntu:~# pmap 8636
8636:   /usr/local/qemu-kvm/bin/qemu-system-x86_64 -hda /dev/vm/test-disk -m 
512 -boot c -net nic,vlan=0,macaddr=00:16:3e:00:00:34 -net tap -daemonize -vnc 
:3 -k es -localtime -serial telnet:localhost:5000,server,nowait -monitor 
telnet:localhost:5001,server,nowait
0000000000400000   2220K r-x--  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000082b000    124K rw---  /usr/local/qemu-kvm/bin/qemu-system-x86_64 
(deleted)
000000000084a000  10060K rw---    [ anon ]
0000000040568000      4K -----    [ anon ]
0000000040569000   8192K rw---    [ anon ]
0000000040f20000      4K -----    [ anon ]
0000000040f21000   8192K rw---    [ anon ]
0000000041a86000      4K -----    [ anon ]
0000000041a87000   8192K rw---    [ anon ]
00007f8a36a5a000    772K rw---    [ anon ]
00007f8a36c48000   1036K rw---    [ anon ]
00007f8a36d4b000    136K rw---    [ anon ]
00007f8a36d6d000 540688K rw---    [ anon ]
00007f8a57d71000     40K r-x--  /lib/libnss_files-2.7.so
00007f8a57d7b000   2048K -----  /lib/libnss_files-2.7.so
00007f8a57f7b000      8K rw---  /lib/libnss_files-2.7.so
00007f8a57f7d000     20K r-x--  /usr/lib/libXdmcp.so.6.0.0
00007f8a57f82000   2044K -----  /usr/lib/libXdmcp.so.6.0.0
00007f8a58181000      4K rw---  /usr/lib/libXdmcp.so.6.0.0
00007f8a58182000      8K r-x--  /usr/lib/libXau.so.6.0.0
00007f8a58184000   2044K -----  /usr/lib/libXau.so.6.0.0
00007f8a58383000      4K rw---  /usr/lib/libXau.so.6.0.0
00007f8a58384000     12K r-x--  /lib/libgpg-error.so.0.3.0
00007f8a58387000   2044K -----  /lib/libgpg-error.so.0.3.0
00007f8a58586000      4K rw---  /lib/libgpg-error.so.0.3.0
00007f8a58587000    108K r-x--  /usr/lib/libxcb.so.1.0.0
00007f8a585a2000   2044K -----  /usr/lib/libxcb.so.1.0.0
00007f8a587a1000      4K rw---  /usr/lib/libxcb.so.1.0.0
00007f8a587a2000      4K r-x--  /usr/lib/libxcb-xlib.so.0.0.0
00007f8a587a3000   2044K -----  /usr/lib/libxcb-xlib.so.0.0.0
00007f8a589a2000      4K rw---  /usr/lib/libxcb-xlib.so.0.0.0
00007f8a589a3000     80K r-x--  /usr/lib/libdirect-1.0.so.0.1.0
00007f8a589b7000   2044K -----  /usr/lib/libdirect-1.0.so.0.1.0
00007f8a58bb6000      8K rw---  /usr/lib/libdirect-1.0.so.0.1.0
00007f8a58bb8000     32K r-x--  /usr/lib/libfusion-1.0.so.0.1.0
00007f8a58bc0000   2044K -----  /usr/lib/libfusion-1.0.so.0.1.0
00007f8a58dbf000      4K rw---  /usr/lib/libfusion-1.0.so.0.1.0
00007f8a58dc0000    428K r-x--  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f8a58e2b000   2048K -----  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f8a5902b000     12K rw---  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f8a5902e000    860K r-x--  /usr/lib/libasound.so.2.0.0
00007f8a59105000   2048K -----  /usr/lib/libasound.so.2.0.0
00007f8a59305000     28K rw---  /usr/lib/libasound.so.2.0.0
00007f8a5930c000    304K r-x--  /lib/libgcrypt.so.11.2.3
00007f8a59358000   2044K -----  /lib/libgcrypt.so.11.2.3
00007f8a59557000     12K rw---  /lib/libgcrypt.so.11.2.3
00007f8a5955a000     64K r-x--  /usr/lib/libtasn1.so.3.0.12
00007f8a5956a000   2044K -----  /usr/lib/libtasn1.so.3.0.12
00007f8a59769000      4K rw---  /usr/lib/libtasn1.so.3.0.12
00007f8a5976a000      8K r-x--  /lib/libdl-2.7.so
00007f8a5976c000   2048K -----  /lib/libdl-2.7.so
00007f8a5996c000      8K rw---  /lib/libdl-2.7.so
00007f8a5996e000   1376K r-x--  /lib/libc-2.7.so
00007f8a59ac6000   2048K -----  /lib/libc-2.7.so
00007f8a59cc6000     12K r----  /lib/libc-2.7.so
00007f8a59cc9000      8K rw---  /lib/libc-2.7.so
00007f8a59ccb000     20K rw---    [ anon ]
00007f8a59cd0000    512K r-x--  /lib/libm-2.7.so
00007f8a59d50000   2044K -----  /lib/libm-2.7.so
00007f8a59f4f000      8K rw---  /lib/libm-2.7.so
00007f8a59f51000   1020K r-x--  /usr/lib/libX11.so.6.2.0
00007f8a5a050000   2044K -----  /usr/lib/libX11.so.6.2.0
00007f8a5a24f000     20K rw---  /usr/lib/libX11.so.6.2.0
00007f8a5a254000    412K r-x--  /usr/lib/libSDL-1.2.so.0.11.1
00007f8a5a2bb000   2048K -----  /usr/lib/libSDL-1.2.so.0.11.1
00007f8a5a4bb000      8K rw---  /usr/lib/libSDL-1.2.so.0.11.1
00007f8a5a4bd000    176K rw---    [ anon ]
00007f8a5a4e9000    492K r-x--  /usr/lib/libgnutls.so.13.9.1
00007f8a5a564000   2048K -----  /usr/lib/libgnutls.so.13.9.1
00007f8a5a764000     40K rw---  /usr/lib/libgnutls.so.13.9.1
00007f8a5a76e000    220K r-x--  /lib/libncurses.so.5.6
00007f8a5a7a5000   2044K -----  /lib/libncurses.so.5.6
00007f8a5a9a4000     20K rw---  /lib/libncurses.so.5.6
00007f8a5a9a9000     88K r-x--  /usr/lib/libz.so.1.2.3.3
00007f8a5a9bf000   2048K -----  /usr/lib/libz.so.1.2.3.3
00007f8a5abbf000      4K rw---  /usr/lib/libz.so.1.2.3.3
00007f8a5abc0000      8K r-x--  /lib/libutil-2.7.so
00007f8a5abc2000   2044K -----  /lib/libutil-2.7.so
00007f8a5adc1000      8K rw---  /lib/libutil-2.7.so
00007f8a5adc3000     88K r-x--  /lib/libpthread-2.7.so
00007f8a5add9000   2048K -----  /lib/libpthread-2.7.so
00007f8a5afd9000      8K rw---  /lib/libpthread-2.7.so
00007f8a5afdb000     16K rw---    [ anon ]
00007f8a5afdf000     32K r-x--  /lib/librt-2.7.so
00007f8a5afe7000   2044K -----  /lib/librt-2.7.so
00007f8a5b1e6000      8K rw---  /lib/librt-2.7.so
00007f8a5b1e8000    116K r-x--  /lib/ld-2.7.so
00007f8a5b21e000   1260K rw---    [ anon ]
00007f8a5b36c000    136K rw---    [ anon ]
00007f8a5b3af000    308K rw---    [ anon ]
00007f8a5b3ff000     12K rw-s-    [ anon ]
00007f8a5b402000     12K rw---    [ anon ]
00007f8a5b405000      8K rw---  /lib/ld-2.7.so
00007fff3642e000     84K rw---    [ stack ]
00007fff3655e000      4K r-x--    [ anon ]
ffffffffff600000      4K r-x--    [ anon ]
 total           635292K
---------------------------------------------------------------------

r...@ubuntu:~# pmap 10245
10245:   /usr/local/qemu-kvm/bin/qemu-system-x86_64 -hda /dev/vm/fugu-disk -m 
512 -boot c -net nic,vlan=0,macaddr=00:16:3e:00:00:35,model=e1000 -net tap 
-daemonize -vnc :4 -k es -localtime -serial telnet:localhost:4001,server,nowait 
-monitor telnet:localhost:4041,server,nowait
0000000000400000   2220K r-x--  /usr/local/qemu-kvm/bin/qemu-system-x86_64
000000000082b000    124K rw---  /usr/local/qemu-kvm/bin/qemu-system-x86_64
000000000084a000   7512K rw---    [ anon ]
000000004003a000      4K -----    [ anon ]
000000004003b000   8192K rw---    [ anon ]
0000000040fcf000      4K -----    [ anon ]
0000000040fd0000   8192K rw---    [ anon ]
00007f196e91a000   2640K rw---    [ anon ]
00007f196ebae000    136K rw---    [ anon ]
00007f196ebd0000 540688K rw---    [ anon ]
00007f198fbd4000     40K r-x--  /lib/libnss_files-2.7.so
00007f198fbde000   2048K -----  /lib/libnss_files-2.7.so
00007f198fdde000      8K rw---  /lib/libnss_files-2.7.so
00007f198fde0000     20K r-x--  /usr/lib/libXdmcp.so.6.0.0
00007f198fde5000   2044K -----  /usr/lib/libXdmcp.so.6.0.0
00007f198ffe4000      4K rw---  /usr/lib/libXdmcp.so.6.0.0
00007f198ffe5000      8K r-x--  /usr/lib/libXau.so.6.0.0
00007f198ffe7000   2044K -----  /usr/lib/libXau.so.6.0.0
00007f19901e6000      4K rw---  /usr/lib/libXau.so.6.0.0
00007f19901e7000     12K r-x--  /lib/libgpg-error.so.0.3.0
00007f19901ea000   2044K -----  /lib/libgpg-error.so.0.3.0
00007f19903e9000      4K rw---  /lib/libgpg-error.so.0.3.0
00007f19903ea000    108K r-x--  /usr/lib/libxcb.so.1.0.0
00007f1990405000   2044K -----  /usr/lib/libxcb.so.1.0.0
00007f1990604000      4K rw---  /usr/lib/libxcb.so.1.0.0
00007f1990605000      4K r-x--  /usr/lib/libxcb-xlib.so.0.0.0
00007f1990606000   2044K -----  /usr/lib/libxcb-xlib.so.0.0.0
00007f1990805000      4K rw---  /usr/lib/libxcb-xlib.so.0.0.0
00007f1990806000     80K r-x--  /usr/lib/libdirect-1.0.so.0.1.0
00007f199081a000   2044K -----  /usr/lib/libdirect-1.0.so.0.1.0
00007f1990a19000      8K rw---  /usr/lib/libdirect-1.0.so.0.1.0
00007f1990a1b000     32K r-x--  /usr/lib/libfusion-1.0.so.0.1.0
00007f1990a23000   2044K -----  /usr/lib/libfusion-1.0.so.0.1.0
00007f1990c22000      4K rw---  /usr/lib/libfusion-1.0.so.0.1.0
00007f1990c23000    428K r-x--  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f1990c8e000   2048K -----  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f1990e8e000     12K rw---  /usr/lib/libdirectfb-1.0.so.0.1.0
00007f1990e91000    860K r-x--  /usr/lib/libasound.so.2.0.0
00007f1990f68000   2048K -----  /usr/lib/libasound.so.2.0.0
00007f1991168000     28K rw---  /usr/lib/libasound.so.2.0.0
00007f199116f000    304K r-x--  /lib/libgcrypt.so.11.2.3
00007f19911bb000   2044K -----  /lib/libgcrypt.so.11.2.3
00007f19913ba000     12K rw---  /lib/libgcrypt.so.11.2.3
00007f19913bd000     64K r-x--  /usr/lib/libtasn1.so.3.0.12
00007f19913cd000   2044K -----  /usr/lib/libtasn1.so.3.0.12
00007f19915cc000      4K rw---  /usr/lib/libtasn1.so.3.0.12
00007f19915cd000      8K r-x--  /lib/libdl-2.7.so
00007f19915cf000   2048K -----  /lib/libdl-2.7.so
00007f19917cf000      8K rw---  /lib/libdl-2.7.so
00007f19917d1000   1376K r-x--  /lib/libc-2.7.so
00007f1991929000   2048K -----  /lib/libc-2.7.so
00007f1991b29000     12K r----  /lib/libc-2.7.so
00007f1991b2c000      8K rw---  /lib/libc-2.7.so
00007f1991b2e000     20K rw---    [ anon ]
00007f1991b33000    512K r-x--  /lib/libm-2.7.so
00007f1991bb3000   2044K -----  /lib/libm-2.7.so
00007f1991db2000      8K rw---  /lib/libm-2.7.so
00007f1991db4000   1020K r-x--  /usr/lib/libX11.so.6.2.0
00007f1991eb3000   2044K -----  /usr/lib/libX11.so.6.2.0
00007f19920b2000     20K rw---  /usr/lib/libX11.so.6.2.0
00007f19920b7000    412K r-x--  /usr/lib/libSDL-1.2.so.0.11.1
00007f199211e000   2048K -----  /usr/lib/libSDL-1.2.so.0.11.1
00007f199231e000      8K rw---  /usr/lib/libSDL-1.2.so.0.11.1
00007f1992320000    176K rw---    [ anon ]
00007f199234c000    492K r-x--  /usr/lib/libgnutls.so.13.9.1
00007f19923c7000   2048K -----  /usr/lib/libgnutls.so.13.9.1
00007f19925c7000     40K rw---  /usr/lib/libgnutls.so.13.9.1
00007f19925d1000    220K r-x--  /lib/libncurses.so.5.6
00007f1992608000   2044K -----  /lib/libncurses.so.5.6
00007f1992807000     20K rw---  /lib/libncurses.so.5.6
00007f199280c000     88K r-x--  /usr/lib/libz.so.1.2.3.3
00007f1992822000   2048K -----  /usr/lib/libz.so.1.2.3.3
00007f1992a22000      4K rw---  /usr/lib/libz.so.1.2.3.3
00007f1992a23000      8K r-x--  /lib/libutil-2.7.so
00007f1992a25000   2044K -----  /lib/libutil-2.7.so
00007f1992c24000      8K rw---  /lib/libutil-2.7.so
00007f1992c26000     88K r-x--  /lib/libpthread-2.7.so
00007f1992c3c000   2048K -----  /lib/libpthread-2.7.so
00007f1992e3c000      8K rw---  /lib/libpthread-2.7.so
00007f1992e3e000     16K rw---    [ anon ]
00007f1992e42000     32K r-x--  /lib/librt-2.7.so
00007f1992e4a000   2044K -----  /lib/librt-2.7.so
00007f1993049000      8K rw---  /lib/librt-2.7.so
00007f199304b000    116K r-x--  /lib/ld-2.7.so
00007f1993071000   1536K rw---    [ anon ]
00007f1993212000    136K rw---    [ anon ]
00007f1993255000     40K rw---    [ anon ]
00007f1993262000     12K rw-s-    [ anon ]
00007f1993265000     12K rw---    [ anon ]
00007f1993268000      8K rw---  /lib/ld-2.7.so
00007fff37f8b000     84K rw---    [ stack ]
00007fff37fff000      4K r-x--    [ anon ]
ffffffffff600000      4K r-x--    [ anon ]
 total           625388K
---------------------------------------------------------------------


Thanks for so quick reply.

Regards,
Daniel

[1] http://www.linux-kvm.org/page/Tuning_KVM
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598

Attachment: signature.asc
Description: Digital signature

Reply via email to