Skip to main content

Questions tagged [tmpfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
158 views

unexpected tmpfs mounts : please explain

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....
Stephen Boston's user avatar
5 votes
0 answers
485 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 ...
Challado's user avatar
0 votes
1 answer
33 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 ...
jaskij's user avatar
  • 180
0 votes
1 answer
178 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 ...
QF0's user avatar
  • 315
0 votes
1 answer
39 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 (...
ChennyStar's user avatar
  • 1,795
-1 votes
1 answer
261 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 ...
H2onvety's user avatar
  • 109
0 votes
0 answers
96 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 ...
rems4e's user avatar
  • 115
1 vote
1 answer
178 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 ...
kataba's user avatar
  • 11
0 votes
0 answers
48 views

Strategies for deleting or encrypting tmp data

I have a Ubuntu 22.04 system with LUKS on LVM, with swap and a data volume encrypted (/data). This will eventually run on a VPS, with limited RAM (probably 2 or 4 GB), but a reasonable amount of disk ...
QF0's user avatar
  • 315
0 votes
0 answers
23 views

Triggering a script when filesystem usage changes considerably

Is there an existing solution for systemd based systems to call a user defined script when usage on some filesystem exceeds or falls short of certain limits, without implementing a polling every some ...
Juergen's user avatar
  • 702
1 vote
1 answer
213 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 ...
ron's user avatar
  • 7,182
0 votes
0 answers
21 views

/tmp and /var/tmp as tmpfs and volatility [duplicate]

The use of separate file systems for different paths can protect the system from failures resulting from a file system becoming full or failing. Check that a file system/partition has been created for ...
ron's user avatar
  • 7,182
0 votes
2 answers
363 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 ...
bgfvdu3w's user avatar
  • 115
2 votes
2 answers
1k 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 ...
Dean's user avatar
  • 123
1 vote
1 answer
411 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 ...
Popup's user avatar
  • 646
2 votes
1 answer
329 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. ...
Jon's user avatar
  • 23
0 votes
1 answer
471 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 ...
donaastor's user avatar
  • 214
0 votes
1 answer
497 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 ...
donaastor's user avatar
  • 214
0 votes
1 answer
471 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 ...
Vincent Stans's user avatar
1 vote
0 answers
1k 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 ...
Simon.Zh.1234's user avatar
3 votes
2 answers
7k 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 ...
Alexey's user avatar
  • 2,090
3 votes
0 answers
58 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 ...
Rewbert's user avatar
  • 131
0 votes
1 answer
5k 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 ...
Martin Vegter's user avatar
0 votes
1 answer
113 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 ...
Dims's user avatar
  • 3,285
0 votes
1 answer
239 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 ...
Himanshuman's user avatar
0 votes
0 answers
429 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 ...
Geremia's user avatar
  • 1,185
2 votes
1 answer
3k 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 ...
J Collins's user avatar
  • 1,165
2 votes
1 answer
11k 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 ...
ron's user avatar
  • 7,182
0 votes
1 answer
3k 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? ...
Kai Mo's user avatar
  • 1
0 votes
0 answers
246 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 ...
ddlfmbqrc's user avatar
0 votes
1 answer
481 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 ...
Diogo Melo's user avatar
1 vote
1 answer
321 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,...
Vinícius Gonçalves de Oliveira's user avatar
0 votes
1 answer
581 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 ...
Krackout's user avatar
  • 2,742
0 votes
0 answers
145 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 ...
thatbangaloreanguy's user avatar
0 votes
0 answers
24 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 ...
NickKolok's user avatar
  • 101
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 ...
Marc Gil Sendra's user avatar
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 *...
Luciano Andress Martini's user avatar
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 ...
yael's user avatar
  • 13.4k
0 votes
0 answers
145 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 ...
tom654321's user avatar
1 vote
0 answers
476 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 ...
Ole Tange's user avatar
  • 35.8k
5 votes
1 answer
6k 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 ...
Ned64's user avatar
  • 8,934
0 votes
1 answer
331 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? ...
tale852150's user avatar
2 votes
3 answers
5k 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=...
Evan Carroll's user avatar
  • 31.8k
0 votes
1 answer
2k 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 ...
warren's user avatar
  • 1,858
1 vote
2 answers
4k 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 ...
Daniel G.'s user avatar
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 ...
systemdebt's user avatar
3 votes
0 answers
224 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 ...
Aidan Walton's user avatar
0 votes
1 answer
446 views

Running a busybox applet from /tmp

There is a problematic situation with a headless Linux device. Long story short: the rootfs gets unavailable and this blocks everything. Power recycle is the only way out and I want to automatically ...
Daniel's user avatar
  • 339
1 vote
1 answer
331 views

Is it possible to avoid trashing hard disk while using /tmp as a RAM device?

Origin I need to implement some features to my GDB helper scripts but I have to stick with an older version of GDB (5.3, in this case). Since older versions lack so many features, I need to workaround ...
ceremcem's user avatar
  • 2,361
0 votes
1 answer
2k views

How do I delete shared memory that was used by mounted tmpfs directory?

I executed this command to create a RAM-Disk: mount -t tmpfs -o size=60G tmpfs /tmp/ramdisk After that I copied several files into this virtual filesystem as follows: cp /mnt/user/hugefile.bin /tmp/...
mgutt's user avatar
  • 487