swap and tmpfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux