Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-23-2005 #1Just 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?
- 05-23-2005 #2Linux 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...
- 05-23-2005 #3Just 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]
- 05-23-2005 #4Linux 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
- 05-23-2005 #5
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
Great GNU/Linux references and resources:
The Linux Documentation Project
Rute User's Tutorial and Exposition
GNU/Linux Man Pages
- 05-24-2005 #6
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


Reply With Quote
