OS Disk cache not reclaimed on demand for programs

Bug #88408 reported by Andy Brook
4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

I've noticed this on and off since starting to use Ubuntu Dapper. If my machine is running for a while, I load a VMware image, perhaps jboss, evolution, start and stop a few things and I end up with a situation with 66% cache and 33% programs reported in the gnome System Monitor.

All well and good. Its what happens next thats annoying. I have 3GB of ECC ram, If I run another application, eg Eclipse, the memory usage starts to go up, and hits 100%, followed by an OutOfMemory problem / crash of Eclipse. This is nothing to do with Eclipse, closing other applications to provide more headroom allows Eclispe to run.

I would have expected the disk cache to be reclaimed fgr programs when available ram is consumed, why is it not? Am I misreading the gnome System Monitor.

Revision history for this message
Andy Brook (javahollic) wrote :

I should also add, this happens on just about every install Ive done, so its not a one off or machine specific problem.

Revision history for this message
Andy Brook (javahollic) wrote :

Going off piste to linux-mm.org, I found this:

http://linux-mm.org/Drop_Caches

This is exactly what I was thinking should be done automatically. I went from 66% cache and not being able to run programs, to 5% cache and being able to carry on.

The bug is that this doesn't happen automatically, and hasn't ever AFAICR.

Revision history for this message
Oleksij Rempel (olerem) wrote :

I newer had problem you described till vmware. After i use Vmware Workstation 6.x frequently i will out of memory even virtual machine is close. At this point is is not kernel or ubuntu issue.

Regards,
Alex

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.