LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 05-19-2003, 12:25 PM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Question 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.

JC

Last edited by lostboy; 05-19-2003 at 12:27 PM.
 
Old 05-19-2003, 12:48 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 05-19-2003, 12:55 PM   #3
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
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.

slight
 
Old 05-19-2003, 01:35 PM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thumbs up

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.

Cool!

JC
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
putting drive icons on kde desktop johns123 Linux - Newbie 5 12-17-2017 09:06 AM
Should I put the swap partition at the beginning or the end of the drive? mpyusko Slackware - Installation 32 04-11-2011 06:07 AM
can't repartiton hard drive for a dual boot because disk contains data near end andy101 Linux - Newbie 3 11-14-2005 01:52 PM
Putting a filesystem on an external USB Hard Drive Ryknow215 Linux - Hardware 7 01-17-2004 06:33 PM
Swapfile Shantesh Linux - Software 2 09-11-2003 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration