-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vivek Kapoor writes: > On 12/02/2009 06:54 AM, Narender <[email protected]> wrote: > <snip> >> Raid 1 146GB partition >> 33GB Swap File created on / (Note: the swap file was created when the >> OS was built, so the hard drives were not full and they were very >> empty) >> Kernel 2.6
> Swap file of 33 GB is huge. Also, on a RAID1, I think that'd lead to > performance loss rather than gain as the data is unnecessarily > mirrored. Swap is used when the primary memory is full, and > temporarily holds memory pages which are inactive. You'd be better off > if you have it on a separate disk / non-mirrored disk. Not much aware > about performance difference between file and partition, but don't > think they should have any effect on performance as have used Virtual > Machines in "files" and "partitions", and have not noticed any > performance loss or gain, though reliability increases in a partition > than a file. But for swap reliability doesn't matter. There is no benefit in creating filesystem images on FS. All the accesses go via filesystem layer. And since all you want is a contiguous disk space, having a dedicated partition for it would be best. And as far as VMs are concerned, I don't think any of GNU/Linux (or any free OSs except Windows :p) VPS hosting providers are storing images in filesystem, but in LVM volumes or GPT partitions or simple partitions or ZFS volumes ;). I'm not sure, so someone with experience please comment. And as far as reliability of swap is concerned it needs to be reliable, it is memory after all, or you'll experience memory errors. For swapping on RAID1, check out the Software RAID-HOWTO[1] from TLDP. References: [1] http://tldp.org/HOWTO/Software-RAID-HOWTO-2.html#ss2.3 HTH - -- They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. -- Benjamin Franklin, Memoirs of the life and writings of Benjamin Franklin -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (GNU/Linux) iEYEARECAAYFAksWkR8ACgkQHy+EEHYuXnTMVgCfSruXpIfQ6/LmkWRepKUgDzIC 1b8AoJvJwg0WWON6FfGYgkHB4EVnUcIO =yK/4 -----END PGP SIGNATURE----- _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
