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
1
vote
1 answer

delete file in tmpfs(/dev/shm) after mmap the same file

I did some search but didn't find similar questions. Here is my steps: copy a file to /dev/shm (tmpfs) mmap that file with lock read data from that file delete the file After step 4, the previous loaded data is still available, why? Thanks in…
user3126461
  • 152
  • 8
1
vote
0 answers

Programmatically retrieving the path to memory-placed tmpfs

I'm writing an application for Linux-based systems that makes intense use of temporary files for IPC purposes (locks, pipes, ...) and I would like to know if there is any canonical way to get a path to the temporary file system residing in RAM…
Claudi
  • 5,224
  • 17
  • 30
1
vote
4 answers

Share variables between python & php

I have a script in python receiving continuously data from sensors. I need to publish the last data at request on a webpage using php. Apache, php and python are all on the same linux install (actually on an raspberry). I'm not interested in storing…
1
vote
1 answer

Nginx not deleting files cached on RAM

I am running an Nginx server to serve video content to users. This nginx server picks content from an upstream server, caches it, also serves to users. All future requests are served from this cache. I have set aside 500GB of space on cache for…
1
vote
1 answer

Keep Lua tmpfile after execute

Uploades file represented as tmpfile() and will be removed then script exits. How to hardlink this file to keep its content after removing tmpfile? How to get name of file by its handle? > a=io.tmpfile() > print(a) file (0x20c8790) >…
eri
  • 3,133
  • 1
  • 23
  • 35
1
vote
0 answers

What to do with pid files in a docker container

My containers aren't starting up on the second run because a pid file has been left behind in /var/run/. I'm thinking of mounting /var/run/ on tmpfs is the way forward but that requires the container be run -privileged. Is there a better way to…
gregn
  • 1,260
  • 1
  • 14
  • 25
1
vote
1 answer

Gradle move build folder to /tmp

I wonder how is it possible to move build folder to somewhere, like /tmp. In my case /tmp folder is tmpfs, home folder is encrypted. I see no reason why not to speedup build process and decrease load of hard disk.
ruX
  • 7,224
  • 3
  • 39
  • 33
1
vote
1 answer

How to create a directory in /run for each Supervisor program?

I have an Ubuntu 14.04 LTS server running a few different programs under Supervisor. Many of the programs need to store sockets and other named pipes on the filesystem, and /run seems like the ideal choice for these types of files. Unfortunately,…
smitelli
  • 6,835
  • 3
  • 31
  • 53
1
vote
0 answers

Does tmpfs automatically resize when the amount RAM changes

If I have a tmpfs set to 50%, and later on I add or remove RAM, does tmpfs automatically adjust its partition size? Also what if I have multiple tmpfs each set at 50%. Do multiple tmpfs compete against each other for the same 50%? How is this…
CMCDragonkai
  • 6,222
  • 12
  • 56
  • 98
1
vote
1 answer

Copying files into a tempfs in android (native)

I want to create a tempfs for specific photo-gallery app which supposed to have very high performance. More specificely, I have a code that creates a tmpfs, and I want a 3rd party photo-gallery app to access files in that tmpfs. I created a tempfs…
Bush
  • 2,433
  • 5
  • 34
  • 57
1
vote
1 answer

Execute PHP on a TMPFS mout

I am trying to make my prestashop faster, I made some benchmark with ab: (VirtualBox with Debian 7.1 + Nginx 1.4 + Mysql 5.6) Php 5.4 + APC ==> 3 req/sec Php 5.5 + ZOP+ ==> 4,5 req/sec With the all the code inside a TMPFS mount : Php 5.4 + APC…
Thomas Decaux
  • 21,738
  • 2
  • 113
  • 124
1
vote
2 answers

Nginx with /var/log on tmpfs

I have the development machine set up to use tmpfs for /var/log. Given that, at every boot the content is blank and gradually filled with whatever processes create while logging their guts. The problem is (according to my interpretation of error…
topp
  • 150
  • 1
  • 8
0
votes
1 answer

Using tmpfs in Nextflow process (null value for variable with path)

I need some help with a situation. I want to try the tmpfs in order to speed up my process because the actual one is taking so long time (probably due to IO in python script). So I defined the containerOptions process my_app { tag "$_id" …
P. Solar
  • 339
  • 3
  • 10
0
votes
0 answers

How to enable tmpfs in Testcontainers in Go?

To increase the speed of integration tests through Testcontainers in Go, I want to enable tmpfs but it's missing, unlike Java. In Kotlin, we can say: val container = PostgreSQLContainer(postgresDockerImage) .withDatabaseName("dataBaseName") …
ibrahim koz
  • 537
  • 4
  • 15
0
votes
0 answers

Integration tests with Neo4j, Docker and a temporary file system

In my current project we have created a number of integration tests that use a Neo4j DB as part of our CI/CD pipeline. As the number of tests grow the pipeline slows down and one common suggestion for other databases is to mount your database in…
Simon Thordal
  • 893
  • 10
  • 28