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.

50 questions
29
votes
2 answers

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 just comment out a line in /etc/fstab and then…
kbyrd
  • 2,256
26
votes
3 answers

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 other partitions. Main drawback is size limit. When…
patryk.beza
  • 1,661
24
votes
8 answers

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 delete these orphaned tmp files or else future…
16
votes
1 answer

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 and it is only accessible by root. Please note the…
xmllmx
  • 444
10
votes
3 answers

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 and B, should I expect a significant difference in…
Lior
  • 211
9
votes
2 answers

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 the hard disk is now simulated by RAM... I never…
8
votes
1 answer

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
  • 89
5
votes
1 answer

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 will say that this space is used both by RAM and…
gcb
  • 5,442
  • 13
  • 62
  • 86
4
votes
1 answer

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 /tmp partition was full. $ df -h Filesystem …
terdon
  • 54,564
4
votes
3 answers

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?
4
votes
1 answer

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 111M 1.5G 0% /tmp ... On a live machine, how…
Duke Nukem
  • 1,255
  • 2
  • 10
  • 21
4
votes
4 answers

How can I create consistent snapshots of tmpfs?

How can I create consistent snapshots of tmpfs or any RAM disks?
netvope
  • 5,475
3
votes
1 answer

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 by udev, but since there is no hot plugging…
schiggn
  • 41
3
votes
0 answers

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 that even thought it gets added to /proc/mounts, it…
Kostas
  • 150
3
votes
1 answer

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) (full server specs here) The server is running…
atreyu
  • 362
1
2 3 4