maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (https://talk.maemo.org/showthread.php?t=73315)

augustthe 2011-06-04 15:00

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@karan
I,m trying to install your patch but i"m stuck in this line:cp /home/user/.bashrc /home/user/.ashrc : no such file or directory
i should make the folder or ignore folder path

corduroysack 2011-06-04 15:12

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
i get this message with this "/etc/rc.local # Exicuting rc.local"

mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: cannot create directory '/dev/cgroup/cpu/user': File exists


still smooth and responsive brilliant :)

F2thaK 2011-06-04 15:46

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by augustthe (Post 1022224)
@karan
I,m trying to install your patch but i"m stuck in this line:cp /home/user/.bashrc /home/user/.ashrc : no such file or directory
i should make the folder or ignore folder path

Ive had the same error since that step was added, not sure its important.


-----

thanks again karam, will update in the morning,

is there a deb coming soon?

augustthe 2011-06-04 16:03

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
i'm doing some test on the patch i can say it,s working really really well,i stress the cpu to see if it will still be responsive but no trouble at all still fluid and smooth, great work karam:):)

eefo 2011-06-04 16:09

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by augustthe (Post 1022250)
i'm doing some test on the patch i can say it,s working really really well,i stress the cpu to see if it will still be responsive but no trouble at all still fluid and smooth, great work karan:):)

lol


p.s it's karam :D

augustthe 2011-06-04 16:29

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by eefo (Post 1022255)
lol


p.s it's karam :D

ok lol:D:D i will correct it

karam 2011-06-04 20:22

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@augustthe,F2thaK,eefo
for the .bashrc problem
it is not important for most n900

looks like you are having a problem with bash
i can't tell what is it
anyway thank you for your support :)

And F2thaK
the deb file with a gui should have been released yesterday
as i asked misiak to make it for me
(cause i'm very very busy these days) probably until 1 year i would have free time :) )
But i lost connection to misiak
(he didn't get to internet 1 weak ago and i'm trying to contact him)

The time will tell :)

karam 2011-06-04 20:26

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by corduroysack (Post 1022227)
i get this message with this "/etc/rc.local # Exicuting rc.local"

mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: cannot create directory '/dev/cgroup/cpu/user': File exists


still smooth and responsive brilliant :)

Oh i forgot about this
well this is no problem as rc.local is executed twice so it will say so
no problem with this at all :)

F2thaK 2011-06-05 03:11

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
this line worked for me this time
Code:

cp /home/user/.bashrc /home/user/.ashrc # Thanks To Tokag

phap 2011-06-05 06:19

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
I have this message:
cp cgroup_patch /home/user/
cp: 'cgroup_patch' and '/home/user/cgroup_patch' are the same file
I guess it's not important but well...

Otherwise no error except the same as in #249

eefo 2011-06-05 06:57

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by phap (Post 1022474)
I have this message:
cp cgroup_patch /home/user/
cp: 'cgroup_patch' and '/home/user/cgroup_patch' are the same file
I guess it's not important but well...

Otherwise no error except the same as in #249

i had the same error but what it states , giving the solution :D
you already have that file in required place , so no worries :P

phap 2011-06-05 08:28

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Thank you, then everything's fine!

adhiktuz 2011-06-06 10:32

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
how come i really can't install the bash. there was a problem with account-plugin-salut and telepathy-extras. hope someone can help me.

ApAMiX 2011-06-06 14:27

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Interesting error by me ;)

tee: /usr/local/sbin/cgroup_clean: No such file or directory
tee: /usr/local/sbin/cgroup_clean: No such file or directory^C

Making [/usr/local/sbin/cgroup_clean] executable

chmod: /usr/local/sbin/cgroup_clean: No such file or directory
DONE. The patch has been applied. Restart your computer...
Nokia-N900:~#

Any ideas ;) I have all requirements for the patch :)

karam 2011-06-07 15:02

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
o well this problem is really strange (it should not happen)
probably you are not doing every thing at root

as the patch should create all the required files (cause they are only text files)
so this problem doesn't make any sense actually
check your steps again and reply me :)

mehulrajput 2011-06-07 18:22

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Karam, had to flash to was going through your instructions. Instead of reboot after blacklisting the battery module, it can be unloaded by following command without rebooting

modprobe -r bq27x00_battery

Please add the same to your instructions.

locolyric 2011-06-08 06:49

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by ApAMiX (Post 1023327)
Interesting error by me ;)

tee: /usr/local/sbin/cgroup_clean: No such file or directory
tee: /usr/local/sbin/cgroup_clean: No such file or directory^C

Making [/usr/local/sbin/cgroup_clean] executable

chmod: /usr/local/sbin/cgroup_clean: No such file or directory
DONE. The patch has been applied. Restart your computer...
Nokia-N900:~#

Any ideas ;) I have all requirements for the patch :)

i had the same problems. and i guarantee i do all the necessary steps.

=======
just found out the sbin wasn't inside the /usr/local/

