Questions tagged [tmpfs]

69 questions
1
vote
2 answers

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 found that the tmpfs partition occupied about 60%…
garconcn
  • 2,388
  • 8
  • 35
  • 46
1
vote
2 answers

Failover tmpfs mirroring. Am I doing it right?

My goal is to have a certain directory to be available as tmpfs. There will be some modifications during server uptime in this dir and those modifications must be synced to non-tmpfs persistent dir on HDD over rsync. After server boot the latest…
user45286
  • 336
  • 1
  • 4
  • 12
1
vote
3 answers

Tmpfs for mysql tmp

I have a question tmpfs. I would like to use it for mysql tmp. My question is next: If my server crash, data in /tmp are deleted (it's the tmpfs rule) so mysql cache tables are deleted. So, if my server crash, data are saved or I loose all data…
Kiva
  • 155
  • 2
  • 8
1
vote
1 answer

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 not start server Examine the log output. I checked /run and…
Hayate
  • 171
  • 1
  • 8
0
votes
2 answers

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,noexec,noatime,size=512m,mode=0775 tmpfs…
BDR
  • 101
  • 4
0
votes
2 answers

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 folder using similar type: /dev/shm. After some testing…
Boying
  • 103
  • 3
0
votes
1 answer

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 after reboot, is there any other option?
Yossi
  • 103
  • 4
0
votes
2 answers

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% /dev/shm Edited the fstab /etc/fstab tmpfs…
0
votes
1 answer

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 50395844 1907988 45927856 4% / tmpfs …
Mr.Boon
  • 1,471
  • 4
  • 24
  • 43
0
votes
0 answers

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 partition capacity. But even if in theory the setup is…
Viktor Joras
  • 197
  • 7
0
votes
1 answer

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 the system log files (syslog, dmesg) Is there a…
Boaz
  • 405
  • 1
  • 11
  • 16
0
votes
1 answer

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 this folder to /home/mysite.com/cache_old and…
Xorax
  • 348
  • 4
  • 12
0
votes
1 answer

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.But apparently there isn't a corresponding device…
Steven Jang
  • 61
  • 1
  • 5
0
votes
1 answer

How to speed up a MySQL Import

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 days, which is unacceptable, and I know it can…
jobu1324
  • 485
  • 4
  • 9
  • 17
0
votes
1 answer

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 variables for mutual exclusion,like semaphore and…
Kevin Parker
  • 757
  • 1
  • 13
  • 32