Skip to main content

Questions tagged [tmpfs]

tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device.

27 votes
2 answers
16k views

Can I put /tmp and /var/log in a ramdisk on OS X?

For non-critical Linux systems, I often move things like /tmp and /var/log to tmpfs to save on some disk writing. I've been doing this for a year or so and if I ever need the logs across reboots, I ...
kbyrd's user avatar
  • 2,227
25 votes
3 answers
39k views

Why should I make a separate partition for /tmp?

Why should I make separate partitions for /tmp, /var and so on? I can see more drawbacks than benefits. One benefit is that I can use ext4 with journaling for /home and ext4 without journaling for ...
patryk.beza's user avatar
  • 1,591
24 votes
8 answers
82k views

How to cleanup tmp folder safely on Linux

I use RAM for my tmpfs /tmp, 2GB, to be exact. Normally, this is enough but sometimes, processes create files in there and fail to cleanup after themselves. This can happen if they crash. I need to ...
Syncopated's user avatar
16 votes
1 answer
20k views

Why is a second "tmpfs" parameter necessary when mounting a tmpfs?

Excerpted from the documentation So 'mount -t tmpfs -o size=10G,nr_inodes=10k,mode=700 tmpfs /mytmpfs' will give you tmpfs instance on /mytmpfs which can allocate 10GB RAM/SWAP in 10240 inodes ...
xmllmx's user avatar
  • 444
10 votes
3 answers
3k views

Should I expect programs that run from a tmpfs folder to run faster? (with and without I/O, inside and outside a Docker container)

On Linux, suppose I have an executable file. Let's look at two cases: (A) A large portion of what the executable does is disk I/O; (B) the executable doesn't do any disk I/O. For each of the cases A ...
Lior's user avatar
  • 211
9 votes
2 answers
11k views

Is using a Virtual PC on a RAM DISK super fast? (putting the .vhd file in a RAM DISK)

I wonder how or if any one tried to create a RAM DISK, and then put the 2GB (or sometimes 1.2GB) .vhd file into it, and then run the virtual PC using this image. It should be running super fast, as ...
nonopolarity's user avatar
  • 9,706
8 votes
1 answer
28k views

How to find size of RAM cache use for ramfs, tmpfs

I'm wondering if there is any way to specify the size of RAM cache used to store ramfs, tmpfs? When I look at /proc/, I can't find anything about ramfs size.
Nick's user avatar
  • 89
5 votes
1 answer
9k views

controling tmpfs memory usage

Any way to limit the amount of RAM used by tmpfs wihtout limiting the amount of swap? Most documentations says that tmpfs' size option will limit the total size of the tmpfs partition and later on ...
gcb's user avatar
  • 5,021
4 votes
1 answer
1k views

How to read tmpfs as a block device in linux?

A typical linux machine mounts a tmpfs to store temporary files: $ df Filesystem Size Used Avail Use% Mounted on /dev/sda1 953M 702M 203M 78% / tmpfs 1.5G ...
Duke Nukem's user avatar
  • 1,235
4 votes
1 answer
879 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my /...
terdon's user avatar
  • 53.7k
4 votes
4 answers
2k views

How can I create consistent snapshots of tmpfs?

How can I create consistent snapshots of tmpfs or any RAM disks?
netvope's user avatar
  • 5,345
4 votes
3 answers
2k views

How can I allow normal users to mount tmpfs under subdirectories of their home directory?

How can I allow normal users to mount a tmpfs under any subdirectory owned by them?
Thiago Padilha's user avatar
3 votes
1 answer
6k views

Linux tmpfs write speed slower than RAM speed

I have a HPE ProLiant DL360 Gen9 server, specs are: CPU: Intel Xeon 2 CPUs E5-2687W v3 @ 3.10GHz, 25MB L3 cache, 10 cores ea RAM: 8x 32GB PC4-17000 DDR4 2133MHz CAS-15 1.2V SDRAM DIMM (256 GB total) ...
atreyu's user avatar
  • 362
3 votes
1 answer
1k views

Mount TMPFS instead of ro /dev

I am working on a ARM-Based embedded system with a custom Debian Linux based on kernel 2.6.31. In the final system, the Root file system is stored as squashfs on flash. Now, the folder /dev is created ...
schiggn's user avatar
  • 41
3 votes
0 answers
8k views

How do I unmount a tmpfs that is missing from /etc/mtab?

I have the following line in /etc/fstab: none /home/hydra/tmp tmpfs user,noauto,size=1000M,uid=1001,gid=1001 0 0 I can do mount ~/tmp as user hydra and it gets mounted ok. The only problem is ...
Kostas's user avatar
  • 150

15 30 50 per page