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

How to find the code segment of a Linux driver in tmpfs? (in real-time)

I have a character driver called drv1, and a user application uses ioctl to communicate with it, which will transmit the parameter struct file *filp. Now I want to find out the address of the code segment of drv1, but I came across some problems. At…
Tgn Yang
  • 330
  • 3
  • 16
2
votes
0 answers

How to understand docker container disk space usage?

My host disk space usage is like this: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 31G 20G 61% / devtmpfs 5.8G 0 5.8G 0% /dev tmpfs 5.8G 84K 5.8G 1%…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
2
votes
2 answers

xattr/extended attributes not settable for file in /tmp while in $home on same mount works fine

I am playing with extended file attributes under Linux/Fedora and I am currently stumbling a bit since I cannot add/change attributes for files in /tmp while in my home it is working fine - while both paths are on the same mount point, i.e.,…
THX
  • 553
  • 2
  • 8
  • 18
2
votes
1 answer

How to tell if a file is on tmpfs given its path on Linux?

This might be a dumb question, but suppose I'm given a file path and I'd like to know if it points to a file on tmpfs (that is, it's an in-memory file). How can I do that using only Linux system calls? (That is, I can't go to the shell.)
Lajos Nagy
  • 9,075
  • 11
  • 44
  • 55
2
votes
3 answers

How to write file to RAM on Linux

A program that I can not modify writes it's output to a file provided as an argument. I want to have the output to go to RAM so I don't have to do unnecessary disk IO. I thought I can use tmpfs and "trick" the program to write to that, however not…
ventsyv
  • 3,316
  • 3
  • 27
  • 49
2
votes
3 answers

IntelliJ IDEA compilation speedup in Linux

I'm working with IntelliJ IDEA on Linux and recently I've got 16 GB of RAM, so is there any ways to speed up my projects compilation using this memory?
uncle Lem
  • 4,954
  • 8
  • 33
  • 53
2
votes
2 answers

In memory relational database

I know this question is asked multiple times in stackoverflow. I am posting this question to find out what will be the best choice in for my design. I have following schema for my job details. _unique_key varchar(256) NULL _job_handle …
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
1
vote
2 answers

How to create tmpfs folder with Docker via volume instruction?

I want to create tmps volume via docker instructions in dockerfile. Is it possible to do so? Are there additional parameters which I can pass to configure volume instruction?
Alex
  • 1,940
  • 2
  • 18
  • 36
1
vote
0 answers

Is presence of /dev/shm mountpoint mandated on Linux/Unix systems?

I am working on a problem where a certain file must be placed on a tmpfs and not on a regular filesystem (such as ext4, xfs etc.) The background for the requirement is that the file will be used for shared memory mapping to which DMA will be made,…
Grigory Rechistov
  • 2,104
  • 16
  • 25
1
vote
1 answer

Ruby tmpfs which persists only until execution is complete

Is there a tmpfs kind of solution where I can write into Ruby's memory which only persists until that ruby instance is complete. File.write('/ruby_tmpfs/path/to/file', 'Some glorious content') It get consumed in same script like…
Jean
  • 21,665
  • 24
  • 69
  • 119
1
vote
0 answers

Docker BuildKit build with tmpfs mount fails the 2nd time around

This works: # note: cache .cache/go-build across docker builds RUN --mount=type=tmpfs,target=/home/myuser/.cache \ pacman -S --needed --noconfirm go && \ su - myuser -c " …
haelix
  • 4,245
  • 4
  • 34
  • 56
1
vote
0 answers

Unable to mount the specified Limit size emptydir volume(tmpfs) using medium as memory in all PODs

There is a requirement in my environment to restrict the size limit of a tmpfs mount point inside the kubernetes POD. As per the official K8S docs, if we create the tmpfs mount using emptydir volume and medium as "Memory", by default it allocates…
1
vote
1 answer

Limit Docker container disk size on Windows

I would need a way to limit a container's disk size, mainly to test how the app behaves when there is not enough space on disk. The Docker container I'm trying to run uses a Linux image. The tricky bit is that I need to do it on Windows. I know…
1
vote
1 answer

Is tmpfs (linux/ubuntu)on disk or ram?

On wikipedia, it says that tmpfs is stored on volatile memory rather than persistent storage device. I have done some experiments and come across contradict. (My computer environment-->Mac OS/X parallel Ubuntu 16.04 x64 ) Type free -m give back I…
HannanKan
  • 163
  • 2
  • 14
1
vote
1 answer

Does shm_open commit a fixed amount of physical memory?

A friend of mine is working on a library for memory-constrained Linux systems. He’s proposing using shm_open to allocate multiple reasonably-sized (16MB) amount of memory for interprocess communication across a number of different programs on the…
templatetypedef
  • 362,284
  • 104
  • 897
  • 1,065