Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-19-2006, 04:28 AM
|
#1
|
Member
Registered: Jul 2006
Distribution: Slackware 10.2
Posts: 31
Rep:
|
swap: beginning of fast disk or beggining of second disk
Hi. I have 2 hard drives. 1 Western Digital 8M buffer (primary ide: hda , considered fast disk) and 1 Seagate 2M buffer (secondary ide: hdc , considered slow disk) both 7200RPM's. Now, how should I add the swap space, cause I've seen so many threads, one say it's best to be on the beggining of the fast drive, some other say it's best to be on other drive than the one the system is booted on (implicitly in my case the slower drive). So I will make it at the beggining of the drive, but which drive ... the fast one from which the system will boot from or the slow one, which i only use to store some data.
|
|
|
07-19-2006, 06:09 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,274
|
It depends ...
And, it probably won't matter ...
A non-busy disk would be best. If you use the system disk heavily, pick the data disk. If it's reading the data when it's swapping most, use the system disk.
See what I mean - how are you going to know ???.
I'd be inclined to allocate swap on both (mounted at the same priority), and let kswapd stripe over the two disks.
Best solution is to have enough RAM so it doesn't need to swap.
|
|
|
07-19-2006, 09:28 AM
|
#3
|
Member
Registered: Jul 2006
Distribution: Slackware 10.2
Posts: 31
Original Poster
Rep:
|
i did 2 swap partitions each of 512MB (hda1 and hdc1) both at the beggining of each drive. when i started setup it asked me if i want to add both of them as swap partitions, i said Yes and it started with hdc1 (formatting and adding) then hda1, and that's the order in /etc/fstab too, first one is hdc1 and then hda1. maybe the setup choosed the best option ? or should i still set the priority the same to both of the swap's. at boot i see a message with hdc havin priority -1 and hda having priority -2, how can i set them same priority and what priority should i set ? my fstab currently looks like this:
Code:
bash-3.00$ cat /etc/fstab
/dev/hdc1 swap swap defaults 0 0
/dev/hda1 swap swap defaults 0 0
So how, where and what to modify ? Thanks alot.
|
|
|
07-19-2006, 04:29 PM
|
#4
|
Member
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279
Rep:
|
sl4ckw4re,
I was reading something about this the other day and the writer suggested putting swap on the outside portion of the hard drive since it travels faster than the inside portion. (hmm, won't it be better with your most used data, /home there?)
Frankly, I won't worry in most cases, just try to avoid using swap. Add more RAM or check which programs are hogging memory. Swap is always dog slow compared the the other options.
Dennisk
|
|
|
07-19-2006, 07:41 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,274
|
Simplest is to replace the word defaults with "pri=1" (no quotes - number can be anything).
|
|
|
All times are GMT -5. The time now is 10:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|