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-10-2006, 07:22 PM
|
#1
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Rep:
|
Clearing the swap
Is there any command to clear my swap? I tend to start filling it after long (2-3 week) desktop sessions. Currently I just give it the ol 3 finger salute, but was wondering if there's a better way...
|
|
|
07-10-2006, 07:42 PM
|
#2
|
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 940
|
Code:
#swapoff -a
#swapon -a
If you don't want to do that, close and then restart X. Doing that usually clears out the swap for me. I have 256MB RAM and 256MB swap.
|
|
|
07-10-2006, 07:54 PM
|
#3
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Thanks. As soon as you posted that, I remembered it...lol
Works great.
|
|
|
07-10-2006, 09:21 PM
|
#4
|
LQ Newbie
Registered: Jun 2006
Location: Slackware
Distribution: Slackware ,,, you mean there are other distros?
Posts: 6
Rep:
|
Kind of reminds me of the question people new to linux ask regarding ram usage. After running into so many problems in windows with programs not giving up ram, they always think they are running out or ram when the system shows it filling up with cache and buffers. Then you have to explain how linux is much better at memory management etc.
If the swap is filled with data that is not being used anymore, won't that just be replaced with fresh data as soon as the system needs it?
Or does the kernel have a worse time managing swap than it does ram?
|
|
|
07-10-2006, 09:26 PM
|
#5
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
In my case, I get massive slowdowns the more the swap fills up, so clearing the swap every once in awhile helps.
What can I say? old/slow/underpowered h/w. (1.3G Celeron, 256mb ram, shared video)...lol
|
|
|
07-10-2006, 09:40 PM
|
#6
|
LQ Newbie
Registered: Jun 2006
Location: Slackware
Distribution: Slackware ,,, you mean there are other distros?
Posts: 6
Rep:
|
I feel your pain - but I'm much richer in the ram department.
Makes all the difference.
Athlon 1100
640 MB ram
Suits my needs.
My server is a slowpoke - slot 1 celeron 366 OC'd to 412 with 256MB ram.
But it's just serving files.
Quote:
old/slow/underpowered h/w. (1.3G Celeron, 256mb ram, shared video)
|
Must be a Dell ...
Last edited by Tennessee Jed; 07-10-2006 at 09:49 PM.
|
|
|
All times are GMT -5. The time now is 10:22 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
|
|