2.1.84: weird behavior of swapfiles

Vladimir Volovich (vvv@vvv.vsu.ru)
06 Feb 1998 16:15:20 +0300


Hello,

Is it normal that I'm able to add the same swapfile several times
to "swap spool" ?

vvv# ls -l /swapfile
-rw-r--r-- 1 root root 33554432 Jan 24 12:46 /swapfile
vvv# cat /proc/swaps
Filename Type Size Used Priority
vvv# swapon /swapfile
Adding Swap: 32764k swap-space (priority -8)
vvv# swapon /swapfile
Adding Swap: 32764k swap-space (priority -9)
vvv# swapon /swapfile
Adding Swap: 32764k swap-space (priority -10)
vvv# cat /proc/swaps
Filename Type Size Used Priority
/swapfile file 32764 0 -8
/swapfile file 32764 0 -9
/swapfile file 32764 0 -10
vvv# swapoff /swapfile
vvv# cat /proc/swaps
Filename Type Size Used Priority
/swapfile file 32764 0 -9
/swapfile file 32764 0 -10
vvv#

BTW, does the using of swapfiles (instead of swap partitions) have any
"overhead", or is it less efficient, or have other "weak points"?
Different faqs seem to be very outdated...

Best regards, -- Vladimir.

-- 
It may be better to be a live jackal than a dead lion, but it is better
still to be a live lion.  And usually easier.
		-- Lazarus Long
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu