Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
3  
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
    
add comment

2 Answers 2

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.