Skip to contentSkip to conversation

Bug? in 2.4 memory management...

DISCUSSION José Manuel Román Ramírez 2 participants 2 messages Mar 7, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Hi,
I think we've 'discovered' a bug regarding the kernel 2.4.2-ac11 (and maybe other) and the memory management. It seems that the cached memory sometimes is not freed as more memory is required.

The system where we have detected the problem was an athlon 1ghz, 1.2gb of ram, and a swapfile of 2gb.

When we run a program that requires/uses 1ghz of memory, and we kill it, all (or nearly all) the memory is used by the cache, as we load a hugue file. The next time we run the program, it seems like the kernel can't use the cached memory and the memory we need is taken from the swap. Note however that when we set a swap partition smaller than the memory required, let's say 128mb, the problem disappears as the cache memory is used instead the swap...

So, what's wrong? Thanks in advance!

Signature · 10 lines
"I consider Red Hat 7.0 to be basically unusable as a development platform"
Linus Torvalds
--
Jose Manuel Roman - Theuzifan
[email protected] - [email protected]

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
#1 lore raw
Quoted 8 lines · Jose Manuel Roman Ramirez

Hi,
I think we've 'discovered' a bug regarding the kernel 2.4.2-ac11 (and maybe other) and the memory management. It seems that the cached memory sometimes is not freed as more memory is required.

The system where we have detected the problem was an athlon 1ghz, 1.2gb of ram, and a swapfile of 2gb.

Quoted 8 lines

When we run a program that requires/uses 1ghz of memory, and we kill it, all (or nearly all) the memory is used by the cache, as we load a hugue file. The next time we run the program, it seems like the kernel can't use the cached memory and the memory we need is taken from the swap. Note however that when we set a swap partition smaller than the memory required, let's say 128mb, the problem disappears as the cache memory is used instead the swap...

So, what's wrong? Thanks in advance!

VM balance is not quite right.

Could you please try ac12 (which has a patch to tune the VM a bit) and report results?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/