The tag has no wiki summary.

learn more… | top users | synonyms

13
votes
3answers
4k views

(How) can I create a tmpfs as a regular (non-root) user?

The distribution is an Ubuntu server running the 2.6.35-30 Linux kernel. I would like to have a directory that sits completely in memory. Is this possible without root privileges?
13
votes
1answer
458 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 ...
11
votes
3answers
742 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 ...
8
votes
1answer
2k views

Tmpfs only with RAM

How to be sure that a tmpfs filesystem can only deal with physical and it's not using a swap partition on disk ? Since i have a slow HDD and a fast RAM i would like, at least, giving higher priority ...
7
votes
2answers
68 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 ...
6
votes
3answers
2k 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 ...
5
votes
1answer
5k 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 ...
4
votes
1answer
188 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
626 views

tmpfs and vm.swappiness

I have started tuning a bit Linux VM performance on my system (yes. I know that vm.swappiness=0 will kill kittens but I found 30-40 as much better for me as it improved my latency - probably at cost ...
3
votes
1answer
473 views

Does the (source) device in a tmpfs type mount mean anything?

I just went into /etc/fstab (Linux) and changed my line for /tmp (on which a specific ext4 partition was previously mounted) to tmpfs. This was clearly a bit silly, but I wasn't thinking. Anyway, I ...
2
votes
1answer
71 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 ...
2
votes
2answers
153 views

Graphical archive manager that uses /tmp

I am looking for a (preferably) graphical archive manager that can be configured to use /tmp as a scratch area for decompressing. My setup is as follows: I have my local workstation with /home ...
2
votes
1answer
94 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 ...
2
votes
0answers
249 views

Moving /dev/shm/ to /run/shm in Arch?

Dolphin (The KDE4 FM) would not receive file change notifications for /dev/shm, but for /run/shm. So now I would like to migrate /dev/shm/ to /run/shm, but I couldn't find the corresponding part in ...
2
votes
1answer
294 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 ...
1
vote
2answers
228 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 ...
1
vote
1answer
307 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 ...
1
vote
0answers
6 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 ...
1
vote
1answer
3k 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, ...
1
vote
1answer
233 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
183 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 ...
0
votes
2answers
98 views

are daemon tmpfs executables copied unencrypted to memory upon execution? (prevent if so?)

When a daemon is executed, is the executable copied to memory? If so, can it be copied encrypted? If not, is there a way to prevent the executable from being copied to memory? The executable is ...
0
votes
1answer
99 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 ...
0
votes
1answer
161 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 ...
0
votes
1answer
103 views

Execute in Place an encrypted ram drive

I have found a few old posts claiming that tmpfs can execute in place. Is this true? If so, how? If not, is there a ram drive alternative? Can this be done with a ram drive that is encrypted? If ...
0
votes
1answer
175 views

How can I use the tmpfs to accelerate my chrome browser start up?

Every time when I am trying to start the chrome browser, it is a little bit slow because the chrome need to load the cache and that may cause a big amount of disk IO. My distribution is Debian ...
0
votes
2answers
75 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
160 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
463 views

How to disable tmpfs on /media in openSUSE?

In OS 11.4 /media is a regular directory. Whatever I put there, it stays. In OS 12.1 /media is tmpfs. Whatever I put there, on next restart is gone. The question is -- how to get rid of tmpfs on ...