any alternative?

karam 2011-06-08 11:46

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by mehulrajput (Post 1024442)
Karam, had to flash to was going through your instructions. Instead of reboot after blacklisting the battery module, it can be unloaded by following command without rebooting

modprobe -r bq27x00_battery

Please add the same to your instructions.

this also works (i use it to load and unload joikuspot module)

anyway i said a reboot is important
for the kernel it self not for the battery module
and also some unexpected reboots may happen if done modprobe

it is not wrong although ;)
but i don't recommend doing that

karam 2011-06-08 11:48

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by locolyric (Post 1024779)
i had the same problems. and i guarantee i do all the necessary steps.

=======
just found out the sbin wasn't inside the /usr/local/

any alternative?

hmm well i didn't think that the not exestence of sbin will take effect
(for me it was created auto using the old aircrack-ng)

so you can try

sudo gainroot
mkdir /usr/local/sbin

then reapply the patch


and pls tell me what happenes with you :)


EDIT : IF this problem is solved with by creating the sbin folder
i will add it to the first post
If not then the problem is with your N900 (or something else)

locolyric 2011-06-08 12:55

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by karam (Post 1024968)
hmm well i didn't think that the not exestence of sbin will take effect
(for me it was created auto using the old aircrack-ng)

so you can try

sudo gainroot
mkdir /usr/local/sbin

then reapply the patch


and pls tell me what happenes with you :)


EDIT : IF this problem is solved with by creating the sbin folder
i will add it to the first post
If not then the problem is with your N900 (or something else)

patch worked!!!!

rebooting and waiting for effect.


==============
there are still no effect. Maybe i didn't do much multitasking ?
any move to test between the before and after?

adhiktuz 2011-06-08 13:21

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
how will i know if it worked?

prankster 2011-06-08 13:54

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
can any one post a video here step by step ?please ,will be helpful .
other than this ,for a noob ,its like chinese characters . -REQUEST-
and yeah after installing CSSU,i dont know it felt me like something just happened to my N900 ,it is running like SSU-ultimate -AERO ( fastest car of the world -do u mind ? ) ;p;)

karam 2011-06-08 15:05

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by locolyric (Post 1025014)
patch worked!!!!

rebooting and waiting for effect.


==============
there are still no effect. Maybe i didn't do much multitasking ?
any move to test between the before and after?

well yes
if you use a lot multitasking like a lot of web pages
you will notice a better performance (actually much better)

and as i remember there was a member said that he used to use nokia panorama app
normaly(with out the patch) it lags the hell out of his n900
but after using it
his n900 got more responsive

and did the patch worked after creating sbin?
or not ?

karam 2011-06-08 15:07

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
@prankster

the steps are really simple just download the patch
and copy then paste the instructions in the terminal

karam 2011-06-08 15:14

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
New update
just to create /usr/local/sbin

That solves the patch problem of not getting perfectly work

EDIT : For people that applied the patch and worked with them

then ignore this update

bobbydoedoe 2011-06-08 15:54

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
i am getting this error msg:

mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: can't create directory '/dev/cgroup/cpu/user': File exists

anyone else have the same issue? thx in advance

kayamagan 2011-06-09 02:12

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
i thought why not made an app which gathering this script (To Speed UP N900) and the script "dbus-scripts and pkill -STOP": http://talk.maemo.org/showthread.php?t=73038&page=2

one .deb will be better for many people.

thank

locolyric 2011-06-09 04:36

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by bobbydoedoe (Post 1025140)
i am getting this error msg:

mount: mounting cgroup on /dev/cgroup/cpu failed: Device or resource busy
mkdir: can't create directory '/dev/cgroup/cpu/user': File exists

anyone else have the same issue? thx in advance

did you forgot to key in the command as root?

dtparikh 2011-06-09 04:45

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by locolyric (Post 1025518)
did you forgot to key in the command as root?

Error message would be different (something related to permission denied) if it was due to Root access

The second error suggests that the folder has already been created, was this executed twice?

prankster 2011-06-09 05:26

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
karam can u make an app out of it ? a simple deb file if that is possible .
i think many of us will be obliged with that.what say ?

thingonaspring 2011-06-09 13:43

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Hi All,

I've tried just about every performance/battery/"smoothness" patch available over the last 12 months, including :-
- power kernel scaling (250<>805) with vdd1+2
- powervr.ini
- swappolube/IO tuning
- swap on class 10 SD
- "raid" emmc+sd swapfiles
- reduced desktops (1)
- disabled watchdogs
- simplified (i.e. no) transitions
- un-niced xorg
- disabled xorg access control

I've just installed the "cgroup" automatic process grouping patch on top of all these, and even with all the above enabled the patch makes a really noticeable difference to how rapidly the device responds to input, renders web pages, switches tasks, pretty much everything except heavy IO.

To take this patch forward, I think this change belongs in the kernel, rather than a bunch of shell scripts in userland.

