View previous topic :: View next topic |
Author |
Message |
Riddick Tux's lil' helper


Joined: 22 Apr 2005 Posts: 102 Location: Rome or Bristol
|
Posted: Wed May 04, 2005 11:11 pm Post subject: [Solved] Clearing Swap |
|
|
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 |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Wed May 04, 2005 11:12 pm Post subject: Re: Clearing Swap |
|
|
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 |
|
 |
Riddick Tux's lil' helper


Joined: 22 Apr 2005 Posts: 102 Location: Rome or Bristol
|
Posted: Thu May 05, 2005 10:13 am Post subject: |
|
|
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 |
|
 |
Gherald Veteran


Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Thu May 05, 2005 10:28 am Post subject: |
|
|
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 |
|
 |
bollucks l33t

Joined: 27 Oct 2004 Posts: 606
|
Posted: Thu May 05, 2005 11:44 am Post subject: |
|
|
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 |
|
 |
Riddick Tux's lil' helper


Joined: 22 Apr 2005 Posts: 102 Location: Rome or Bristol
|
Posted: Thu May 05, 2005 6:37 pm Post subject: |
|
|
thanks! |
|
Back to top |
|
 |
|