Questions tagged [tmpfs]
The tmpfs tag has no summary.
201 questions
-1
votes
1
answer
103
views
Why does the position of `exec` flag in `/etc/fstab` matter? [duplicate]
I find it peculiar, that I could not execute binaries / scripts on my new RAMdisk (tmpfs).
1)
tmpfs /ramdisk tmpfs exec,size=3G,noauto,sync,user,rw,x-gvfs-show,x-gvfs-name=RAM 0 0
versus
2)
...
-1
votes
1
answer
139
views
Resizing filesystem to increase space in AWS EC2 instance
I created an AWS EC2 instance, and I am using the EC2 instance to maintain a database. I'm currently trying to perform some post-processing on my database (by quering my database in batches), but this ...
0
votes
0
answers
140
views
Declaring a bind mount in systemd-controlled initrd and persisting systemd attributes for the mount into the system
I know my title is a little bit convoluted so let me explain what I'm doing here in more detail. I am using a ephemeral root setup on my machine, essentially meaning that my / mount is a tmpfs and ...
2
votes
1
answer
235
views
Weird result mounting a tmpfs as root in the directory tree
Using unshare -Umr I created a new user, mount namespaces where the calling process is moved into. Then via mount -t tmpfs tmpfs / I mounted a new tmpfs instance on the root / of the directory tree ...
0
votes
0
answers
27
views
modifying systemd tmp.mount parameters [duplicate]
In RHEL 7 and later as well as other Linux distributions, systemctl enable tmp.mount makes the /tmp folder a tmpfs (a temporary file system).
In RHEL 8.10 for example, by default those parameters are ...
1
vote
1
answer
452
views
What creates tmpfs directories /run, /dev/shm on systemd?
My systemd linux systems show several tmpfs directories (/run, /dev/shm, /run/lock and on my raspberry also /sys/fs/cgroup).
Alas, I cannot find where these top directories are created.
I know that ...
1
vote
1
answer
2k
views
What is the purpose of tmpfs mounts under /run/credentials?
I haven't seen these tmpfs /run/credentials ... listed mounts in my df output before.
What's it about
:> df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0M 0 1....
9
votes
0
answers
1k
views
Why does systemd create so many tmpfs files? And how to disable them?
I have installed and updated Debian testing yesterday,
and now I see several files on tmpfs:
df -h
Sist. Arq. Tam. Usado Disp. Uso% Montado em
udev 16G 0 16G 0% /dev
tmpfs ...
0
votes
1
answer
79
views
User accessible directory that is guaranteed to be tmpfs?
As in the title, I'm looking for a user accessible directory that is guaranteed to be tmpfs.
/tmp is not even guaranteed to be wiped between reboots, so it's out.
/run is guaranteed to be tmpfs, and ...
1
vote
1
answer
3k
views
Using systemd-tmpfile to clear /tmp
I have a server (Ubuntu 22.04) which has a tmpfs partition mounted at /tmp. The server only reboots for security updates, so I can't rely on reboots to clear out /tmp.
systemd-tmpfile is using default ...
0
votes
1
answer
118
views
Do applications have priority over tmpfs for RAM usage (in the presence of swap)?
TLDR; If /tmp in mounted as tmpfs, in the presence of swap, is there any kind of priority when swapping ? Does tmpfs start to swap before applications ?
FULL STORY
I have a laptop with 32G of RAM (...
-1
votes
1
answer
874
views
Here is how to add support for Brave browser in profile-sync-daemon
Profile-sync-daemon can be installed in Debian based systems with sudo apt install profile-sync-daemon and in Arch based systems with sudo pacman -S profile-sync-daemon, but it lacks native support ...
0
votes
0
answers
321
views
/var/run persistence in Docker
I have just been bitten by a PID file problem in a (Debian) Docker container that is configured as --restart always
Trying to summarize the problem:
I start the apache2 service in my container. The ...
2
votes
1
answer
884
views
Any way to enable user_xattr on tmpfs?
I am trying to cache CIFS share files on a ramdisk with cachefilesd, however cachefilesd requires the cache directory filesystem to support user_xattr. tmpfs does not by default. Is there any way to ...
1
vote
1
answer
624
views
will DNF [YUM] fail if /var/tmp is a tmpfs file system?
I was considering making /var/tmp a tmpfs mount, similar to systemctl enable tmp.mount in order to meet a security rule requesting /var/tmp be on a separate partition. I did not make that physical ...
0
votes
2
answers
1k
views
Why does ftruncate with a shared memory object not use memory?
I've observed that I can create a shared memory object and give it ostensibly any size with ftruncate, regardless of the resource limits on my system. The code below sets the size to 262 TB, and ...
4
votes
2
answers
3k
views
How to create ramfs on Arch Linux
I have 24 GB RAM and a 8 GB swapfile. I know that under Arch Linux there's /dev/shm that uses tmpfs but I want to create a ramfs mount point because I want a place where I can temporary store ...
1
vote
1
answer
856
views
How do I set the size of /run (tmpfs) [duplicate]
I’m running AlmaLinux 9.2 (systemd v.252) on a small embedded(-ish) system, where I like to keep a lot of stuff in /run. When I was using CentOS7.x this was on the order of 1.5G, and I never really ...
2
votes
1
answer
657
views
Remove all changes after reboot
I want to allow users to be able to make temporary changes such as create files and directories, but have all those changes removed after rebooting. This should apply to everywhere in the file system.
...
0
votes
1
answer
865
views
Which comes first, fstab or /var/log?
When Linux boots, does it first read fstab and mount everything from it, or does it start systemd before that?
I expect that fstab comes first, but I didn't know how to confirm it. So, even if you ...
0
votes
1
answer
998
views
Can I mount `/var/log/journal` as `tmpfs`?
I have read this question, but it discusses syslog and my question is about journald. Can I mount /var/log/journal as tmpfs using fstab, or will journald be run (and therefore maybe write to the ...
1
vote
2
answers
1k
views
Move compressed log files outside /var/log [logrotate with log2ram]
I am looking for advice about logrotate.
I have recently installed log2ram to spare my ssd. Since I was not using all 24Gb RAM I assigned 2Gb to /var/log/. currently +- 300Mb is used.
I would like ...
0
votes
0
answers
2k
views
How to clear the contents under /run/user/1000/doc?
I am on Ubuntu 20.04 and installed evince via flatpak, when I open evince, it usually makes a copy of the opened file into /run/user/1000/doc.
I learned that /run/user/1000/doc is the temporary ...
5
votes
2
answers
13k
views
tmp on tmpfs: fstab vs tmp.mount with systemd
To have /tmp on tmpfs, I know I can use an entry in /etc/fstab, but I do not understand the role of /etc/default/tmpfs mentioned sometimes, and in what case I need to create or modify it.
Recently, I ...
3
votes
0
answers
93
views
Minimizing disk usage with parallel calls to GCC
I am experimenting with testing GCC in parallel. My setup will run 96 tests before giving me the test report.
If I run these tests sequentially it will invoke GCC once, run the executable, gather ...
0
votes
1
answer
7k
views
lsof: WARNING: can't stat() tmpfs file system
when I use lsof as regular user, I get following warnings:
lsof: WARNING: can't stat() tmpfs file system /home/testuser/.cache
testuser is another user on my systems, and my own user has no access to ...
0
votes
1
answer
182
views
Correct usage/location of tmpfs for a service in Raspberry Pi?
I wrote simple SystemD service for Raspberry Pi, which collects some data and writes it temporarily to
/run/user/1000
It worked, but on reboot I found, that this directory doesn't exist until user ...
0
votes
1
answer
301
views
Can't copy files to folder due to space issue after mand mount
I tried doing mandatory mount using the following the command
mount -t tmpfs -o mand,size=1m tmpfs ./FileLockFail/
Now when I am trying to copy a folder to the mounted directory, its giving me error
...
0
votes
0
answers
568
views
Recover files from a tmpfs?
How do I recover files from a tmpfs?
Some people say to use Volatility, but Python 2 Volatility doesn't have any Linux modules, and I don't see where to do file recovery in the Python 3 Volatility ...
2
votes
1
answer
4k
views
How to verify that my tmpfs/ramdisk is working?
I am setting up a RAM disk in CentOS 7, and by all tutorials, I am able to see the speed increase of writing to the disk. However I never see RAM usage increase either from free -h or from the System ...
2
votes
1
answer
14k
views
mounting /dev/shm with noexec
on RHEL/CentOS 7.9 there is by default tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
A security rule says that it must be mounted with the secure options of nosuid, nodev, and noexec.
Why ...
0
votes
2
answers
4k
views
How can I increase the size of /tmp directory without affecting RAM or anything else? (Redhat 8.2)
I'm new at Linux and I will get use of your help guys on this..
I want to increase the size of /tmp directory without affecting RAM or anything else on Red Hat 8.2 .. any suggestions to do that?
...
0
votes
0
answers
343
views
Why does `tmpfs` reads/writes to disk on file creation/deletion?
Question: why are there both disk reads and writes when I create or delete files on a tmpfs?
The tmpfs is mounted with mount -t tmpfs -o size=1G tmpfs "/SCRATCHSPACE" in /etc/rc.local (add ...
0
votes
1
answer
587
views
Why is RAMFS much slower than Ram?
I have a 64GB DDR4 3200MHz memory installed on my PC. When I run sysbench, I get the following results:
# sysbench memory --memory-block-size=1M --memory-total-size=10G run
sysbench 1.0.20 (using ...
1
vote
1
answer
390
views
Delete /tmp subvolume on btrfs partition scheme and make systemd-tmpfiles work with default tmpfs /tmp directory
I've made the mistake of mounting the /tmp directory as a btrfs subvolume. The problem is that systemd-tmpfiles won't clean it. How can I delete the /tmp subvolume and fix this? I'm new to filesystems,...
0
votes
1
answer
617
views
Unwanted automatically started tmpfs and lib/systemd/systemd --user process for not logged in user
Debian 11 Bullseye pc, systemd, no display manager, startx is used to start X, multiple users.
When I login with a user, let's say auser-UID 1000, I see this on process list:
USER PID %CPU %MEM ...
0
votes
0
answers
173
views
Browser downloads fail - Insufficient space in /tmp
I have a virtual machine (CentOS) that was pre-configured (I didn't partition them) and I have some of my work on it.
When I got access to the VM, it had very less storage space, and it isn't ...
0
votes
0
answers
25
views
How to mount an arbitrary directory and allow a user to umunt it? [duplicate]
I use a script to mount a temporary directory:
sudo mount -t tmpfs -o size=5G,nr_inodes=10k,mode=0777,user tmpfs tempdir
The script is runned from dozens directories, that probably means that I can't ...
3
votes
2
answers
2k
views
Ubuntu 20.04 problems with Chrome, Teams, Visual Studio Code... Maybe related with /dev/shm
I'm facing fatal errors since 2 weeks in my Ubuntu 20.04. Suddenly, my Chrome, my Visual Studio Code and my Teams app, stop working. They freeze, and I must restart my computer. This happens ...
1
vote
0
answers
2k
views
tmpfs /run running out of space but it is not really being used
Good night! I am trying to figure out what is happening with my /run directory!
If I look at /run size using df -h | grep tmpfs it returns something like:
tmpfs 10G 10G 0 *...
0
votes
1
answer
3k
views
how to avoid deletion of folders under /run or /var/run
the following folder --> /var/run/kafka , include the PID number of the kafka service
example
ls -ltr /var/run/kafka/kafka.pid
-rw-r--r-- 1 kafka hadoop 7 Nov 10 14:14 /var/run/kafka/kafka.pid
...
0
votes
0
answers
181
views
No files under mount point
I would like to mount my pendrive (/dev/sdc1) under /tmp/my_dir.
I used the following command:
sudo mount -t tmpfs /dev/sdc1 /tmp/my_dir.
I got no errors from mount command. When I check all my ...
1
vote
0
answers
605
views
tmpfs is slower when accessing a single file than accessing multiple files
Reading different (1.6 GB) blocks of the same file stored on tmpfs maxes out at 2.5GB/s at around 20 threads:
But if the same blocks are split into different files on tmpfs I can get 22GB/s:
What is ...
6
votes
1
answer
9k
views
How to disable/override automatic mounting of tmpfs to /tmp by systemd?
Background: On my system /tmp is a regular part of the / partition and I use it for a few important features of the system.
Current systemd Approach: On new systems systemd has started to take over ...
0
votes
1
answer
375
views
How to determine which tmpfs ran out of space overnight
I have a process that is using tmpfs and I need to know, out of many tmpfs, which one is getting full.
Is there a way to do that after a nightly process has failed due to 'out of memory' errors?
...
2
votes
3
answers
6k
views
Why, after unmounting cgroup v1, do I still have empty directories under /sys/fs/cgroup?
I just unmounted cgroup version 1, leaving just a single cgroup2 mount on my system.
$ mount | grep -i cgroup
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=...
0
votes
1
answer
3k
views
What happens if you put swap space on a RAM disk?
Since it's possible to create a RAM disk via tmpfs, and make it permanently available via /etc/fstab, what would happen if you had a post-boot script that created a swapfile on your freshly-minted RAM ...
1
vote
2
answers
5k
views
Is it necessary to mount devtmpfs with /etc/fstab?
I'm working on a Linux-like operating system for aarch64, based on a 5.6.4-v8+ kernel for Raspberry Pi 3 (Model B+).
The Kernel configuration options include:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
...
0
votes
1
answer
2k
views
Expanded root volume but tmpfs and devtmpfs is limited
I have expanded root volume in my Amazon ec2 machine (Amazon Linux 2) but the space in tmpfs and devtempfs is still limited.
Here is what output of df -h command looks like:
$ df -h
Filesystem ...
4
votes
0
answers
305
views
RAM based file system that overflows to physical disk and maintains maximum I/O performance
I have an issue that seems to hit all the restrictions I have read about regarding tmpfs. I would be very happy to hear anyone's comments on a possible solution.
I have an application that generates a ...