View previous topic :: View next topic |
Author |
Message |
esc* n00b
Joined: 19 Aug 2003 Posts: 55 Location: Finland
|
Posted: Mon May 10, 2004 5:19 pm Post subject: swap activated? |
|
|
Does my gentoo swap at all on harddisk? Here is my current stats:
Memory
Free 3.10 MB
Used 499.41 MB
Size 502.51 MB
Swap
Free 976.98 MB
Used 0.00 KB
Size 976.98 MB
When i type mkswap "/dev/hdb2" (my swap partition is hdb2)
get "Setting up swapspace version 1, size = 1024446 kB"
and then i type "swapon /dev/hdb2"
get "swapon: /dev/hdb2: Device or resource busy"
my /etc/fstab
/dev/hdb2 none swap sw 0 0
I havent never seen that some swap space have used. Or when its maybe use swap partition? |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Mon May 10, 2004 5:25 pm Post subject: |
|
|
Does your /etc/fstab point to the right parition for your swap? If so, try rebooting. If you don't get any errors on boot there's a good chance that your swap is working just fine. _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Mon May 10, 2004 5:30 pm Post subject: |
|
|
Did you get those numbers with top?? If top sees swap then it will be on and activated (try swapoff and you should see top says swap 0k total)
I also have 512 mb memory and my swap is almost never used |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Mon May 10, 2004 5:38 pm Post subject: |
|
|
BlackEdder wrote: | I also have 512 mb memory and my swap is almost never used |
Swap is only used when your RAM is full, so as long as it is up and running you should be fine. _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Mon May 10, 2004 5:42 pm Post subject: |
|
|
I was not worried I was glad Just added it to show him he shouldn't be worried about it either |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Mon May 10, 2004 5:44 pm Post subject: |
|
|
BlackEdder wrote: | I was not worried I was glad Just added it to show him he shouldn't be worried about it either |
Yeah, I didn't think you were...that was directed toward him as well hehe. _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
esc* n00b
Joined: 19 Aug 2003 Posts: 55 Location: Finland
|
Posted: Mon May 10, 2004 5:47 pm Post subject: |
|
|
Yes fstab pointing right partition and booting normally (no err). Get those stats "top", "free" and phpSysInfo. Yep i heard somewhere that linux use all free memory for swap. But is ~allmost full |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Mon May 10, 2004 5:53 pm Post subject: |
|
|
esc* wrote: | But is ~allmost full |
Linux tends to grab most of your memory, whether it needs it or not...sets it aside for when it does. _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Mon May 10, 2004 5:56 pm Post subject: |
|
|
I think gkrellm gives a better idea about what memory is really used. currently it says 30 % of my memory is used, while top says everything minus 30mb |
|
Back to top |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Mon May 10, 2004 5:58 pm Post subject: |
|
|
BlackEdder wrote: | I think gkrellm gives a better idea about what memory is really used. currently it says 30 % of my memory is used, while top says everything minus 30mb |
I agree. I use gkrellm and absolutely love it. _________________ Gentoo...it's like wiping your ass with silk. Or sandpaper. |
|
Back to top |
|
|
|