Guest taplon Posted October 7, 2004 Report Share Posted October 7, 2004 People say its better to put the swap partition on a separate disk (one can read the other write at the same time). I have two harddisks with same 3G free space on both. Do i put the swap partition with root or with home partition? wich needs more read/write swap? Quote Link to comment Share on other sites More sharing options...
arctic Posted October 7, 2004 Report Share Posted October 7, 2004 i would say: put it on the root-hdd. almost every app is run from the root-partition, the /home partition only links to root and stores some relevant data for some apps (e.g. personal config files). thus, putting the swap near root is better imho. Quote Link to comment Share on other sites More sharing options...
Ixthusdan Posted October 8, 2004 Report Share Posted October 8, 2004 Actually, if I use the reasoning of two hard drives, it would go on the drive not being used, which would be next to /home, not /. However, if you have adequet ram, say 256MB or more, the swap would be rarely used. It is an interesting idea, nevertheless. Quote Link to comment Share on other sites More sharing options...
fred_the_fish Posted October 8, 2004 Report Share Posted October 8, 2004 Indeed an intersting question. Personally, I have mine sat on the spare drive (the logic being that there is a much lower load on the drive, therefore much quicker access to the swap. Indeed, this second drive also acts as my dual-boot windows drive, so I have windows, mandrake and swap on it, and fedora, /home & /etc on my first drive. This logic only really works because they are both Matrox drives (thus 133 on the bus). If they were slower drives, I don't think there would have been much point. Therefore, I'd say if your using a fast ata connection to the drives (or indeed, if the box is new enough, sata), stick the swap on the second drive.. #blimey thats convoluted! Quote Link to comment Share on other sites More sharing options...
SpikeyKlitske Posted October 14, 2004 Report Share Posted October 14, 2004 What if you have a slow and a faster drive and not enough memory (less then 256 or 512kb), ie your system has to use the swap file, wouldnt you want it to sit on the fastest drive? :unsure: Quote Link to comment Share on other sites More sharing options...
Pierre Baco Posted October 17, 2004 Report Share Posted October 17, 2004 My 2 cents: I guess you have 2 IDE controllers, so a first approach is to put one HD on each in order to balance the load. For example, create your root partition on HD 1 (/dev/hda) and /home on HD2 (/dev/hdc). Then swap should be on the least used HD. Unless you're doing a lot of R/W in your home partition, / will be the most frequently accessed partition (all programs, logs and conf files are here). So my guess would be to create the swap partition on the second disk, near /home. Now if disks have different speeds, put swap on the fastest. But again, under normal conditions, Linux should not use swap too often. If it becomes too frequent, (easy check with 'free'), then get more RAM. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.