maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   SpeedTweak ALPHA (https://talk.maemo.org/showthread.php?t=22408)

brontide 2008-07-30 03:27

SpeedTweak ALPHA
 
1 Attachment(s)
Some of you may remember my earlier work.

I have now packaged up a few, relativity safe, tweaks as a nice self contained .deb file. This will add a sysctl.conf to the system, tweak the ondemand governor, and drop a load of banned hosts into your system.

IF YOU HAVE ALREADY TWEAKED DNSMASQ, SYSCTL, OR THE SPEED GOVERNOR I HAVE NO IDEA WHAT THIS WILL DO IT IT.

The good news is that removing this package and rebooting should be 100% safe and *should* revert all changes. I have tested this under dpkg and App Manager under Diablo and I'm almost 100% positive this should work under Chinook and I'm not sure about Bora.

Code:

./root
./root/hosts.sh
./etc
./etc/dnsmasq.d
./etc/dnsmasq.d/banner_ad_hosts.conf
./etc/init.d
./etc/init.d/cpufreq_tweak.sh
./etc/init.d/sysctl
./etc/sysctl.conf

This is the contents of the deb. The /root/hosts.sh regenerates the list of blocked hosts, the dnsmasq.conf is sed'ed to enable a conf-dir in which this drops the banner blocking conf, the two new init.d scripts control sysctl and the ondemand tweaks.

All in all this should provide a small to moderate increase in performance. I am using it with an 8mb swap file.

It's a good first step to get some feedback and I now know where I'm going to take this. I do plan on adding prefs.js tweaking to this eventually and possibly chrome and gconf tuning as well.

My ultimate goal it to have 100% of my tweaks bundled up in an easy to install .deb/system

gerbick 2008-07-30 03:42

Re: SpeedTweak ALPHA
 
Dude... thanks for your work in this. Much appreciated.

buma 2008-07-30 04:11

Re: SpeedTweak ALPHA
 
so, stupid question before I go off running and installing this into my n800 - I take it it's both N8X0's?

aw hell, mebbe I'll just install and see...

(fingers crossed)

qwerty12 2008-07-30 08:06

Re: SpeedTweak ALPHA
 
Yeah, it's for both N8x0's. I'm using it in my N800 fine.

buma 2008-07-30 10:47

Re: SpeedTweak ALPHA
 
okmaybe I'm not smart enough - so how do I install thiis? when Ii click on the link, ap manager says I'm missing a dependancy of 'wget' which I assume means I need rooot access? That I do know, but after sudo root-ing, what then?

brontide 2008-07-30 11:42

Re: SpeedTweak ALPHA
 
I though wget was in extras... let me go and chase that down.

TA-t3 2008-07-30 11:44

Re: SpeedTweak ALPHA
 
@buma:
You probably need to add the repository where 'wget' can be found, then the dependencies should be resolved by apm. (However I can't look at the .deb myself so I'm guessing. The link for some reason gives me a content-type of uknown/unknown, which our firewall blocks.)

brontide 2008-07-30 13:22

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by TA-t3 (Post 208552)
@buma:
You probably need to add the repository where 'wget' can be found, then the dependencies should be resolved by apm. (However I can't look at the .deb myself so I'm guessing. The link for some reason gives me a content-type of uknown/unknown, which our firewall blocks.)

Either way I'm dropping wget as a dependency *soon* since I've got a much better idea in store. Give me a few days to pound out an idea.

buma 2008-07-30 17:30

Re: SpeedTweak ALPHA
 
oooooh... okay
after a half hour, I finally found it online, uninstalled all my repos / reinstalled all repos and then it finally showed up on my list...

@ brontide
I know you said you were going to remove that dependancy, but... um... I'm impatient :)

one question however on your previous work - I made all the changes to the microb about:config files and at first, it seemed slower... that is until I revisited the site a second time. But I'm guessing that's because the cache was cleared when it was resized?

and I guess i shoulda made a backup copy of the prefs.ps file prior to changing stuffs...

still - fingers crossed!

brontide 2008-07-30 17:38

Re: SpeedTweak ALPHA
 
This does not do the prefs.js change so you should be fine.

The newer version ( not even started yet ) will not require wget, but for now it is what it is.

buma 2008-07-30 17:56

Re: SpeedTweak ALPHA
 
@brontide
actually, I manually made the changes you had posted in your earlier work thread... :)

nobodysbusiness 2008-07-31 01:37

Re: SpeedTweak ALPHA
 
I wonder if there's any way to conclusively rule out the placebo effect. Perhaps some way of using the unixy 'time' command to measure the loading time of apps. I doubt that this would be possible, but imagine that you could pass an argument to microb that would cause it to start up, load a page, display the page and then exit. That would allow a tester to run something like "time microb -load www.bleh.com -exitafter" at the command-line and get a time before and after the tweaks. I have no idea if anything like this is remotely plausible, but perhaps someone else knows more.

