Questions tagged [tmpfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
49 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 ...
1
vote
1answer
225 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
1answer
51 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
0answers
41 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
1answer
86 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 ...
0
votes
1answer
56 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
1answer
54 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
0answers
46 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
0answers
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 ...
2
votes
1answer
513 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
0answers
108 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
0answers
19 views

Modify raspbian so it acts like tinycore

I'd like to modify my raspbian to act like tinycore. With this I mean, that everything I do is just stored in RAM and erased on reboot. The only persistent thing should be the packages. When ...
0
votes
1answer
37 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
0answers
20 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 ...
0
votes
0answers
103 views

Create a USB mass storage for Ubuntu via g_mass_storage

I've been trying to use the g_mass_storage driver to emulate a USB Mass Storage (a USB key let's say) on my Ubuntu machine in order to connect it to a windows computer and to transfer data from the ...
0
votes
0answers
70 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 ...
1
vote
1answer
620 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
1answer
27 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? ...
0
votes
2answers
562 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
1answer
423 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 ...
0
votes
1answer
636 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
1answer
146 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 ...
1
vote
0answers
29 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 ...
0
votes
1answer
120 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 ...
1
vote
1answer
62 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 ...
0
votes
1answer
442 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/...
2
votes
1answer
200 views

zsh: check whether $PWD is on tmpfs mounted filesystem

I would like to change my zsh prompt color, if $PWD is currently on tmpfs mounted filesystem. Lets say for example, /dev/shm is a tmpfs filesystem. I can confirm that: $ grep /dev/shm /proc/mounts ...
2
votes
1answer
361 views

/var/cache on temporary filesystem

Due to flash degradation concerns, I would like to lower the amount of unnecessary disk writes on a headless light-duty 24/7 system, as much as sensible. In case it matters this is a Debian-flavored ...
0
votes
1answer
1k views

/tmp full but... empty

