Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

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

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.