brontide 2008-07-31 01:41

Re: SpeedTweak ALPHA
 
Did it work *for you*?
Did you perceive an improvement?
Has there been any negative side effects?

There is a lot more that I'm working on, but it's on my wait list since I want to bang out my Demo for the summit in time to do a dry run at the local LUG.

prk60091 2008-07-31 02:03

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by brontide (Post 208811)
Did it work *for you*?
Did you perceive an improvement?
Has there been any negative side effects?

There is a lot more that I'm working on, but it's on my wait list since I want to bang out my Demo for the summit in time to do a dry run at the local LUG.

seems like i am burning more battery than usual but it feels peppier

Spiteman 2008-07-31 07:03

Re: SpeedTweak ALPHA
 
Good work. No any negative side effects.

lma 2008-07-31 09:06

Re: SpeedTweak ALPHA
 
Thanks for taking the time to do this.

I have a couple of minor points for future releases (tested on Diablo only):

these settings in cpufreq_tweak.sh:
Code:

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 165000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

and these in sysctl.conf:
Code:

net.ipv4.tcp_sack=1
net.ipv4.tcp_dsack=1
net.ipv4.tcp_fack = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1

were already the defaults.

Also, the hosts.sh pipeline (nice use of xargs btw) can be shortened by a few commands:

Code:

wget -q -O - http://www.mvps.org/winhelp2002/hosts.txt | awk '/^127\.0\.0\.1.*\./ { print $2 }' | sort -u | xargs -n 100 echo 127.0.0.1  > /etc/banner_ad_hosts
The above also avoids processing commented-out lines (which added an extra "127.0.0.1" hostname), and doesn't remove hostnames starting with "localhost" (eg localhosts.3322.org).

prk60091 2008-07-31 14:09

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by prk60091 (Post 208821)
seems like i am burning more battery than usual but it feels peppier

I AM AN IDIOT. of course i was burning more battery yesterday- i had the gps on - duh

no problems and in the bright of day- (and a little less etoh) it is much faster

allnameswereout 2008-08-01 17:11

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by brontide (Post 208486)
Some of you may remember my earlier work.

I have now packaged up a few, relativity safe, tweaks as a nice self contained .deb file. This will add a sysctl.conf to the system, tweak the ondemand governor, and drop a load of banned hosts into your system.

IF YOU HAVE ALREADY TWEAKED DNSMASQ, SYSCTL, OR THE SPEED GOVERNOR I HAVE NO IDEA WHAT THIS WILL DO IT IT.

Thanks for sharing its great to have more performance related packages!

Why does APT not detect a file is modified? Normally, on Debian-based systems, debconf pops up and asks the user what to do. This way you can do a diff to see the changes, and merge easily. *BSD has similar tools (mergemaster).

maacruz 2008-09-01 19:30

Re: SpeedTweak ALPHA
 
See this post for more insight into sysctl changes
http://www.internettablettalk.com/fo...4&postcount=93

brontide 2008-09-01 20:24

Re: SpeedTweak ALPHA
 
thanks, I'm working on some major changes and will gtake this into account

strider_mt2k 2008-09-02 16:56

Re: SpeedTweak ALPHA
 
I also ran into the wget thing, but I don't know how to go about finding that repository.
I'll continue to search on my own, as this looks interesting. :)

I appreciate your efforts along these lines, thanks!

gemniii42 2008-09-02 17:53

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by brontide (Post 219825)
thanks, I'm working on some major changes and will gtake this into account

Any idea on a time frame for the next version?
I just ordered an 800 play with.

brontide 2008-09-02 18:23

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by gemniii42 (Post 220149)
Any idea on a time frame for the next version?
I just ordered an 800 play with.

December... seriously... I'm booked up.

My thinking for the next version is a pure python "tweaks" application that can safely apply and remove items from sysctl, files, gconf, prefs.js, and more with few side effects. Easy 1-click install of bundles of changes through the browser as well.

bongo 2008-10-08 08:28

Re: SpeedTweak ALPHA
 
Does it work with the latest os update?

prk60091 2008-10-08 12:33

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by bongo (Post 231568)
Does it work with the latest os update?

works for me

m_sparks 2009-01-07 21:12

Re: SpeedTweak ALPHA
 
Quote:

Originally Posted by buma (Post 208542)
okmaybe I'm not smart enough - so how do I install thiis? when Ii click on the link, ap manager says I'm missing a dependancy of 'wget' which I assume means I need rooot access? That I do know, but after sudo root-ing, what then?


http://maemo.org/downloads/product/OS2007/wget/

I found it here and even though it's for OS2007, it will install with no problem.
I have it running on my n810 with OS2008.


All times are GMT. The time now is 20:58.

vBulletin® Version 3.8.8