VM Problem : persistent swap cache

From: Edouard Gomez (ed.gomez@wanadoo.fr)
Date: Sun Dec 02 2001 - 12:08:02 EST


Hi,

  I've noticed something stange about the 2.4.16 VM. When I use some apps
which require a lot of memory (Like Unreal Tournament + Mozilla ...) at the same
time, VM allocates memory from the swap space. That's normal, but when I quit
one or more of those apps : the swap cache is not freed.

Here you have /proc/meminfo after having played UTournement + Divx Watching
+ mozilla and quit UT :

        total: used: free: shared: buffers: cached:
Mem: 394809344 154902528 239906816 0 6422528 98713600
Swap: 139788288 21127168 118661120
MemTotal: 385556 kB
MemFree: 234284 kB
MemShared: 0 kB
Buffers: 6272 kB
Cached: 91544 kB
SwapCached: 4856 kB
Active: 107300 kB
Inactive: 20776 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 385556 kB
LowFree: 234284 kB
SwapTotal: 136512 kB
SwapFree: 115880 kB

As you can see, there's 20Mo of swap though lot of free RAM is available.
The strange thing is that this 20Mo keeps growing with the time and are
never freed.

My system configuration is :

CPU : PentiumIII
RAM : 384Mo SDRAM PC133
Kernel : 2.4.16 (marcelo tree)
.config: see attachment

  I'm currently trying to see what part of the VM can cause this strange
behaviour. I know the change has been done between 2.4.14 and 2.4.15/16
because 2.4.14 has never done that. But I'm not a kernel hacker so i
think it's better to do a bug report and let the real hackers do their
job :-)

-- 
Edouard Gomez
http://perso.wanadoo.fr/ed.gomez


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:19 EST