Skip to main content

All Questions

Tagged with
1 vote
0 answers
188 views

Why is the filesystem larger than logical volume?

On the machine, there is a logical volume /dev/lvm/tmp of size 500MiB with the same size partition /dev/mapper/tmp that is mounted on /tmp. Checking the logical volume: # lvdisplay /dev/lvm/tmp --- ...
JPM02's user avatar
  • 11
1 vote
0 answers
153 views

Build Docker image on tmpfs

I have a Dockerfile that change file permissions to various folders, one of that is a node_modules RUN chown -R 0:0 . ...
Skhaz's user avatar
  • 111
4 votes
1 answer
1k views

How to read tmpfs as a block device in linux?

A typical linux machine mounts a tmpfs to store temporary files: $ df Filesystem Size Used Avail Use% Mounted on /dev/sda1 953M 702M 203M 78% / tmpfs 1.5G ...
Duke Nukem's user avatar
  • 1,235
1 vote
1 answer
1k views

Why am I able to mount arbitrary TMPFS as an unprivileged user with unshare?

While messing around with unshare, I stumbled on the following behavior in an unprivileged shell: foo@pc $ id foo uid=1000(foo) gid=1000(foo) groups=1000(foo),27(video),97(input) foo@pc $ unshare -r -...
Afalide's user avatar
  • 13
0 votes
0 answers
2k views

How to take full advantage of your RAM on Linux

On the downloads page of Garuda Linux, they say that "we believe in the principle that unused RAM is wasted RAM". There are some performance comparisons on youtube, it wasn't well in stress ...
AdiG15's user avatar
  • 101
0 votes
1 answer
292 views

Syncing Docker tmpfs to Disk?

I have a couple of Docker containers that constantly write to logs. This causes continuous disk I/O, particularly writes. Is there a way to make Docker read/write to a ramdisk, which could ...
Teknophilia's user avatar
1 vote
1 answer
1k views

Docker system directories in tmpfs?

Does it make sense to mount any of Docker directories under /var/lib/docker as tmpfs to speed things up and reduce SSD wear? ~ # l /var/lib/docker/ total 56 drwx------ 2 root root 4096 Jul 28 02:02 ...
Daniel W.'s user avatar
  • 1,992
1 vote
1 answer
924 views

How can I run postgres with data dir on /tmp?

I'm running automated integration tests using data stored in a postgres database. I need to start every test run with the same database contents. Instead of always clearing the database and importing ...
user9964388's user avatar
1 vote
0 answers
407 views

Give space to a tiny computer (tmpfs with swap over nfs)

I have a tiny computer with not so much RAM (1-2GiB) and very little disk space in which I installed Gentoo. I also have space on a shared NFS. In order to be able to compile any package, even the ...
Stéphane Veyret's user avatar
10 votes
3 answers
3k views

Should I expect programs that run from a tmpfs folder to run faster? (with and without I/O, inside and outside a Docker container)

On Linux, suppose I have an executable file. Let's look at two cases: (A) A large portion of what the executable does is disk I/O; (B) the executable doesn't do any disk I/O. For each of the cases A ...
Lior's user avatar
  • 211
2 votes
0 answers
465 views

Prevent filesystem caching on tmpfs

Suppose that I want to put a big file (or a bunch of files) into a TMPFS, for whatever reason. Using dd with various combinations of direct and nocache flags, whether I copy a file from disk or create ...
Mona the Monad's user avatar
0 votes
0 answers
331 views

When mounting dir to RAM, will contents remain after computer reboot

I mounted a cache directory to tmpfs for faster performance on my website using this command: tmpfs on /var/cache type tmpfs (rw,relatime,size=102400k,mode=777) It seems to be working well, however, ...
danielb's user avatar
  • 103
1 vote
1 answer
3k views

systemd: disable useless tmpfs

Context: embedded system, read-only MMC with tmpfs overlay. Everything gets written to RAM & disappears on reboot. systemd insists on creating numerous tmpfs mounts (at least /run /run/lock /run/...
syam's user avatar
  • 113
3 votes
1 answer
6k views

Linux tmpfs write speed slower than RAM speed

I have a HPE ProLiant DL360 Gen9 server, specs are: CPU: Intel Xeon 2 CPUs E5-2687W v3 @ 3.10GHz, 25MB L3 cache, 10 cores ea RAM: 8x 32GB PC4-17000 DDR4 2133MHz CAS-15 1.2V SDRAM DIMM (256 GB total) ...
atreyu's user avatar
  • 362
1 vote
1 answer
2k views

Differences between symlink to /tmp and tmpfs

I'm trying to make a read-only file-system (Raspbian). One common way is to place some directory (that are to be writable) in a tmpfs. Example, I found some tutorials that suggest: rm -rf /var/lib/...
Mark's user avatar
  • 438

15 30 50 per page