tthtlc / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

Discard unused swap blocks and free memory #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Maybe compcache could utilize the discard blocks commands emerging in the
kernel. Something concerning swap is proposed in
http://lwn.net/Articles/297695/ . Looks like this framework will tell the
underlying devices (in our case compcache module) which blocks/areas of
swap are no longer needed. I think compcache could the free the memory used
for this areas. Which it couldn't do till now and used memory was
constantly increasing. Am I wrong. This is an enhancement, not a bug report :)

Original issue reported on code.google.com by aceli...@atlas.sk on 19 Sep 2008 at 11:50

GoogleCodeExporter commented 9 years ago
Looks like this change couldn't make it into 2.6.28 :(

Original comment by nitingupta910@gmail.com on 28 Dec 2008 at 9:10

GoogleCodeExporter commented 9 years ago
This swap discard patch is now in 2.6.28-git14. compcache-0.5pre4 now uses this 
to
free memory associated with freed swap blocks (it still compiles on older 
kernels but
this feature won't be available).

Thanks for directing me to this article.
Marking as "fixed" now :)

- Nitin

Original comment by nitingupta910@gmail.com on 10 Jan 2009 at 6:14