Questions tagged [tmpfs]

tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems.

It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device. A similar construction is a RAM disk, which appears as a virtual disk drive and hosts a disk file system.

94 questions
0
votes
1 answer

setting up drone agents to have custom /dev/shm

The default drone-agent in 0.5 has a fixed size /dev/shm but I'd like to customise the size of this to be about 1GB. Is this possible? I tried mounting the host's /dev/shm but that is ignored. I am quite happy for the /dev/shm to be thrown away…
fommil
  • 5,757
  • 8
  • 41
  • 81
0
votes
0 answers

Ubuntu "/run" is = to 10% available RAM

I've noticed that Ubuntu (14.04 and 16.04) creates a /run partition depending on the available RAM, and in 3 different servers i've noticed that this value is always equal to 10% of installed RAM on the server. How to correctly bypass this value and…
TheMadCat
  • 107
  • 1
  • 7
0
votes
0 answers

Files in ram (tmpfs) representing a single-producer multi-consumer buffer

constraints: My system has 250MB RAM memory available. The amount of data generated by the producer lies around 5Mb/sec. I need to provide a buffer of around 30 seconds. So around 150MB... What I'm trying to achieve: Implement a…
marc
  • 1,207
  • 11
  • 16
0
votes
1 answer

Does the memory used by tmpfs can be recycled just like page cache?

I am using tmpfs with /tmp directory. However, when i add files, the output of the free -h shows that the cached column value will increase as well. However, i am wondering that page cache usage info is also added into cached. Does the memory used…
andy
  • 3,951
  • 9
  • 29
  • 40
0
votes
1 answer

Memory VS MyIsam tmpfs?

There are many of tables with the column TEXT type. Some of the tables are large and the service is High Load. All tables in InnoDB. When an SQL query has created tmp table if it has a field with the TEXT type, the table is created on the disk with…
0
votes
0 answers

Is it possible to write directly to the data segment of an ELF file in tmpfs when writing a global variable in the file?

I guess, though I'm not quite sure, that,like the text segment of an ELF file in tmpfs, where the instructions can be executed in place, the data segment in the file doesn't need to be copied until the program is trying to modify the value of a…
xiaokaoy
  • 1,608
  • 3
  • 15
  • 27
0
votes
1 answer

compare catalog and compressed catalog (is there new changes)

I want to compare catalog with compressed without extracting or compress files and compare. Is there any way to compare directory with compressed directory ? Example: I have some files in tmpfs (ramdisk), before server shutdown, I need to save files…
Nerus
  • 167
  • 1
  • 2
  • 13
0
votes
0 answers

Error when trying to use tmpfs for MySQL in Vagrant

I have a Vagrant machine to run Symfony and it does a lot of interaction with a MySQL database. To try to speed it up a little bit I though about using a tmpfs file system for the data dir. The data dir is located at /var/lib/mysql, so here's what I…
petekaner
  • 8,071
  • 5
  • 29
  • 52
0
votes
0 answers

example how to use tmpfs to store directories in memory by java

i want to create a directory in the memory and after a few days of googling i found that using tmpfs is one of ways to do that, please if any one knows how to create directories using…
toto totto
  • 65
  • 2
  • 10
0
votes
0 answers

Is access to linux tmpfs transactional?

I'm currently facing some strange problem on my distributed application. This application generally do the following things: Read and Write Data from an NFSv3 Filesystem Read and Write Data from a tmpfs Filesystem One process generate files on…
marcobazzani
  • 373
  • 4
  • 16
0
votes
0 answers

tmpfs performance when accessed from php

I have a PHP web script that accepts a user-entered regular expression and uses it to search a large text file (9.4 million lines, around 160MB). In the first iteration of my script, I had the file sitting on a regular file system, and when I needed…
allenrabinovich
  • 384
  • 2
  • 10
0
votes
1 answer

Which memory pages are assiged to files in Linux RAM disk

I'm trying to locate exact machine memory pages that have been allocated back files which are stored in a Linux RAM disk. For example, for a process, there is /proc/pid/pagemap that tells you exactly which machine pages a process is using. I'm…
0
votes
0 answers

mmap and/or tmpfs approaches for image processing buffer

I've come across a few generic versions of this question asking for general comparisons between shared memory / tmpfs / mmap / block reads, but I wanted to ask an application-specific version of this question to try and figure out the more efficient…
jdi
  • 90,542
  • 19
  • 167
  • 203
0
votes
0 answers

Synchronization on System V shmem and tmpfs

When you use System V shared memory in Linux, you are supposed to use proper locking and synchronization (using sysv semaphores for example) so the code doesn't break when different threads/processes try to read/write the same segment. Considering…
GetFree
  • 40,278
  • 18
  • 77
  • 104
0
votes
2 answers

Do files disappear from tmpfs when creating process dies?

I had a discussion with a colleague about tmpfs: we couldn't agree whether tmpfs files survive the death of the process that created them or not. I argued for yes, but wasn't sure. I know that tmpfs is 'just another file system' but it being…
Lajos Nagy
  • 9,075
  • 11
  • 44
  • 55