Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I reuse physical memory in the absence of swapping?

share|improve this question
Sorry - what do you mean by reuse? Writting dirty cache? Using sharing memory? Deallocating/reallocating physical space? – Maciej Piechotka Jan 3 '11 at 14:41
I think I am meant to say De-allocating/reallocating physical space. – Sen Jan 3 '11 at 14:47

Just don't ? Let the kernel do its job, it knows better ?

share|improve this answer

You can't... one the memory is allocated, other process can't reuse it because... well, it is use!

if you dont have swap (probably because there is no HD, want to avoid burning the ssd/SD card write cycles, etc), you can try to use the zram.

This way you burn a little of ram to have a compressed swap that can save you lots of ram. It is available in kernel 3.11 and safe to use. Older kernels may have it in staging, but might still have some bugs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.