slocate leaking serious memory

Andy Green fedora at warmcat.com
Mon Apr 5 09:31:36 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks -

I tracked down the source of the overnight memory leakage on my up to date 
devel machine to slocate.  I did this by running each of the scripts 
in /etc/cron.daily/ by hand until more memory got eaten.

When I ran /etc/cron.daily/slocate.cron, it not only allocated several hundred 
megabytes (not for cache, allocated memory) but they remained allocated after 
slocate had finished.  I can now lose hundreds of MB of memory on demand :-(

Here is what top has to say now, again in KDE with just a few apps open.  
Slocate has definitely terminated.

$ ps -Af | grep slocate
agreen   19826 18700  0 10:21 pts/26   00:00:00 grep slocate

top - 10:25:56 up 1 day,  1:12, 21 users,  load average: 0.11, 0.92, 0.81
Tasks: 103 total,   1 running, 102 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.7% us,  5.3% sy,  0.0% ni, 89.4% id,  0.3% wa,  0.3% hi,  0.0% si
Mem:   1034740k total,  1029724k used,     5016k free,   112588k buffers
Swap:  1044216k total,      280k used,  1043936k free,   163336k cached

# cat /proc/meminfo
MemTotal:      1034740 kB
MemFree:          5540 kB
Buffers:        109464 kB
Cached:         168924 kB
SwapCached:        108 kB
Active:         340720 kB
Inactive:        82924 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      1034740 kB
LowFree:          5540 kB
SwapTotal:     1044216 kB
SwapFree:      1043936 kB
Dirty:            1704 kB
Writeback:           0 kB
Mapped:         224832 kB
Slab:           595032 kB
Committed_AS:   353340 kB
PageTables:       3644 kB
VmallocTotal:  3088376 kB
VmallocUsed:      2260 kB
VmallocChunk:  3086016 kB
HugePages_Total:     0
HugePages_Free:      0
Hugepagesize:     4096 kB

Mounted drives:

[root at fastcat cron.daily]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc2              36G   32G  2.6G  93% /
/dev/hdc1              99M   12M   83M  13% /boot
none                  506M     0  506M   0% /dev/shm
none                  506M     0  506M   0% /var/lib/jack/tmp
/dev/sda2             150G  146G  1.3G 100% /mnt/hard

/dev/sda2 is a USB2 HDD.

Slocate version

[root at fastcat root]# rpm -q --whatprovides /usr/bin/slocate
slocate-2.7-8


- -Andy

- -- 
Find your answer without waiting for replies....
Searchable list archives at 
http://marc.theaimsgroup.com/?l=fedora-list&r=1&w=2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAcSd5jKeDCxMJCTIRApF2AJ46n4fsxEX8xdo6oBo8sdP20tAKIQCgiCVu
cxgh6yPoKyPW+u1fIBHxlKE=
=tSyC
-----END PGP SIGNATURE-----





More information about the fedora-test-list mailing list