Questions tagged [tmpfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
26 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 ...
  • 161
0 votes
1 answer
448 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 ...
  • 202
0 votes
1 answer
171 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 ...
  • 103
0 votes
1 answer
141 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 ...
  • 101
7 votes
3 answers
3k 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 ...
2 votes
1 answer
524 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, ...
  • 367
4 votes
1 answer
132 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 ...
4 votes
5 answers
16k 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 ...
0 votes
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,...
  • 101
7 votes
2 answers
1k 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 ...
0 votes
2 answers
221 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 ...
  • 103
0 votes
1 answer
812 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 ...
  • 103
6 votes
2 answers
171 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 ...
  • 779
-1 votes
1 answer
440 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-...
1 vote
0 answers
501 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 ...
  • 111
5 votes
4 answers
4k 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 ...
  • 191
1 vote
1 answer
820 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. ...
  • 111
2 votes
0 answers
326 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/...
  • 75
1 vote
0 answers
390 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 ...
  • 159
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% /...
1 vote
1 answer
3k 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 ...
  • 1,075
0 votes
1 answer
474 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 ...
  • 1,441
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 ...
2 votes
1 answer
1k 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 ...
  • 73
1 vote
0 answers
243 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....
  • 147
0 votes
1 answer
697 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 ...
  • 375
-1 votes
1 answer
415 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?
  • 2,527
2 votes
1 answer
295 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 ...
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"; ...
1 vote
0 answers
245 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 ...
  • 11
6 votes
2 answers
2k 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 ...
  • 163
22 votes
1 answer
29k 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 ...
  • 761
2 votes
2 answers
848 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 ...
  • 33
2 votes
3 answers
1k 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/...
  • 397
1 vote
1 answer
290 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 ...
  • 779
3 votes
1 answer
655 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....
29 votes
4 answers
31k 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 ...
2 votes
1 answer
222 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? ...
  • 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 ...
  • 31
0 votes
1 answer
106 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 ...
  • 280
6 votes
2 answers
5k 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 ...
0 votes
1 answer
4k 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....
12 votes
5 answers
17k 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 ...
  • 717
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 ...
  • 475
1 vote
0 answers
222 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 ...
  • 313
5 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 ...
9 votes
3 answers
13k 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 ...
  • 501
0 votes
1 answer
207 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 ...
1 vote
2 answers
1k views

Creating tmpfs file system in xen server to store VM

i want to create a tmpfs file system for one of my vm to run on,using XEN Server. On the host machine i tried this but is not working,. xe sr-create device-config:device=/dev/shm name-label="RAM" ...
4 votes
1 answer
852 views

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 ...
  • 41