maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   System Slow Down Every 3 Days - Possible Memory Leak? (https://talk.maemo.org/showthread.php?t=58843)

fms 2010-07-23 04:25

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by javispedro (Post 761542)
Btw, if writes are slowed down, wouldn't a heavy swapiness actually help -- as it would nice to keep as much free RAM as possible to minimize the amount of frames to page out when you're interacting with the device?

Not really. If you compare the amount of free RAM with swappiness set to 100 and 30, you will see that there is no difference. I guess it all depends on how much free memory you have got to begin with and what your swap device performance is. Ours is dismal.

BTW, there is another parameter there, called page-cluster. Maemo5 has it set to 128kB at the moment. It may be of some interest to play with it.

fms 2010-07-23 04:31

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
One more thing that absolutely has to be tuned:
In /home/user/.config/tracker/tracker.cfg:

# Minimizes memory use at the expense of indexing speed
LowMemoryMode=false ===> true
# Sets the indexing speed (0->20, where 20=slowest speed)
Throttle=0 ===> 15

And then restart the Tracker. This seems to fix the Camera, so that you can make more than one photo without delays and sluggishness. Although I have not yet tried how camera works after a few days of uptime with this change.

RogerTHAcctant 2010-07-23 04:50

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by fms (Post 761702)
One more thing that absolutely has to be tuned:
In /home/user/.config/tracker/tracker.cfg:

# Minimizes memory use at the expense of indexing speed
LowMemoryMode=false ===> true
# Sets the indexing speed (0->20, where 20=slowest speed)
Throttle=0 ===> 15

And then restart the Tracker. This seems to fix the Camera, so that you can make more than one photo without delays and sluggishness. Although I have not yet tried how camera works after a few days of uptime with this change.

can you give us the exact code?

i open x terminal and type:
sudo gainroot
please help with the rest =P

NVM i got it, but i did it via WinSCP

Flandry 2010-07-23 12:09

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by RogerTHAcctant (Post 761714)
can you give us the exact code?

Or you can just install the gui...

http://talk.maemo.org/showthread.php?t=47690

GameboyRMH 2010-07-23 12:22

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
I got up to 10 days uptime recently (had to restart for an OMweather update) and I didn't have any slowdown. I have Personal IP Address, some DCEW widgets, Calendar, Media widget, OMWeather and the RSS widget running.

Jayboy5 2010-07-23 12:34

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by myeyegooogles (Post 758631)
i have the calendar, facebook, and 3 desktop command execution widgets, along with some app shortcuts and bookmarks, the widgets definitely seem like the culprit.

is there way to restart the hildon desktop without rebooting. rebooting every 3 days is annoying.

also, if there is a way to restart the desktop, then make a script and make a cron job out of it?

sudo gainroot, then

killall hildon-home

killall hildon-desktop

myeyegooogles 2010-07-23 16:52

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by JorgeFX (Post 761563)

Tried it out, pretty slick. Now I got figure out how to make an Icon for the desktop shortcut.

Ill be testing out the script for a couple of days to see how long I can go without rebooting.

shadowjk 2010-07-24 14:05

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
I suspect with swappiness 1 as in Maemo 4, there's very little swapping going on until things get really cramped, and then there's a lot of swapping until things improve, and that with Maemo 5 there's a small amount of swapping going on more or less all the time, making the onset of slowdown less sudden. But I'm just guessing.

Metalfox 2010-07-24 18:19

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Yeah, so familiar stuff in here. I can run maximum of 6 days and after that stuff gets so slow it's not funny. Even if the use is light it happens.
I tried running the script that kills hildon-home etc. It's a solution all right but I'm still not convinced that suddenly killing daemons etc is a good idea.

Well I can only hope Nokia will sort this out in future patches.

JorgeFX 2010-07-29 04:07

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by myeyegooogles (Post 762391)
Tried it out, pretty slick. Now I got figure out how to make an Icon for the desktop shortcut.

Ill be testing out the script for a couple of days to see how long I can go without rebooting.

I normally can make 7 or 8 days in a row, but I'm constantly changing the script and when I do something wrong BOOM! restart! But I think if I stop playing so much with the scripts and kernel settings maybe I could make the entire month using the script without problem.:rolleyes:

JorgeFX 2010-07-29 04:09

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by Metalfox (Post 763470)
Yeah, so familiar stuff in here. I can run maximum of 6 days and after that stuff gets so slow it's not funny. Even if the use is light it happens.
I tried running the script that kills hildon-home etc. It's a solution all right but I'm still not convinced that suddenly killing daemons etc is a good idea.

Well I can only hope Nokia will sort this out in future patches.

I have understood that is due to a BUG with the hildon and nokia will not fix it:(

myeyegooogles 2010-07-29 04:22

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
the script definitely helps, and im overclockin it too! i had to reboot cuz of fcam but i got two days pretty smooth.

is one week the limit?

wondering if a daily reboot would be better...

JorgeFX 2010-07-29 06:41

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
Quote:

Originally Posted by myeyegooogles (Post 768672)
the script definitely helps, and im overclockin it too! i had to reboot cuz of fcam but i got two days pretty smooth.

is one week the limit?

wondering if a daily reboot would be better...

There is no limit, only that most of the people that use their device hard like GOD sends:D probably have to reboot because of new software, or maybe because they want to try another kernel setting or another video of the intro. But I'm pretty sure that if you don't do those things you won't have to reboot ever. There are other factors like the smartreflex enabled that can cause some inestability. If you want to reboot it's ok but a computers and any other electronic device are meant to be ON all the time without any reboots. Imagine if google had to reboot their servers every 10 hours??:confused:

Venemo 2010-08-21 17:57

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
I recommend you to change the swappiness setting. That really makes this effect hardly noticable.

Details in this thread.

Some people report that setting it to 30 effectively improves performance and response time significantly, even after a few days of use.

(I would recommend to set it in the init script - mentioned in the linked post - to 30, then do a reboot.)

discomullah 2010-08-22 00:04

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
After disabling the widgets, I had I still got hit with the bug, and it was about 3 days as well. Will look at the swappiness setting.

myeyegooogles 2010-08-22 07:25

Re: System Slow Down Every 3 Days - Possible Memory Leak?
 
tried the swappiness trick, set it to 30

i'll monitor the next couple of days...


All times are GMT. The time now is 19:45.

vBulletin® Version 3.8.8