Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Clearing Swap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Riddick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2005
Posts: 102
Location: Rome or Bristol

PostPosted: Wed May 04, 2005 11:11 pm    Post subject: [Solved] Clearing Swap Reply with quote

If I have a lot of free Ram space and a lot of things in Swap
is there a way to unswap it back into the memory so my HDD
isn't beng written to and from all the time?

Thanks,
Riddick


Last edited by Riddick on Thu May 05, 2005 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Wed May 04, 2005 11:12 pm    Post subject: Re: Clearing Swap Reply with quote

Riddick wrote:
If I have a lot of free Ram space and a lot of things in Swap
is there a way to unswap it back into the memory so my HDD
isn't beng written to and from all the time?

Thanks,
Riddick

Wha...? That is strange. Post "free -m"
Back to top
View user's profile Send private message
Riddick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2005
Posts: 102
Location: Rome or Bristol

PostPosted: Thu May 05, 2005 10:13 am    Post subject: Reply with quote

Code:
bash-2.05b$ free -m
             total       used       free     shared    buffers     cached
Mem:          1000        989         10          0        219        248
-/+ buffers/cache:        520        479
Swap:          980        264        715
bash-2.05b$

For example, zooming a picture into its pixels clears a lot of ram,
and tends to put things into swap, and I would just like them to be put back again.
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Thu May 05, 2005 10:28 am    Post subject: Reply with quote

Code:
             total       used       free     shared    buffers     cached
Mem:          1000        989         10          0        219        248
-/+ buffers/cache:        520        479
Swap:          980        264        715


So you have 989mb of used RAM, which is 520mb if you subtract cache, and there is 264mb of stuff in swap.

That seems fine to me...
Back to top
View user's profile Send private message
bollucks
l33t
l33t


Joined: 27 Oct 2004
Posts: 606

PostPosted: Thu May 05, 2005 11:44 am    Post subject: Reply with quote

Generally if stuff is swapping out there is a good reason for it. However if you still want to do it, the effect you desire will be obtained by doing this:
Code:
swapoff -a && swapon -a
Back to top
View user's profile Send private message
Riddick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2005
Posts: 102
Location: Rome or Bristol

PostPosted: Thu May 05, 2005 6:37 pm    Post subject: Reply with quote

thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum