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

why tmpfs used shared memory

this is output of df command in my embedded linux: root@mcu-v1:~# df -h Filesystem Size Used Available Use% Mounted on /dev/root 160.0M 116.7M 43.3M 73% / devtmpfs 61.0M 0 61.0M …
Moh3N
  • 35
  • 5
0
votes
0 answers

Combine Docker read-only bind mount with tmpfs inside / on top of it?

Is it possible to mount a tmpfs on top of a read-only bind mount with docker run? This works: docker run --rm -it -v "$PWD:/x" --tmpfs /x/y -w /x alpine:latest sh This fails: docker run --rm -it -v "$PWD:/x:ro" --tmpfs /x/y -w /x alpine:latest…
Arc
  • 11,143
  • 4
  • 52
  • 75
0
votes
1 answer

Which tmpsf partition is used in singularity and how can I increase it

I'm wondering how can I increase tmpfs size in singularity sif image and how it relates to tmpfs on host system. According to a post by Pawsey Centre: Singularity has a flag for rendering containers from SIF image files ephemerally writable.…
Proko
  • 1,871
  • 1
  • 11
  • 23
0
votes
1 answer

How to take tmpfs usage into account in Kubernetes resource allocation?

I have a Kubernetes cluster and some applications running on it. All of the Pods have their own resource limit/request settings. One of my applications uses tmpfs (/dev/shm) for its data processing, so I have described its volume setting like below…
Daigo
  • 815
  • 1
  • 5
  • 16
0
votes
1 answer

Why I don't have rw access to /run which is mounted as tmpfs in docker?

❯ docker run -d -it --name debian --mount type=tmpfs,destination=/run,tmpfs-mode=1777 --mount type=tmpfs,destination=/tmp,tmpfs-mode=1777 debian bash ❯ docker exec -it debian ls -lrtd /run /tmp drwxrwxrwt 2 root root 40 Jul 27 14:06 /tmp …
Dinesh Reddy
  • 775
  • 1
  • 11
  • 25
0
votes
1 answer

k8s volume in memory betweens pods, or connect services to container in multi containet structure

I have an issue with k8s volumes The structure We talk about 2 services (pods) that service one generates files and the other service expose those files over the web. Service number one needs a UDP connection open to the world and also a TCP…
m_g
  • 61
  • 1
  • 6
0
votes
1 answer

Yocto - creating a dependency for WIC to cpio.gz image

I'm creating a small Yocto distro that should work in RAM on tmpfs. I use the WIC configuration in the following way: part /boot --source bootimg-efi --sourceparams="loader=grub-efi,initrd=${PN}-${MACHINE}.cpio.gz,file=${PN}-${MACHINE}.cpio.gz"…
fault-tolerant
  • 451
  • 5
  • 15
0
votes
1 answer

How to best handle Scrapy cache at 'OSError: [Errno 28] No space left on device' failure?

What's the advised action to take should Scrapy fail with exception: OSError: [Errno 28] No space left on device Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/twisted/internet/defer.py", line 1386, in…
DhP
  • 306
  • 1
  • 11
0
votes
1 answer

Docker ephemeral volume without tmpfs

Is there any support for ephemeral Docker volumes without relying on file systems like tmpfs? On my use case the applications running on the containers need to write a lot of data and the Docker documentation recommends against the use of storage…
andresp
  • 1,624
  • 19
  • 31
0
votes
1 answer

fwrite doesn't fail when disk is full?

here is a test program I wrote int main( int argc, const char* argv[] ) { const char name[1024] = "/dev/shm/test_file"; off_t len = atol(argv[argc - 1]); char buf[1024]; FILE * f = fopen(name, "w"); for (int i = 0; i < len; i++) { int…
HLi
  • 13
  • 4
0
votes
1 answer

Backing tempfs with disk instead of RAM/SWAP

I want to limit the size of folder, so that a process cannot write more then x MB data to that folder. Looks like its not possible to do this in linux for folders but it can be done on tempfs filesystem. So i can create a tempfs filesystem and set a…
user93796
  • 18,749
  • 31
  • 94
  • 150
0
votes
0 answers

Using ChronicleMap in Apache Spark

We want to use ChronicleMap in Apache Spark on the workers to store a shared cache within a VM. Currently, we are using Hazelcast to share the cache but obviously, being able to use off-heap memory for free and also avoiding tcp-ip (even over…
noobNeverything
  • 212
  • 4
  • 14
0
votes
1 answer

Pipe VS Temporary File on RAM

This is the return of a classic question : for transferring datas between two process, should we use "pipe" or "temporary file". It was debated here, for reference : Pipe vs. Temporary File Now, considering only UNIX system, that can use tmpfs or…
technico
  • 1,192
  • 1
  • 12
  • 22
0
votes
1 answer

Improving openCV VideoWriter with tmpfs

I'm currently trying to improve python/openCV performances using tmpfs, as i'm stuck around 5-10 FPS while trying to record a USB camera on a raspberry Pi 3, at 640x480. On my system, i get these raw write transfer rates, using dd command: SD Card :…
technico
  • 1,192
  • 1
  • 12
  • 22
0
votes
2 answers

Create a new tmpfs and mount it

When i do the "df" command in my machine I can see the following: Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 491520 127240 364280 26% / I want to create another tmpfs. How should i do it? I am…
nitin_cherian
  • 6,405
  • 21
  • 76
  • 127