In a Python program, I use np.memmaps, which make use of the /tmp directory to handle massive arrays. I make sure to clear /tmpregularly by running rm -rf /tmp/* every time I use this code. However ...
1
vote
1answer
128 views

mount same tmpfs on two mountpoints

I have this in my /etc/fstab: tmpfs /home/user1/tmp tmpfs rw,nodev,nosuid,noexec,size=16G 0 0 user1 has tmpfs mounted as /home/user1/tmp. I would like to mount same tmpfs for user2 as well, ...
-2
votes
2answers
208 views

Why are process management files on Linux stored under /var/run?

Why are process management files on Linux stored under /var/run? For example: $ ls -ltr /var/run/ | grep pid -rw-r--r-- 1 root root 4 Mar 26 14:12 lvmetad.pid -rw-r--r-- 1 ...
0
votes
0answers
13 views

Can I efficiently fork a ramfs partition?

I want a ramfs (or equivalent, but strictly RAM only) partition which will serve as a read-only master instance from which any number of identical children can be forked. When a process forks, this ...
2
votes
0answers
298 views

How to check actual RAM usage of tmpfs?

I know that tmpfs falls back to using swap if system is under memory pressure. I can query total tmpfs usage in KiB with df | grep tmpfs | awk 'BEGIN{sum=0} {sum = sum + $3} END{print sum}' but how ...
0
votes
2answers
887 views

Linux - Is it possible to create a memory filesystem (ramdisk/tmpfs) to buffer/cache data from disk?

I've got some code that processes a load of data stored on an external HDD. There is about 6.5 GiB of data on the disk, but only a few files are processed rather than the entire contents. I created a ...
0
votes
0answers
19 views

Replace root folder of writing paths used in process

I have a process that creates and uses temporary files. When I run many instances of this process the disk throughput becomes a bottleneck. I know that I can use a temporary file system mounted in RAM,...
1
vote
1answer
1k views

Limits of tmpfs filesystem

What are the limits of the tmpfs filesystem in terms of: Maximum file size Maximum file system size Maximum subdirectories Maximum symlink depth I'm using a centOS 8. The tmpfs is mounted via: [...
0
votes
1answer
108 views

I have a 50GB server SSD and 40G ram, running Ubuntu, my tmpfs is taking 2 partitions of 15GB of my SSD? [duplicate]

How do I get some space back? I have no space. Edit: Clarification, I did run at least a few different Conda environments, could then be the source of this tmpfs files ? Filesystem Size Used ...
1
vote
1answer
42 views

Keep /run/user/$UID until reboot

Is it possible to maintain the /run/user/$UID directory for all users until a machine reboots? To be clear, if a user logs off and all their processes end/are closed, I still like that user's ...
-2
votes
1answer
539 views

What happens if tmpfs reached the limit that defined in percentage

lets say we defined the following in /etc/fstab tmpfs /data tmpfs size=90% 0 0 And then we mount -a Now /data is with tmpfs What could be happens on the following scenario case that /data ...
1
vote
1answer
353 views

Can we set the size in tmpfs syntax as percentage instead of static size

Can we set the size in the following syntax as percentage instead of static size? example from /etc/fstab tmpfs /var/work tmpfs size=100g 0 0 lets say we have ram memory with 120g , we can ...
0
votes
0answers
69 views

differences between tmpfs in fstab

we want to use tmpfs on /var/work folder what is the differences between the following tmpfs in fstab tmpfs /var/work tmpfs size=4g 0 0 to this tmpfs in fstab tmpfs /var/work tmpfs ...
1
vote
1answer
666 views

RAM disk + is it possible to mount to RAM instead of disk

we have Linux machine that used the disk /dev/sdb to save data , we configured the mount point in /etc/fstab disk is 100G , and mount point is the folder /data now we want to use the memory ( we ...
0
votes
0answers
40 views

Filesystem that removes everything when getting full

I'm wondering if there is a solution that enables me to drop a filesystem that becomes full. Why such a weird idea? I have a thumbnailer called tumbler. It generates thumbnails of pictures I browse ...
0
votes
2answers
469 views

Downloading and writing a text file onto tmpfs is slower than writing to disk, why?

I have a tmpfs named /rtmp/ that has 1GB of RAM allocated to it on Ubuntu OS. Using a bash script, I am testing to see if it is faster using to write a small text file to the hard disk or if it is ...
0
votes
2answers
984 views

tmpfs - files still present after unmounting

I am learning about tmpfs. The man page for tmpfs says - The tmpfs facility allows the creation of filesystems whose contents reside in virtual memory. and - If a tmpfs filesystem is ...
0
votes
0answers
338 views

How to create a file-system in RAM? (a virtual disk-drive)

I'm aware of tmpfs and what I really need is a disk partition resides on RAM where I could format it with BTRFS. How can I create a raw device on RAM and format it with any regular filesystem? Or is ...
3
votes
0answers
2k views

Difficulty mounting NFS as a layer in Overlayfs - bash: Operation not supported

Synopsis I'm serving a NFS share from my local machine and, while mounting and accessing the share works as expected, when I attempt to reference the NFS as a lower directory in overlayfs, operations ...
4
votes
2answers
2k views

Mount a tmpfs folder on startup (volatile) with a created subfolder

Currently using Debian 9.5 with this fstab file: # /etc/fstab: static file system information. # /dev/mmcblk1p1 / ext4 noatime,errors=remount-ro 0 1 tmpfs /var/...
0
votes
1answer
32 views

How to report a bug to tmpfs?

I would like to propose a new feature to tmpfs and discuss it. Where should I do this? I guess I can create a ticket in Linux Kernel's bugzilla but not sure if they "own" the tmpfs because it's also ...
1
vote
0answers
261 views

Linux create symlink on slow drive to tmpfs

My application creates cache for read/write inside my OS drive, which is slow, so I have mounted tmpfs and created a directory inside it. Then I created a symlink at the path on the slow drive where ...