Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Slackware Linux Help > swap partition unused

Forgot Password?
 Slackware Linux Help   For help and Discussion about Slackware linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-23-2005   #1 (permalink)
Just Joined!
 
Join Date: May 2005
Posts: 2
swap partition unused

i installed the newest version of slackware with a swap partition that is double my ram size yesterday. It used the swap at first but now when i execute top it shows that slackware isnt using any of the swap space. Is this normal? Or will it only use the swap if it is desperately low on ram?
justquick is offline  



Reply With Quote
Old 05-23-2005   #2 (permalink)
Linux Engineer
 
Join Date: Mar 2005
Posts: 1,431
Yes, it will try to keep as much as possible in ram, but if the ram isn't sufficient, it will start writing to swap. The first time I actually saw my swap beeing used where when my system was up compiling in two days and nights, and then it had used about 250MB swap...
jaboua is offline   Reply With Quote
Old 05-23-2005   #3 (permalink)
Just Joined!
 
Join Date: May 2005
Posts: 2
ram maxed out

thats what i thought but my computer is a streaming media server for my college and it is constantly used. But still the swap isnt being used despite its using 500 out of my 512 memory.[/code]
justquick is offline   Reply With Quote
Old 05-23-2005   #4 (permalink)
Linux Engineer
 
Join Date: Mar 2005
Posts: 1,431
Well, I had 256 MB ram and 550 MB swap when I was compiling, so I guess that it will have to stream for a while before it runs out of memory > write to swap... Yeah, yeah. Leaving the swap unused is just a good thing
jaboua is offline   Reply With Quote
Old 05-23-2005   #5 (permalink)
Linux User
 
Krendoshazin's Avatar
 
Join Date: Feb 2005
Location: London, England
Posts: 327
make sure you've enabled the partition with 'swapon -a /dev/hda', replace /dev/hda with the partition name of your swap partition, you can find this out with 'fdisk -l' which you'll need to be root to use
__________________
"The search for the MOT JUSTE is not a pedantic fad but a vital necessity. Words are our precision tools. Imprecision engenders ambiguity and hours are wasted in removing verbal misunderstandings before the argument of substance can begin."

Do the things you use not respect you, the user? Then it's defective by design, so make your voice heard.
Krendoshazin is offline   Reply With Quote
Old 05-24-2005   #6 (permalink)
Linux User
 
zba78's Avatar
 
Join Date: Feb 2004
Location: Birmingham, England
Posts: 335
Don't worry. In all the time I've used linux I've new seen my swap partition used.

In fact after installing a new distro I forgot to add an entry into fstab for swap so I ran the distro for a few weeks without any swap at all. Everything worked fine
__________________
Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi
zba78 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:50 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1