Id there anything wrong with putting the swapfile on the end of the drive ?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Id there anything wrong with putting the swapfile on the end of the drive ?
Just to try it out, I repartitioned my drive with the ext2 partiton(Linux) as hdc1 and put the swap as hdc2.
The only thing that I could think of was that I would possibly make the read-write head of the HD do extra work because it may be traveling a greater distance from the swap to the presently used section of hdc1 (probably closer to the begining of hdc1 most of the time).
As far as funcionality go's, it seems to work fine. Then again, since I don't know squat about how the Linux file system works, my swap may have not even been used yet since I have 512Mb of ram.
Does Linux use it's swap file anyway ?
Or does swapfile usage engage oly when needed ?
Is doing it this way a peformance issue ?
Is there anything else that I should be concerned with ?
edit : nice spelling on the title . I wish there was a way to correct that.
You can see if your swap is used when you run 'top'. The info is in the line beginning with 'Swap' (5th line). If you've got 512MB RAM, I guess swap is not used. In your situation, it may be at the end.
Install Gkrellm , and it should have a krell monitor that will show swap usage. Outside of gaming, I have never even touched my swap drive, and I only have 256MB DDR.
Thanks for the replies. With the 'top' command, it showed that only 1Mb of my 376Mb swapfile was being used.
And from what slightcrazed is saying, even if I put my machine under a heavy load ( like 3d gaming ), I will probably not use my swap file, as slightcrazed has 256Mb ram and gets by with no swapfile usage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.