It's been implemented in the mainline linux kernels since 2.6.38 (march 2011) see http://kernelnewbies.org/Linux_2_6_38.

Ideally we'd need a diff against 2.6.28 that incorporates the automatic process grouping changes from 2.6.38 and submit it to pali for consideration in kernel-power48.

Over to, er someone, to create the diff. I'll have a go at it myself, but you might be waiting a long time, so I hope someone beats me to it.

thingonaspring 2011-06-09 15:29

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by epitaph (Post 1025782)
Out-of-the-box this patch isn't worth to apply you want to add this value to it:

Code:

echo "1" > /dev/cgroup/cpu/desktop/notify_on_release
echo "1" > /dev/cgroup/cpu/applications/notify_on_release
echo "555555" > /dev/cgroup/cpu/cpu.rt_runtime_us
echo "600000" > /dev/cgroup/cpu/cpu.rt_period_us
echo "555555" > /dev/cgroup/cpu/user/cpu.rt_runtime_us
echo "600000" > /dev/cgroup/cpu/user/cpu.rt_period_us
echo "512" > /dev/cgroup/cpu/cpu.shares
echo "512" > /dev/cgroup/cpu/desktop/cpu.shares
echo "512" > /dev/cgroup/cpu/applications/cpu.shares
echo "25M" > /dev/cgroup/cpu/desktop/memory.limit_in_bytes
echo "95M" > /dev/cgroup/cpu/user/memory.limit_in_bytes


Mmmmhm, I see it's tweakable to a fair degree, but the main result automatic process grouping brings is the grouping itself which works well with the kernel's CFS scheduler. Tweaking resource allocation per group will doubtless be worth doing though.

One thing - the rt.period/runtime and memory limit settings do take effect, but these lines :-
echo "512" > /dev/cgroup/cpu/cpu.shares
echo "512" > /dev/cgroup/cpu/desktop/cpu.shares
echo "512" > /dev/cgroup/cpu/applications/cpu.shares
If you cat those settings after modifying them, they've reverted to their old values (1024, 6144, 2048 respectively).

As for notify on release, those are supposed to clean up old cgroups when the last process in the group dies - probably not that necessary on the n900 as we generally don't have users logging in/out that often.

thingonaspring 2011-06-09 16:51

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
From what I can figure out, the secret sauce is that instead of CFS enumerating 150-200 processes to decide who gets resources, it instead enumerates just 3-4 cgroups, reducing the scheduling load by a factor of 50.

thingonaspring 2011-06-10 08:31

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Un-nice - remove the "-n -8" from dsmetool when xorg runs. It doesn't really have any performance benefit, but by putting xorg back in the mix with all other tasks, it does at least cause the CPU scaling to drop to minimum more often, so it saves some power.

karam 2011-06-10 16:25

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Looks like i missed a lot of posts here

ok
1-) FOR the values provided by epitaph

i think just like thingonaspring those values are the most teweakable

echo "555555" > /dev/cgroup/cpu/cpu.rt_runtime_us
echo "600000" > /dev/cgroup/cpu/cpu.rt_period_us
echo "95M" > /dev/cgroup/cpu/user/memory.limit_in_bytes
echo "555555" > /dev/cgroup/cpu/user/cpu.rt_runtime_us
echo "600000" > /dev/cgroup/cpu/user/cpu.rt_period_us
echo "25M" > /dev/cgroup/cpu/desktop/memory.limit_in_bytes

although haven't tested them (and will not be able to until next year) :(

2-) for the deb
Mmm i think it will take a long time to get done (im extreamly busy these days) and i also asked for misiak to make it (with a gui for me) but he is lost these days (never goes online) idk why

MetalSer 2011-06-16 09:20

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Hi Karam and others. I installed this patch twice now (first removed old installation and then tested without the patch and then reinstalled the patch). I did not see any noticable difference. It is quite confusing as some report a huge difference. Just wanted to share this.

F2thaK 2011-06-16 09:21

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
it makes a big difference when stressing the CPU of the device

MetalSer 2011-06-16 09:31

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by F2thaK (Post 1030099)
it makes a big difference when stressing the CPU of the device

I understand this and when I test this. I do not see any difference.

prankster 2011-06-16 09:36

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
isnt just CSSU maemo15 is enough for a speedy-est N900 ?i wish if there was a patch for battery life enhancement or less cpu usage.in both cases power consumption would be less and N900 will be JF-17.

F2thaK 2011-06-16 10:32

Re: [ANNOUNCE] Script + Tweaks To Speed UP N900
 
Quote:

Originally Posted by MetalSer (Post 1030106)
I understand this and when I test this. I do not see any difference.

Youre not stressing it enough.


Quote:

Originally Posted by prankster (Post 1030109)
isnt just CSSU maemo15 is enough for a speedy-est N900 ?i wish if there was a patch for battery life enhancement or less cpu usage.in both cases power consumption would be less and N900 will be JF-17.

Enabling SMart Reflex is by far the best way to increase battery life


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

vBulletin® Version 3.8.8