Active Topics

 


Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
Hi to all
Today I noticed that my phone a little buggy (phone almost not responsive). I checked "top" and I saw process named [kswapd0] takes around 40-70% of CPU. Opened app at this time:
1. One window of default browser with twitter site
2. TranslateALL
3. Documents
4. One PDF file
5. Terminal with "top" running.

Could someone explain me what this process, what he do and why it take so much cpu ?
Thanks
 
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#2
It's the "kernel swap daemon". Handles swapping to a pagefile (in this case, ramzswap)

If you want to disable swap (uses 256MB of RAM, IIRC), look up how to disable ramzswap on Harmattan.

1GB is more than enough for most users on Harmattan.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#3
Thanks for answer. But what cause this?
It's my first time that phone react like this...
Forgot to add wazapp is also runned in background..
 
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#4
1GB would normally be enough for a phone, but only 768MB of memory's really "free" on a stock Harmattan install.

Around 500MB's taken up by the system and various libraries over time, leaving only 256MB of fast RAM left.

ramzswap is neat - it allows you to have about 1.2GB total RAM, but CPU usage is high, and speeds aren't nearly as fast as without it, especially if you don't get to that much usage.

so for my usage, I simply leave ramzswap off.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#5
Hmmm.. I have normal mode with (Coderus aegis-install + opensudo) and I tried to disable it with:
Code:
sudo /sbin/swapoff /dev/ramzswap0
It's took a few MINUTES to finish ! Why ?
I opened another terminal window with "top" and saw that /sbin/swapoff /dev/ramzswap0 process takes around 96-98% cpu
It's finished and all looks ok (for now )
Thanks

PS. after reboot it switched again to ON ?

PS2. weird, but now it again show me this process ([kswapd0]) in top for a few minutes, but now it takes around 3.7%
It not should be completely disabled ?

Last edited by Schturman; 2013-09-30 at 14:39.
 

The Following User Says Thank You to Schturman For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#6
@Schturmann,

You only disabled swap until the next reboot. So after rebooting it should be ON again. If it's using less CPU it's because less swap is being used.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#7
Thanks...
Nothing not helped... At the end my phone freezed again, but in "top" is no one of the processes was over 10-15%..
Finally i just rebooted to fix it..

Last edited by Schturman; 2013-10-01 at 10:30.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:05.