[arch-general] swap and tmpfs
Ralf Mardorf
ralf.mardorf at rocketmail.com
Thu Apr 23 14:52:11 UTC 2015
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 at archlinux ~]$ lsblk | grep sdb7
├─sdb7 8:23 0 2.4G 0 part [SWAP]
[rocketmouse at 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
More information about the arch-general
mailing list