Questions tagged [tmpfs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
63 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 ...
0
votes
0answers
16 views

Sending email with read only root drive by using a tmpfs for /var/spool/nullmailer

I run a couple of debian servers, and I use nullmailer to send health and status notifications without a full mail server on each server. One notification I want is from smartd, when a hard drive has ...
0
votes
2answers
232 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,...
7
votes
2answers
586 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
2answers
80 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 ...
0
votes
1answer
243 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 ...
6
votes
2answers
127 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 ...
-1
votes
1answer
209 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
0answers
267 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 ...
3
votes
4answers
2k 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 ...
1
vote
1answer
454 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. ...
2
votes
0answers
129 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/...
1
vote
0answers
338 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 ...
0
votes
2answers
837 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
1answer
2k 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 ...
0
votes
1answer
299 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 ...
0
votes
0answers
1k 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 ...
1
vote
1answer
590 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 ...
1
vote
0answers
185 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....
0
votes
1answer
445 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 ...
-1
votes
1answer
230 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
votes
1answer
219 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
2answers
969 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
0answers
201 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 ...
2
votes
1answer
1k 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 ...
16
votes
1answer
16k 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 ...
2
votes
2answers
696 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 ...
1
vote
3answers
708 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/...
1
vote
1answer
280 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 ...
3
votes
1answer
478 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....
21
votes
4answers
21k 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
1answer
187 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? ...
2
votes
3answers
2k 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 ...
0
votes
1answer
94 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 ...
3
votes
2answers
2k 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 ...
-2
votes
1answer
1k 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....
11
votes
3answers
12k 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 ...
-1
votes
1answer
2k 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 ...
1
vote
0answers
187 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 ...
4
votes
2answers
6k 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 ...
7
votes
2answers
9k 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 ...
0
votes
1answer
184 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 ...
0
votes
2answers
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
1answer
682 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 ...
0
votes
1answer
964 views

tmpfs changes size on restart

I have a tmpfs mount defined in my /etc/fstab with a size of 1024m, but when I restart the server it sizes itself to 5.9G. If I run mount -o remount /dev/shm, the size will correct itself to 1G. But ...
3
votes
2answers
3k views

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 ...
3
votes
1answer
2k views

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 ...
2
votes
1answer
251 views

Speeding up page load times by using tmpfs

I have a Wordpress site which uses a file cache to store various object information. Now I would like the time to access the data in the cache to be much shorter, and I have heard various people on ...
1
vote
2answers
3k views

CentOS default installation gave about 60% of memory space to the tmpfs partition - Is this an issue?

I installed a CentOS server which will be used for xen hypervisor. The server has two Intel(R) Xeon(R) CPU E5620 and 148G memory. The OS was installed on a 120G SSD drive. After the installation, I ...
1
vote
2answers
2k views

best ramdisk without swap on linux?

I want a ramdisk on linux. There is ramfs and tmpfs. Tmpfs is what I want because it acts like a disk (size limits, etc.). However, it uses swap which means it may touch disk if it gets full. IF I ...