maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Optimize your Nokia N900 (https://talk.maemo.org/showthread.php?t=58935)

animest4r 2010-07-22 10:21

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by JorgeFX (Post 760523)
One question... Did you guys unzip the script?? :rolleyes:

yes it is unzipped so that's why i mentioned "OptimizeN900 file" NOT OptimizeN900.zip

noipv4 2010-07-22 10:26

Re: Optimize your Nokia N900
 
Added the drop cache routines too, for even more optimized memory recovery.

#!/bin/sh

echo Your Nokia N900 is being Optimized

#Refresh the Audio Process to avoid audio glitch
killall pulseaudio

#Refresh the Tracker process
killall trackerd
killall tracker-indexer

#Refresh the browser MicroB
killall browser browserd

#Refresh of the most common applications and UIs
killall Calendar
killall osso_calculator
killall camera-ui
killall rtcom-call-ui
killall modest
killall rtcom-messaging-ui
killall image-viewer
killall osso_notes
killall osso-addressbook

#Refresh the all UI Hildon, menus and bars.
killall hildon-desktop
killall hildon-status-menu
killall systemui
#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home

#Refresh other processes
killall tonegend
killall mafw-gst-renderer

#drop Caches -- added by noipv4
#echo 1 > /proc/sys/vm/drop_caches
#echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches

echo Your Nokia N900 is now Optimized! ;)

noipv4 2010-07-22 10:28

Re: Optimize your Nokia N900
 
1 Attachment(s)
Here's the new file attached for your convenience.
With lots of thanks to the author of this thread

PipoXtreme 2010-07-22 10:43

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by ossipena (Post 760464)
copy this to /usr/share/applications/hildon/

with filename [anything goes].desktop

(and copy the optimize script to /opt/)

This works perfect - thx for that..

JorgeFX 2010-07-22 10:45

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by noipv4 (Post 760572)
Added the drop cache routines too, for even more optimized memory recovery.

#drop Caches -- added by noipv4
#echo 1 > /proc/sys/vm/drop_caches
#echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches

Thanks:D, but read this http://talk.maemo.org/showpost.php?p...8&postcount=25:D

evad 2010-07-22 11:28

Re: Optimize your Nokia N900
 
Re on:

Code:

#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home

You might try experimenting with following command (ran as user, not root):

Code:

/usr/sbin/dsmetool -k /usr/bin/hildon-home && /usr/sbin/dsmetool -t /usr/bin/hildon-home
This is "clean" way of restarting hildon-home (could be also used for other system processes, not sure) and will keep widgets in place.

Otherwise, good stuff, I was thinking something similar myself. Haven't tested it yet, but as my N900 is now ~4 days of uptime, I might give it a shot very soon :)

noipv4 2010-07-22 11:51

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by evad (Post 760634)
Re on:

Code:

#NOTE: Killing the hildon-home process can erase all widgets and that is why it is disabled
#killall hildon-home

You might try experimenting with following command (ran as user, not root):

Code:

/usr/sbin/dsmetool -k /usr/bin/hildon-home && /usr/sbin/dsmetool -t /usr/bin/hildon-home
This is "clean" way of restarting hildon-home (could be also used for other system processes, not sure) and will keep widgets in place.

Otherwise, good stuff, I was thinking something similar myself. Haven't tested it yet, but as my N900 is now ~4 days of uptime, I might give it a shot very soon :)

Would it be too much to request you to please post a conky image after 4days of usage?

I wanna compare the swap usage with mine. My phone crashed yesterday (3 days uptime), with 250MB Swap space usage. I could
feel the sluggishness, and was anticipating something like that.

Thanks

jupacabra 2010-07-22 12:04

Re: Optimize your Nokia N900
 
noob question guys, I keep getting the "cant open" error for this one... I have already backread from the first page of the thread to know if I did miss something, but still the error persists....

what I did was this.... downloaded the file from my desktop... then unzipped it, then I copied the file from the zip to my N900 which is connected through usb on my desktop... I just copied it on the internal memory and not inside any folders whatsoever...

Now when I open xterminal, I first enter sudo gainroot since as far as I know it is how I can run the command as root... so after the sudo gainroot I would enter the command

sh OptimizeN900

and I would receive the error that I cant open the OptimizeN900...

any help guys? Thanks!

evad 2010-07-22 12:11

Re: Optimize your Nokia N900
 
1 Attachment(s)
Quote:

Originally Posted by noipv4 (Post 760652)
Would it be too much to request you to please post a conky image after 4days of usage?

I wanna compare the swap usage with mine. My phone crashed yesterday (3 days uptime), with 250MB Swap space usage. I could
feel the sluggishness, and was anticipating something like that.

Screenshot attached, however it might not be the best example, as my N900 usage pattern has recently changed a bit and I don't use it *that* much for time being - especially for general web browsing, which tends to bloat swap space very quickly.

A thing very helpful to determine which apps/processes are leaking memory, ergo bringing performance down are endurance snapshots. I've been collecting these for a while and it was surprising to see some processes so heavily leaking memory over time. Thankfully, some of these leaks were fixed in PR1.2, but some don't and hopefully will get fixed in next firmware release.

Endurance snapshots are bit confusing to setup and start with, but definitely worth trying, I found it very useful at least. http://wiki.maemo.org/Documentation/...5/sp-endurance

AlMehdi 2010-07-22 12:14

Re: Optimize your Nokia N900
 
Quote:

Originally Posted by jupacabra (Post 760664)
noob question guys, I keep getting the "cant open" error for this one... I have already backread from the first page of the thread to know if I did miss something, but still the error persists....

what I did was this.... downloaded the file from my desktop... then unzipped it, then I copied the file from the zip to my N900 which is connected through usb on my desktop... I just copied it on the internal memory and not inside any folders whatsoever...

Now when I open xterminal, I first enter sudo gainroot since as far as I know it is how I can run the command as root... so after the sudo gainroot I would enter the command

sh OptimizeN900

and I would receive the error that I cant open the OptimizeN900...

any help guys? Thanks!

You need to go to the folder of the Optimize900 script. You could write "find /home |grep Optimize" to find what folder it is in. Then use "cd /to/that/folder/" and "sh Optimize900".


All times are GMT. The time now is 09:44.

vBulletin® Version 3.8.8