Questions tagged [tmpfs]
69 questions
4
votes
5 answers
Can't start Bind open: /etc/named.conf: permission denied
so I'm really new on this and was following this tutorial to set up bind, and up to 4:50 I was having no problems, I could ping, use nslookup and had internet connection with the dns server, then we had to add the zones and create the zone files…

Nelson SMG
- 61
- 1
- 1
- 5
4
votes
1 answer
How to select Linux temp/tmp/temporary directory overflow disk
On linux, temporary files are stored on a ramdisk:
tmpfs 15G 4.0K 15G 1% /dev/shm
However, if there are several large files in /tmp/ I would assume that the files overflow onto disk? In such a case, if the machine has slower…

Martin
- 41
- 2
4
votes
2 answers
monitor IO to tmpfs partition?
How can I monitor the write speed to a tmpfs partition. It does not appear in the output of vmstat or iostat.
I am running several python processes that are writing heavily to tmpfs and contributing to load. The load is high but the CPU, memory,…

CarpeNoctem
- 2,437
- 4
- 23
- 32
4
votes
3 answers
What is the use of /lib/init/rw in Debian?
I just installed Debian 5 (Lenny) and I noticed that /lib/init/rw is reported as a RAM Disk (tmpfs). I've only had experience with Fedora so I'm curious what function does that directory serve in Debian. Can it be used by user written shell scripts…

GeneQ
- 407
- 2
- 8
- 17
3
votes
2 answers
Setting up tmpfs `/run/lock` for hundreds of thousands of 0 byte lock files, and dealing with the inode limit
I have a situation where I need to create 100s of thousands of 0 byte lock files for concurrency control.
I've tested creating them by using:
for i in `seq 1 50000`; do touch "/run/lock/${i}.lock"; done
Since the files are 0 bytes, they don't up…

CMCDragonkai
- 335
- 1
- 5
- 12
3
votes
1 answer
df shows too much space on tmpfs
I have a server (SLES 11 running on a VMware hypervisor if that matters) with a tmpfs partition meant for mysql temporary tables, and I run mysql chrooted.
df -h gives me strange outpupt:
root@db12.lab:~# df -h /usr/chroot/tmp/
Filesystem Size …

Roman Grazhdan
- 334
- 3
- 15
3
votes
3 answers
qemu don't start quest with disk image on tmpfs
I have 32bit windows 2k3r3 guest (terminal server) with 4GB guest ram and swapping.
I created separate disk image for guest swapping and user's temp dirs.
I have enouth RAM in host system and want to save disk IO by moving this image to tmpfs,
but…

Sergei
- 31
- 1
- 2
3
votes
1 answer
Create variable sized RAM-backed file systems (Ext4 and Btrfs)
For benchmarking purposes I need to format and mount variable sized ram-backed block devices with Ext4 and Btrfs. Unfortunately the only solution I have come across uses ramdisks which seem to be inflexible (they are all the same size).
The only…

Noah Watkins
- 133
- 7
3
votes
1 answer
Best Way to store sessions in a High Availability / High Performance way in Multiple Server Environment
I have an application (Magento) that has an abstracted session storage layer. I'm trying to visualize the best way to store sessions.
mysql Database? I'm thinking a dedicated database with a very large innodb_buffer_pool_size so its basically like…

Bryan Ruiz
- 131
- 3
3
votes
5 answers
Improving Exim performance: mounting message queue on RAMdisk
I have an email server that's part of a messaging application, and it's going to see a lot of throughput. I want to mount Exim's message queue on a RAMdisk to maximize performance; throughput speed is most important, as opposed to solidarity in…

JustinP
- 41
- 1
- 2
- 5
3
votes
1 answer
MySQL & tmpfs : performance
I was wondering if, and how much, using tmpfs could improve MySQL performance and how it should be done ? My guess would be to do mount -t tmpfs -o size=256M /path/to/mysql/data/DatabaseName, and to use the database normally but maybe I'm wrong (I'm…

Serty Oan
- 755
- 1
- 7
- 15
2
votes
1 answer
CoreOS high RAM usage for tmpfs
I'm using the latest CoreOS AMI (ami-0fc25a0b6bd986d03 details) on a small t2.nano instance.
This instance only has 500MB of memory. Unfortunately, CoreOS immediately consumes ~240MB for a tmpfs, which it then mounts at /tmp as shown below. This…

Hamy
- 367
- 3
- 11
2
votes
0 answers
Is there a way to run a custom script immediately after mount a tmpfs on Linux?
I've got a tmpfs mounted to /var/something/else and I'd like to copy files to the location immediately after it's mounted. So if I run (or action executed after server reboot):
mount /var/something/else
mounted
files synced from hdd to tmpfs
a…

Alex
- 75
- 6
2
votes
1 answer
Multiple tmpfs exists with total combined space more than total memory
I have a VPS with 7.5G ram running CentOS 7, and tbh I haven't done much optimizations etc as its serving the site pretty good. Today I was going to create a ramdisk for mysql temp tables, so I thought I should first check if there is any ramdisk or…

firex
- 73
- 5
2
votes
1 answer
how can tmpfs larger than SHMALL parameter?
The amount of Shared memory being utilized:
#> df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 125G 96G 30G 77% /dev/shm
The max amount of shared memory system-wide, set by the SHMALL kernel…

Unholyburger
- 21
- 1