The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
29 views

Multiple tmpfs partitions

[mayur@mayur311-pc ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 3.6G 47G 8% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs ...
0
votes
0answers
46 views

Ubuntu 16.04 with read-only filesystem and writable layer

(This is a cross post from askubuntu, as I think here are more people to know how to get this working) I want to set up Ubuntu 16.04 like a live CD. This worked great in Ubuntu 12.04 but with 16.04 ...
3
votes
1answer
32 views

Is it a good idea to put ~/.cache in a tmpfs?

I'm concerned about the ~/.cache directory for two reasons : it causes a lot of writes on my SSD unnecessarily, and it contains informations (like image thumbnails) about files in encrypted containers ...
1
vote
0answers
11 views

Tmpfs with overflow on disk?

I'm looking for a way to have a tmpfs-like file system that can be unlimited in size, but will use a specified amount of RAM after which the "oversize" data will be stored on another disk-backed ...
1
vote
1answer
345 views

tmpfs : creating file in tmpfs does not change memory usage in htop/top

I read about tmpfs and got curious to get the benefits from it. So, I created a directory and mounted as tmpfs. So, as per theory, whatever is written in tmpfs gets stored on RAM directly and lasts ...
5
votes
1answer
83 views

Regarding the creation and destruction of sensitive data on linux/unix systems

In modern file systems (and on modern SSDs) there is no guarantee that if you write over a file using a traditional utility (such as dd) that the data will be overwritten in-place and journaled ...
4
votes
3answers
289 views

Do tmpfs and devtmpfs share the same memory region?

My system disk usage is like this: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 39G 12G 77% / devtmpfs 5.8G 0 5.8G 0% /dev ...
0
votes
0answers
29 views

How to add squashfs file to linux live iso with initrd and mount it

I'm looking for a way I can add files to linux live iso that I've built and somehow load them to memory after or before initrd loads and then mount them as tmpfs, Anyone know how to do that? Thanks.
3
votes
1answer
75 views

If tmpfs has bigger size than your RAM, how much RAM does it use? Are applications privileged for RAM?

If the size configured for tmpfs is bigger than the size of RAM, and there is a lot of stuff stored there in the tmpfs, how is the amount of RAM available to applications determined? If applications ...
1
vote
1answer
54 views

Why deleting big files from tmpfs is not instantaneous?

$ cat /proc/mounts | egrep ' /tmp ' tmpfs /tmp tmpfs rw,nosuid,nodev,relatime 0 0 $ dd if=/dev/zero bs=1M count=3000 of=/tmp/q 3000+0 records in 3000+0 records out 3145728000 bytes (3.1 GB) copied, ...
3
votes
1answer
170 views

change size of devtmpfs /dev/

My new kernel has CONFIG_DEVTMPFS enabled, and thus my /dev is mounted as devtmpfs. My old kernel was not using CONFIG_DEVTMPFS, and /dev used to be mounted as plain tmpfs. Now I have noticed, the ...
3
votes
1answer
185 views

How can I set up overflow /tmp partition?

I run Antergos as my OS. I have several drives in my computer: a 240gb SSD, a 320gb SATA hard drive, and a 120gb IDE drive. I store most everything on the SSD because I don't generally need more room ...
1
vote
1answer
55 views

migrating to systemd a startup-shutdown script that works with tmpfs and bindmounts

BACKGROUND INFORMATION : I have an init script that allows me to mount a folder to tmpfs, while bind-mounting the folder on drive to another location, so I can sync the contents (on startup, ...
8
votes
2answers
2k views

Difference between /run and /var/run

Is there any difference between /run directory and var/run directory. It seems the latter is a link to the former. If the contents are one and the same what is the need for two directories?
1
vote
2answers
223 views

How to create “real” RAM disk that reserves memory

I've been shortly using this on Linux Debian Jessie to create a "RAM disk": mount -o size=1G -t tmpfs none /mnt/tmpfs But I was told it doesn't reserve memory, which I didn't know. I would like a ...
1
vote
1answer
44 views

Creating and mounting a RAM disk at computer startup

This is how I create RAM disk manually on Linux Debian Jessie: mount -o size=1G -t tmpfs none /mnt/tmpfs The question is how do I make this automatic at each computer startup? I have never created ...
1
vote
2answers
167 views

What is going on with Google Chrome and deleted files

Debugging some CouchDB problems, I was looking for (still open) deleted files: $ lsof -nP | grep '(deleted)' And to my surprise I found that Google Chrome has around 16900 such files: 15870 files ...
5
votes
1answer
231 views

How safe is it to increase tmpfs to more than physical memory?

My server has 2GB RAM and 120GB SSD, plus some RAID arrays for storage. OS is Debian 8 (Linux 3.16). I have a MySQL intense application that has tmpdir = /run/mysqld, which is a tmpfs configured by ...
1
vote
2answers
159 views

Tmpfs mount for directories on another partition

I have /var on a 10Gb EXT4 partition separate from /. I want to stick /var/cache in RAM using tmpfs. The /etc/fstab entry would be quite simple: tmpgs /var/cache tmpfs ...
11
votes
3answers
12k views

Move /tmp to RAM

I am trying to move /tmp to RAM and obey good practice: /var/tmp should NOT be placed in tmpfs, as it must survive reboots not mount /tmp as a stand-alone tmpfs, but rely on /dev/shm or /run/shm ...
3
votes
1answer
80 views

How do I lock a growing directory in memory?

I want a directory to be fast to read from, like on tmpfs for some time. The closest thing is this: vmtouch -L -m 2G /path/to/mydir But this does not detect new or deleted files.
4
votes
2answers
179 views

Swap on tmpfs (Obviously a bad idea, but is it possible?)

This question originated with a joke between co-workers about increasing performance by moving swap partitions to a tmpfs. Clearly even if this is possible, it's not a good idea. All I want to know ...
3
votes
3answers
3k views

How can I check to see if the /tmp directory on my CentOS 5.x system is mounted on tmpfs?

CentOS 5.x My understanding is that the contents of /tmp/ in CentOS 5.x can/are automatically purged by the OS via one of two methods: A daily cron task running tmpwatch If /tmp/is mounted on a ...
5
votes
1answer
1k views

mount /var/log as tmpfs in Linux

My current laptop hard drive (Seagate ST940818SM) is slow (max 42MB/s R/W speed) and out of space. Mounting /tmp and /var/tmp as tmpfs does a lot of performance improvement. So is it safe to mount ...
3
votes
1answer
315 views

What happens when a tmpfs volume is full and swap is full? Is Linux's OOM-killer involved? [duplicate]

I understand that if a persistent / disk-based volume is full, files need to be explicitly deleted to free up space before more can be added. Further, I understand that if memory is exhausted, the ...
10
votes
1answer
799 views

What sets the size of tmpfs? What happens when its full?

What sets the size of the tmpfs? (On my machine it resides in /dev/shm) I can see its entry in /etc/fstab, but no notation of its size. When checking with df -h, it seems to be half the size of the ...
1
vote
2answers
440 views

mount tmpfs preserve current permissions

I have a directory of a web application cache and this has the permissions 755 (default), and I configured setfacl additional permissions. the problem is that when I restart the system, the ...
0
votes
0answers
30 views

Permission to execute denied for every file in /tmp: [duplicate]

When I try to execute any program from the /tmp directory, it shows me /tmp/file_name: Permission denied. The same error is shown when I simply enter /tmp. The file system for /tmp is ramfs. I've ...
4
votes
2answers
99 views

Can I mount a case-insensitive tmpfs/ramfs?

I would like to utilize the performance of tmpfs/ramfs for some file operations, but the programs/processes that use these files assume a case-insensitive file system. I cannot find any documentation ...
3
votes
2answers
941 views

Per user tmpfs directories

Using the shared /tmp directory is known to have lead to many security vulnerabilities when predictable filenames have been used. And randomly generated names aren't really nice looking. I am ...
1
vote
0answers
614 views

How are ownership and permissions of tmpfs folders created via /etc/fstab determined?

I've created a folder /mnt/ramdisk. I've got the following line in /etc/fstab to create the ramdisk at startup and mount it to /mnt/ramdisk: tmpfs /mnt/ramdisk tmpfs ...
0
votes
1answer
242 views

root cannot access virtual filesystem? [duplicate]

When attempting to check my disk usage under / I found that root did not have access to certain virtual filesystems. I also could not check the permissions on the virtual filesystem. Why is this? ...
12
votes
3answers
4k views

On system memory… specifically the difference between `tmpfs,` `shm,` and `hugepages…`

I've been curious lately about the various Linux kernel memory based filesystems. Note: As far as I'm concerned, the questions below should be considered more or less optional when compared with a ...
1
vote
0answers
64 views

unlimited tmpfs

How to have the advantages of tmpfs and not be limited to its small size? I'm thinking of a shell script that runs as a daemon, monitors RAM and adds more swap files in specified folder, when memory ...
2
votes
0answers
188 views

Using shared memory through tmpfs and NUMA on x86_64/Linux

Here's what I'd like to do: put a file on tmpfs but ensure that all of it (all pages of it) ends up on the same NUMA node. First, I thought this would be trivial: I'd just mmap() a tmpfs file with ...
2
votes
1answer
469 views

tmpfs performance

I use avconv to make screen recording of gameplays on linux (yeah, I'm sorry, I am one of them, but I get more excited about the scripts than playing it self), but recently my harddrive has gone and ...
6
votes
1answer
4k views

use `/run/shm` (formerly `/dev/shm`) as a temp directory

Is it good practice to create a directory in /run/shm (formerly /dev/shm) and use that like a temp directory for an application? Background: I am writing black box tests for a program which does a ...
2
votes
1answer
409 views

What happens when a tmpfs is full and no swap space is available?

Let's say I have a setup with 16 GB of physical RAM, A tmpfs of max. 8 GB containing a file with 5 GB and A swap sized 4 GB. If I'd try to, e.g., create a copy of the 5 GB file on the tmpfs, what ...
3
votes
1answer
1k views

How to compress a TMPFS folder?

I'm looking for a way to compress a tmpfs folder on the fly. I would like to use it for a local cache folder with a lot of data. I know there is a way to use Redis with eg LZF compression, but I ...
7
votes
2answers
338 views

How to make files inside TMPFS more likely to swap

I'm using tmpfs for my /tmp directory. How can I make the computer decide to swap out the files inside the /tmp before swapping out anything that is being used by applications? Basically the files ...
0
votes
2answers
474 views

Ramdisks in OpenSuse 13.1

I've just installed OpenSuse 13.1, and noticed 5 tmpfs ramdisks in the partitioner, mapped to /dev/shm, /run, /sys/fs/cgroup, /var/lock and /var/run. I don't remember seeing these ramdisks in the ...
0
votes
1answer
357 views

should I reduce /dev/shm size?

I have a server wity 8 GB RAM Mem: Total 8031464 Used 5146344 Free 2885120 If I execute # df it always returns this tmpfs 4015732 0 4015732 0% /dev/shm What does it ...
5
votes
1answer
993 views

Does tmpfs automatically resize when the amount RAM changes, and does it compete when there's multiple tmpfs?

If I have a tmpfs set to 50%, and later on I add or remove RAM, does tmpfs automatically adjust its partition size? Also what if I have multiple tmpfs each set at 50%. Do multiple tmpfs compete ...
1
vote
1answer
317 views

What parts of the filesystem to tmpfs/squashfs/sparseimage for USB live system

I want to create a live system on a USB key / SDCard with Linux Mint 14 (KDE or Debian Edition) that stores data persistently. The USB key needs to have at least one fat32 partition. As storage for ...
0
votes
1answer
710 views

How do I make a tmpfs mountpoint persistent across reboots?

If I create a ram disk on cent os using tmpfs will it go away on restart? I know the data will go away (I would assume), but will it still survive a reboot? I am going to allocate a ram disk for use ...
7
votes
3answers
3k views

Proper way to disable tmpfs on /run/shm

How do I disable tmpfs on /run/shm? I searched through initscripts and found that the following code checks the entry in fstab, but what should I change to make it not mount /run/shm? I'm running ...
0
votes
1answer
896 views

Should tmpfs be unmounted at system shutdown?

Assume I have a linux system with the following partitions mounted (beside root): proc on /proc devtmpfs on /dev devpts on /dev/pts tmpfs on /dev/shm sysfs on /sys tmpfs on /var/run tmpfs on ...
1
vote
1answer
945 views

special device tmpfs does not exist

I'm trying to speed up a project which uses a folder for cache by mounting the cache folder on tmpfs. But whenever I mount it I get this error message: mount: special device tmpfs does not exist ...
13
votes
1answer
2k views

Why is /dev full?

The /dev.. is full: SERVER:/dev # df -mP /dev Filesystem 1048576-blocks Used Available Capacity Mounted on udev 12042 12042 0 100% /dev There is no ...
4
votes
1answer
10k views

Can fstab options uid and gid be the user-group name or must they be numeric?

I'm learning how to set up a tmpfs in fstab for my www-data user and I was wondering if I can use the actual user/group name instead if the numeric ids (personal preference)? I'm on Debian with ext4, ...