[arch-general] swap and tmpfs
Hi, this line in fstab $ grep tmp /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0 usually is commented out. One time it was needed, when building a kernel failed. Today building Firefox failed. I'll try with 3G again, instead of half of the memory (1.9G), after a restart, to safely clean tmp first. I suspect that if the RAM size doesn't fit, swap isn't used?! I also wonder why just one swap partition is recognized?! $ df -h | grep /tmp tmpfs 1.9G 1.9G 464K 100% /tmp $ grep SwapTotal /proc/meminfo SwapTotal: 2546264 kB $ grep swap /etc/fstab /dev/sdb7 none swap defaults 0 0 /dev/sda10 none swap defaults,pri=-2 0 0 [rocketmouse@archlinux ~]$ lsblk | grep sdb7 ├─sdb7 8:23 0 2.4G 0 part [SWAP] [rocketmouse@archlinux ~]$ lsblk | grep sda10 ├─sda10 8:10 0 2.2G 0 part $ sudo nano /etc/fstab $ sudo mount -a $ lsblk | grep SW ├─sdb7 8:23 0 2.4G 0 part [SWAP] $ grep SwapTotal /proc/meminfo SwapTotal: 2546264 kB $ grep swap /etc/fstab | grep -v "#" /dev/sdb7 none swap defaults 0 0 /dev/sda10 none swap defaults 0 0 Regards, Ralf
PS: On Thu, 23 Apr 2015 16:52:11 +0200, Ralf Mardorf wrote:
I also wonder why just one swap partition is recognized?! $ sudo mount -a
A reboot did the trick $ grep SwapTotal /proc/meminfo SwapTotal: 4819424 kB $ lsblk | grep SW ├─sda10 8:10 0 2.2G 0 part [SWAP] ├─sdb7 8:23 0 2.4G 0 part [SWAP]
Now I will try /etc/makepkg.conf BUILDDIR=/some/path/outside/of/tmp. Building Firefox with 3G RAM and 4G SWAP failed again with strip:../../dist/firefox/stYHRibU[.data]: No space left on device strip:../../dist/firefox/stYHRibU: No space left on device $ df -h | grep /tmp tmpfs 3.0G 2.6G 454M 86% /tmp *?* I don't understand what happens.
2015-04-23 20:32 GMT+02:00 Ralf Mardorf <ralf.mardorf@rocketmail.com>:
Now I will try /etc/makepkg.conf BUILDDIR=/some/path/outside/of/tmp.
Building Firefox with 3G RAM and 4G SWAP failed again with
strip:../../dist/firefox/stYHRibU[.data]: No space left on device strip:../../dist/firefox/stYHRibU: No space left on device
$ df -h | grep /tmp tmpfs 3.0G 2.6G 454M 86% /tmp
*?*
I don't understand what happens.
Could it be that you ran out of inodes? df -i could tell you, though i'm not sure how tmpfs handles this. Also; the other filesystems on the system have enough free space/inodes? mvg, Guus
On Thu, 23 Apr 2015 21:22:01 +0200, Guus Snijders wrote:
Also; the other filesystems on the system have enough free space/inodes?
Yes, I could build firefox in /usr/src $ pacman -Q firefox firefox 37.0.2-20150423 it took 3 hours and 28 minutes on a 2.1 GHz dual-core Athlon with 4 GiB RAM. Before deleting the build dir gparted reported that 17.26 GiB were unused, after deleting the firefox build dir gparted reported that 19.56 GiB are unused.
On April 23, 2015 9:52:11 AM CDT Ralf Mardorf <ralf.mardorf@rocketmail.com> wrote:
Hi,
this line in fstab
$ grep tmp /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0
usually is commented out. One time it was needed, when building a kernel failed. Today building Firefox failed. I'll try with 3G again, instead of half of the memory (1.9G), after a restart, to safely clean tmp first.
I suspect that if the RAM size doesn't fit, swap isn't used?!
To be clear, swap is used for tmpfs if available ram is exhausted. The tmpfs still obeys the mount option for max size regardless. --Sean -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
participants (3)
-
Guus Snijders
-
Ralf Mardorf
-
Sean Greenslade