Qemu-kvm is leaking my memory ???

Zdenek Kabelac
2008-03-14T22:14:26Z

Hello

Recently I'm using qemu-kvm on fedora-rawhide box with my own kernels
(with many debug options) I've noticed that over the time my memory
seems to disappear somewhere.

Here is my memory trace after boot and some time of work - thus memory
should be populated.

MemTotal: 2007460 kB
MemFree: 618772 kB
Buffers: 46044 kB
Cached: 733156 kB
SwapCached: 0 kB
Active: 613384 kB
Inactive: 541844 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 148 kB
Writeback: 0 kB
AnonPages: 376152 kB
Mapped: 67184 kB
Slab: 80340 kB
SReclaimable: 50284 kB
SUnreclaim: 30056 kB
PageTables: 27976 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 1003728 kB
Committed_AS: 810968 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 71244 kB
VmallocChunk: 34359666419 kB
618772 + 46044 + 733156 + 148 + 376152 + 67184 + 80340 + 50284 + 30056
+ 27976 = 2030112

2GB (though could be wrong - I could be wrong and adding something improperly)

And this memory listing is when I work during the day with qemu-kvm do
something like 30-50 qemu restarts. Then before I rebooted the
machine I've killed nearly all running task (i.e no Xserver, most of
services turned of)

MemTotal: 2007416 kB
MemFree: 652412 kB
Buffers: 70000 kB
Cached: 607144 kB
SwapCached: 0 kB
Active: 571464 kB
Inactive: 709796 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 6408 kB
Mapped: 4844 kB
Slab: 52620 kB
SReclaimable: 32752 kB
SUnreclaim: 19868 kB
PageTables: 1468 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 1003708 kB
Committed_AS: 33988 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 68152 kB
VmallocChunk: 34359668731 kB

I've have expected much more free memory here and I definitely do not
see how this could combine 2GB of my memory:

652412 + 70000 + 607144 + 6408 + 4844 + 52620 + 32752 + 19868 + 1468 =
1447516

1.4GB

so where is my 600MB piece of memory hiding ?

Zdenek