Questions tagged [tmpfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
122 views

Remounting tmpfs with a different size during boot

I have a custom Linux distribution (based on Debian), which has a lot of custom tooling for example changing system configurations (like network etc. These configuration files are.json files, which ...
Xershy's user avatar
  • 123
0 votes
0 answers
78 views

High latency when using FUSE to pass through to tmpfs + swap

I'm creating a shim layer over an in-memory file system (tmpfs) so that I can intercept the file system commands and do extra processing (the end goal is to replicate the writes over the network for ...
davidchuyaya's user avatar
1 vote
1 answer
101 views

tmpfs /run 99% used, but it is not, so postgresql unable to start

Today I rebooted my home server and got error in postgres log: 2022-09-15 10:35:19.926 +07 [5312] FATAL: could not write lock file "postmaster.pid": No free space on device pg_ctl: could ...
Hayate's user avatar
  • 171
0 votes
1 answer
1k views

Create a /tmp partition that uses filesystem type of tmpfs in kickstart?

I'm writing a kickstart script to use when PXE booting to automatically configure new systems with basic settings. I've got everything working except for the partitioning of the boot drive: my /tmp ...
enpaul's user avatar
  • 202
0 votes
1 answer
833 views

Clarification on understanding Linux disk usage with df and how tmpfs should be assessed

I have searched serverfault, SO and other sites but could not find a clear answer. I have done some reading on the basics of Linux storage and filesystems, but I'm still unclear about how to solve my ...
rc1's user avatar
  • 103
0 votes
1 answer
242 views

systemd tmpfs shadow directory -- copy to/from ram and back when (u)mount-ing

I'd like to keep some directories (e.g. /var/cache/apt, /var/lib/apt/lists, user browser caches or even Mozilla profiles) in RAM, but still backed by disk. The files should be copied to RAM when ...
usretc's user avatar
  • 101
8 votes
3 answers
5k views

Tmpfs vs NVME SSDs from performance POV [duplicate]

I have a script that creates large temporary files. I'm inclined to use tmpfs for this, however I did a quick search for tmpfs performance and found this which reports speed as about 2GiB/s. Modern ...
Peeyush Kushwaha's user avatar
2 votes
1 answer
682 views

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, ...
Hamy's user avatar
  • 367
4 votes
1 answer
189 views

Swap Memory Anomoly

I am currently experiencing a memory issue on my centos 7.6 distro. It began with my system swapping even though up to 80GB ram should have been available. free -m total ...
GreyStone's user avatar
4 votes
5 answers
26k views

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 ...
Nelson SMG's user avatar
1 vote
2 answers
2k views

debian : mount /var as overlayfs at boot

I'm trying to mount /var with an overlayfs (with a tmpfs) at boot but don't manage to make it works. Here is what I've done : # creating tmpfs mkdir /var.tmpfs mount -t tmpfs -o rw,nosuid,nodev,...
BDR's user avatar
  • 111
7 votes
2 answers
2k views

Does Linux tmpfs filesystem need the sync option?

I'm looking for info about mounting a tmpfs partition and sync option. Sync makes the data beeing dumped onto the disk without beeing saved in cache. This works with ext4 and other filesystems. I'm ...
Viktor Joras's user avatar
0 votes
2 answers
273 views

Using /dev/shm folder for pid files on RHEL6/CentOS6?

RHEL7/CentOS7 has a dedicated folder: $XDG_RUNTIME_DIR (e.g. /run/user/1000) for pid files, that folder is a tmpfs. However RHEL6/CentOS6 does not have $XDG_RUNTIME_DIR. RHEL6(also RHEL7) has a ...
Boying's user avatar
  • 103
0 votes
1 answer
1k views

how to create ramfs or tmpfs that won't be existed after reboot?

For security reasons I want to setup a temporary directory or partition that will be removed if the system rebooted or in case of power outage. I tried to create a tmpfs but the files where there ...
Yossi's user avatar
  • 103
6 votes
2 answers
221 views

Can I create a disk in memory for backups?

The biggest problem I have with my site is the 4 backup periods throughout the day where load will inevitably go above 50. I am using nice and ionice to try and reduce the impact but to only limited ...
Christian's user avatar
  • 789
-1 votes
1 answer
524 views

Volatile Linux with a huge tmpfs and swap partition

I want to deploy Linux on user computers in a way state is never preserved between boots (except state saved explicitly by users on external removable devices). System image will be stored on a read-...
user3368561's user avatar
1 vote
0 answers
631 views

How can I measure RAM/tmpfs IOPS from a specific application?

I am running a hadoop-based application (hadoop 1.2.1), where I had discovered a hard-disk bottleneck; monitoring the hard disk IOPS with iotop resulted in ~160 MB/sec, which was the writing speed I ...
Adama's user avatar
  • 111
5 votes
4 answers
5k views

How to check the content of swap memory in Linux?

I am trying to find out what exactly uses swap memory in my system. Free reports over 5GB of used swap memory, but all processes use only 24MB of swap. I suspect that swap might be used by a tmpfs ...
gbajson's user avatar
  • 191
1 vote
1 answer
906 views

Monitor ramdisk throughput

I was wondering if there was a tool available to monitor the current ramdisk throughput. I found that with sysstat, iostat, etc. I am only able to monitor the current throughtput of physical devices. ...
fasseg's user avatar
  • 111
2 votes
0 answers
463 views

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/...
Alex's user avatar
  • 75
1 vote
0 answers
454 views

Linux - set tmpfs ram size rather than overall size

I have the following setup on my server: 16G RAM 64G swap I want to setup a tmpfs partition with the following options: use up to 50% RAM (8G) have the total size of tmpfs 8G + swap size = 72G In ...
Karolis's user avatar
  • 169
0 votes
2 answers
2k views

extend the tmpfs file system

I'm trying to extend the tmfs file system size from 1.1 GB to 2GB. Tried the following commands- [root@~]# df -h /dev/shm/ Filesystem Size Used Avail Use% Mounted on tmpfs 1.1G 732K 1.1G 1% /...
user377189's user avatar
1 vote
1 answer
4k views

How to prevent tmpfs /tmp causing machine to run out of memory?

I have a virtual server (Debian 8.5, OpenVZ) that seems to run out of memory* when tmpfs-based /tmp is about 60% full. (* while the system reports 2GB of memory still free, processes start to behave ...
Kornel's user avatar
  • 1,145
0 votes
1 answer
556 views

Massive /dev/shm RAM drive unused, safe to shrink?

today I ran the command df on my CentOS 6 - MySQL/Sphinx database server linux machine (with 80GB of RAM). Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 ...
Mr.Boon's user avatar
  • 1,481
0 votes
0 answers
2k views

Linux tmpfs and out of memory

I wrote a script that constantly writes a lot of data on a tmpfs partition. The size of this partition is 40% of RAM. The size of the data in this partition never exceeds the 60% of the whole ...
Viktor Joras's user avatar
2 votes
1 answer
2k views

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 ...
firex's user avatar
  • 73
1 vote
0 answers
310 views

FastCGI and tmpfs

I read some articles about using tmpfs for /tmp and PHP sessions directories for better performance, and it sounds interesting. I'm using Centos 6 server with LAMP stack (+FastCGI) and in my fcgid....
Rotem's user avatar
  • 147
0 votes
1 answer
811 views

tmpfiles.d logs on ubuntu 14.04

I'm having trouble with a conf file that resides in /usr/lib/tmpfiles.d/ (directory is not created on boot) I'm trying to figure out what is wrong. But can't seem to find any indication for that in ...
Boaz's user avatar
  • 405
-1 votes
1 answer
578 views

Is there a way to make /tmp mounted as tmpfs to use only swap? [closed]

I have a swap of 64 GB SSD. So is there a way to make /tmp mounted as tmpfs to use swap alone and not use RAM?
nitins's user avatar
  • 2,599
2 votes
1 answer
335 views

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 ...
Unholyburger's user avatar
3 votes
2 answers
2k views

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"; ...
CMCDragonkai's user avatar
1 vote
0 answers
278 views

How to properly automount tmpfs inside encrypted home folder on login?

I have a user with encrypted home folder which is automounted on login with pam_ecryptfs module. I would also like to have several folders automounted as tmpfs using local configuration file from ...
dannote's user avatar
  • 11
7 votes
2 answers
3k views

Will noatime on a tmpfs volume improve performance?

I am using /run/shm/myfolder for nginx micro caching, also keeping ngx_pagespeed files there. I am wondering if there will be a speed increase if I go from relatime to noatime? It's for HDD, but on a ...
cenk's user avatar
  • 173
23 votes
1 answer
32k views

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned ...
eephyne's user avatar
  • 791
2 votes
2 answers
889 views

start mysql service after syncing data dir to tmpfs

hej there! I'm maintaining a network of 8 Pandaboards. One of them is acting as server to host a php-based browser game, others are clients running that game. The server runs Debian Wheezy from SD ...
ronso0's user avatar
  • 33
2 votes
3 answers
2k views

tmpfs - auto create whole path when write to file

I have mounted tmpfs .e.g. /tmspfs/cache As we expect, so after restart server is ram empty and all content from mount is away. It is ok. But I have in my system some full path e.g. /tmpfs/cache/...
Pavel's user avatar
  • 427
1 vote
1 answer
311 views

Re-ocurring issue with keys on temp tables

We run a large forum with lots of reads and writes, particularly to the posts and topics tables which are both innodb. Last week I started doing 12 hourly backups with innobackupex because mysqldump ...
Christian's user avatar
  • 789
3 votes
1 answer
820 views

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....
Roman Grazhdan's user avatar
33 votes
4 answers
34k views

Performance difference between ramfs and tmpfs

I need to setup an in memory storage system for around 10 GB of data, consisting of many 100 kb single files(images). There will be lots of reads and fairly periodic writes(adding new files, deleting ...
Ivan Kovacevic's user avatar
2 votes
1 answer
228 views

Is there anything wrong with making your documentroot tmpfs, if you've got the ram to spare?

As the title says, it strikes me that if I have an old mason webapp which is basically a few hundred perl scripts and components on disk, would it not run quicker if I made the documentroot a tmpfs? ...
pacifist's user avatar
  • 181
3 votes
3 answers
3k views

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 ...
Sergei's user avatar
  • 31
0 votes
1 answer
125 views

Unalterable folder or path to keep a mount point on Linux

I need to mount a tmpfs on a folder like /home/mysite.com/cache but this folder can be delete or changed by a user, but I don't want that the mounted filesystem become broken. Then if the user moves ...
Xorax's user avatar
  • 358
10 votes
2 answers
7k views

Is there ever a reason to use tmpfs instead of or in addition to zRAM?

I'm thinking about using zRam on my server. From what I've read about zRam, it apparently does everything tmpfs does and more. Once zRAM is working, is there any reason to keep tmpfs around? Is there ...
David Cary's user avatar
0 votes
1 answer
5k views

Is there a way I can benchmark tmpfs

I created a tmpfs which was mounted at /ramdisk using the mount command.And I tried to benchmark this tmpfs using something like this: hdparm -tT /ramdisk And I was told that /ramdisk is a directory....
Steven Jang's user avatar
12 votes
5 answers
18k views

Low on space in /run

On Ubuntu Precise, I'm low on space in /run: admin@foo:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 6.6G 12G 38% / udev 10M 8.0K 10M 1% /dev ...
Brian's user avatar
  • 747
0 votes
1 answer
3k views

How to speed up a MySQL Import [closed]

I posted a related question on askubuntu.com, but this may be a better place and way to ask it. I'm working on a way to speed up a db import. Currently the import is taking a week, give or take a few ...
jobu1324's user avatar
  • 495
1 vote
0 answers
235 views

MySQL binlog rsync from tmpfs to HDD causes write slowdown on ramdisk

I have a mysql database server and am testing writing my binlogs to ramdisk to speed some things up. A curious thing happens.. fairly often, I get major job slowdown at the same time the rsync is ...
T. B.'s user avatar
  • 333
6 votes
2 answers
8k views

tmpfs fills up, although hardly used. How can I debug this

I have a system with / on tmpfs. Most / subdirectories have aufs mounted overlaying the read-write root filesystem with read-only base filesystem (the system boots from a read-only medium). Earlier, I ...
Jacek Konieczny's user avatar
11 votes
3 answers
14k views

Using tmpfs + a very large swap partition for /tmp instead of a regular filesystem?

I have Linux server and I have a spare 500GB disk partition. I wanted to format it and use it for /tmp. The server occasionally runs some large data processing tasks so it can happen that /tmp will ...
Petr's user avatar
  • 635
0 votes
1 answer
230 views

shared memory in interprocess communication

i have studied that for process to communicate with each other they need to keep their critical region in shared memory,so that other process which needs access to that can use it,using different ...
Kevin Parker's user avatar