Swap partition options?
Are there some swap partition options for swap, that can written into fstab?
|
|
The only option I'm aware of is priority, which would be entered as "pri=<value>" in the fstab options field. Higher numbers indicate higher priority (default is -1).
|
Quote:
|
For some reason I think you can set up a raid array of swap too. Can't find it right now.
|
I meant fstab options for mounting, not for raid setup.
|
as in how to mount a swap drive?
Code:
UUID=9fc76062-7c86-4d2a-945a-2ca4579eed24 none swap sw 0 0 sudo mount -a I am assuming you know all about UUID's and /dev/sdax if not Code:
sudo blkid you can created a swap partition anywhere within the file system, Code:
/dev/sda if it is something other then what has already been presented to you by me and the others, please clarify. |
I said raid swap. I didn't say raid. You can use swap in a raid configuration. I don't mean swap in a raid array.
|
When mounting "normal" partitions, some mount options do exist - like relatime, noatime, nodiratime,...
Is there any option, which affects swap partition performance? Apart from that, I know two options not mentioned above: 1. crypt swap 2. clear swap on shutdown |
relatime, noatime, nodiratime have no any meaning on a swap partition. crypting may affect performance.
|
I think that where you put it is what really matters. reminds me of a parse I once heard, but if you put your swap on the front end of the HDD that is actually in the middle of the platter where it spins the fastest. therefore, it reads and writes quicker.
which does fall into the options category because you do have the option of creating else where on the platter. |
Today, that's somewhat irrelevant. Hard drives, themselves, have become quite "smart" (no pun intended), and have many on-board caching and self-diagnostic capabilities.
For ordinary purposes, though, I think it's hard to beat swapping to a disk file, and to then keep the "swappiness" to a reasonable default. Most computers these days don't spend much time swapping, and don't use much swap, although they should have "some place to swap to" when they actually need to do so. Per contra, laptop computers often need to be able to quickly "hibernate," which does use the swap facility and which in some instances requires a partition. "YMMV.™" |
Quote:
|
All times are GMT -5. The time now is 03:39 PM. |