Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discard unused swap blocks and free memory #14

Closed
GoogleCodeExporter opened this issue Mar 31, 2015 · 2 comments
Closed

Discard unused swap blocks and free memory #14

GoogleCodeExporter opened this issue Mar 31, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant