Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wondered if tmpfs and zram do negatively interfere with each other in any way? After what I've read about it I'm unsure whether there is a positive cumulative effect accomplishable with that combination.

Has someone made experiences with that combination?

Thank you in advance for useful answers!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

So to answer the question I think you're asking, it is possible to use these two together, and doing so won't cause any ill effects on the other.

I don't know if you are familiar with /dev/shm, but it's a filesystem mounted in RAM which appears to be a folder. SHM, tmpfs and zram are all slightly different implementations which lead to the same output - storage of data in RAM instead of a secondary storage device. As far as I know, the differences lie in how they react when RAM starts filling up.

Since you're asking this question you've probably heard of swap - when memory reaches near-full capacity, the OS starts moving data between RAM and a dedicated partition. From what I remember, and this might be wrong, but tmpfs will only be swapped when absolutely necessary, and will always try to remain in RAM. /dev/shm can be swapped as readily as any other data in RAM, and I don't know about zram but I suspect it's the same.

share|improve this answer
    
Thank you very much for taking the time to answer my question! –  FuzzyQ Jun 10 '12 at 17:42
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.