Questions tagged [tmpfs]

78 questions
121
votes
2 answers

How can I use RAM storage for the /tmp directory and how to set a maximum amount of RAM usage for it?

After seeing the comment by Anonymous on the question How is the /tmp directory cleaned up?, I found that it would be a great idea to implement on my system, since I have 16GB of RAM and I never used all of it. My temporary files never get written…
Dan
  • 14,180
23
votes
2 answers

How to allow snap applications to access /tmp folder?

Usually I'm avoiding snap-based applications, but sometime I need them. For example - Markdown Lint Tool is shipped only as Snap named mdl. It works great when files are in home folder - $ echo "# header" > ~/test.md $ /snap/bin/mdl ~/test.md ;…
N0rbert
  • 103,263
21
votes
3 answers

Why doesn't /tmp use tmpfs?

I have loads of RAM and I use very little. I also do record some screencasts with gtk-recordmydesktop, which by default saves to /tmp while recording. I assumed that it would mean storing to RAM as much as possible, but then I actually checked and…
17
votes
2 answers

How to create RAM drive?

How do i create RAM drive under ubuntu. And would he automounted at startup?
litvin05
  • 601
13
votes
2 answers

Mounting /tmp as tmpfs on Ubuntu 20.04

I'd like to mount /tmp without fstab entry using tmp.mount However on Ubuntu 20.04 LTS, it doesn't seem to work. user@user-x1:~$ systemctl status tmp.mount Unit tmp.mount could not be found. user@user-x1:~$ sudo systemctl enable tmp.mount Failed…
x70766c
  • 133
13
votes
2 answers

How do I set the default size of /dev/shm?

I'd like to change the default size of /dev/shm in Lubuntu 11.10 (also known as /run/shm now, I guess). It doesn't seem to appear in my fstab: # / was on /dev/sdb5 during installation UUID=66ac63f0-45fa-4766-9d20-7c56bcd0460d / ext3 …
Richard
  • 1,357
11
votes
1 answer

/tmp in tmpfs, how do this only with systemd?

I have now a laptop with Ubuntu 18.04 and i love it. i have mounted /tmp as tmpfs via /etc/fstab line as this: tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777 0 0 now, i like to know how i can do this…
Yonsy Solis
  • 882
  • 2
  • 8
  • 20
8
votes
1 answer

How do I increase size of per-user tmpfs partition /run/user/$(id)?

Fresh installation of Ubuntu 16.04. File /etc/fstab contains no references to /run/user/... mount prints ... tmpfs on /run/user/115 type tmpfs (rw,nosuid,nodev,relatime,size=1612068k,mode=700,uid=115,gid=124) tmpfs on /run/user/1002 type tmpfs…
wl2776
  • 243
8
votes
2 answers

How can I make an existing persistant live USB installation load more of the OS to RAM?

A while back I installed (a permanent installation, not a Live USB) Ubuntu on my USB thumb drive. Unfortunately, the transfer rates are too slow for a smooth and responsive experience, so I'd like to load more of the OS into RAM when it boots up,…
ladaghini
  • 800
8
votes
2 answers

tmpfs vs. ext4 ramdisk

I would like to know which of both is faster; a tmpfs or a ext4 ramdisk. If someone knows a good way to benchmark disk perfomance on ubuntu, I will gladly do the test myself and post the results.
thwd
  • 301
7
votes
2 answers

large tmpfs /run partition - must it be so big?

I am running Ubuntu 11.10 desktop on a couple of 8G RAM Wintel boxes. Both have been created automatically by the default installer with a 1.6GB tmpfs /run partition, where I suspect this amount of RAM could be more usefully used elsewhere in the…
Stevod
  • 71
6
votes
2 answers

No /var/log/syslog file after moving /var/log to tmpfs

To avoid useless write to my SSD I've moved /var/log (and /tmp) to RAM via /etc/fstab: cat >> /etc/fstab <<'EOT' tmpfs /tmp tmpfs defaults,size=1g 0 0 tmpfs /var/log tmpfs …
CDuv
  • 161
6
votes
1 answer

Moving files to /dev/shm ramdisk doesn't increase RAM usage?

I've been wanting to make us of a ramdisk on my Ubuntu system for a while, and have done a bit of reading online. Most of the advice centres around using /dev/shm to move files into RAM. I wanted to try this out so I copied six 1GB files to…
stjep
  • 163
6
votes
0 answers

Is there anything in ~/.cache that is not really cache?

My machine has lots of memory, so I moved ~/.cache/google-chrome into /tmp, which is a tmpfs RAM disk. This makes the browser run faster and reduces SSD usage. When I reboot, it all goes away, but it gets recreated again. All is fine. In theory, I…
5
votes
1 answer

How to Setup tempfs/RAM Disk (Generally and for LuaLaTeX)?

I've spent the past several hours (not few, several!) reading different pages and questions on how to setup a tmpfs/RAMDisk. They all say different things and say what filesystems I should and shouldn't be including, so I would really appreciate a…
airatin
  • 51
  • 3
1
2 3 4 5 6