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
0
votes
0
answers
331
views
When mounting dir to RAM, will contents remain after computer reboot
I mounted a cache directory to tmpfs for faster performance on my website using this command:
tmpfs on /var/cache type tmpfs (rw,relatime,size=102400k,mode=777)
It seems to be working well, however, ...
1
vote
1
answer
3k
views
systemd: disable useless tmpfs
Context: embedded system, read-only MMC with tmpfs overlay. Everything gets written to RAM & disappears on reboot.
systemd insists on creating numerous tmpfs mounts (at least /run /run/lock /run/...
0
votes
1
answer
1k
views
Changing permissions of /tmp
I know that 1777 is the default mode of /tmp on many Linux distros.
I haven't been able to find much online, but I'm wondering if making /tmp group- and/or world-readable is really necessary.
Can ...
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)
...
1
vote
1
answer
2k
views
Differences between symlink to /tmp and tmpfs
I'm trying to make a read-only file-system (Raspbian). One common way is to place some directory (that are to be writable) in a tmpfs.
Example, I found some tutorials that suggest:
rm -rf /var/lib/...
2
votes
1
answer
817
views
How can I efficiently force VirtualBox to use /dev/shm for all VM files?
SuperUsers. I want to preserve the life of my laptop's SSD drive. I make heavy use of Vagrant, Chef, and Virtualbox. I'm using Test Kitchen w/ Vagrant to run my infrastructure code tests. I am ...
1
vote
1
answer
661
views
Is it possible to create tmpfs inside lvm puppet module?
we have autoprovisioning of linux machines (using trusty and xenial) and we are using puppet for it.
We are using LVM in puppetlabs/lvm and specifying it in hiera.
Example:
lvm::volume_groups:
...
1
vote
1
answer
2k
views
OverlayFs merge on unmount
For performance reasons I would like to stack tmpfs on top of the working directory of some programs. However, the program needs to access data previously saved in the "real" working directory, ...
2
votes
1
answer
5k
views
tmpfs — deleting files won't free the space
Using fedora@latest, I have /tmp mounted as a tmpfs.
Sometimes I run some program that stores large files into it, until I fill it entirely.
I try to delete some files manually, hoping to free space,...
0
votes
1
answer
2k
views
How to use tmpfs and SSD for smart cache
I want to create fast logical disk under Linux for storing temporary files. This files I don't afraid to lost.
On my machine I have 128Gb of RAM and 512Gb of SSD disk. So I want use 50% of my RAM as ...
0
votes
0
answers
1k
views
DD-WRT: /tmp folder permissions
After making a simple hello world OpenWRT package I installed it to the /tmp folder on the dd-wrt device. The program shows up in ls /tmp but when I try to execute it, it shows me /tmp/helloworld: ...
0
votes
1
answer
457
views
Where's my RAM disk being stored?
I'm running an Ubuntu VM under Windows 7, within the VM I've allocated a 5GB RAM disk using sudo mount -t tmpfs -o size=5G tmpfs /mnt/gitRAM and then copied files into it. When I then look at conky ...
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 ...
1
vote
1
answer
1k
views
Securely wiping a file on a tmpfs
I have a script that decrypts some data to a tmpfs, the directory is secure (permissions), the machine's swap is encrypted (random key on boot) and when the script is done it does a 35 pass wipe (...
0
votes
1
answer
2k
views
Deleting files within the /tmp directory on an ubuntu machine
My Symfony website has just started to show the following error:
ErrorException: Warning: session_start(): open (/tmp/sess_4h4kjh4ui4h478h48h44g02,O_RDWR) failed:No space left on device(28) in /var/...