maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   BFS for the power kernel (https://talk.maemo.org/showthread.php?t=58780)

coreyoconnor 2010-07-20 06:23

BFS for the power kernel
 
Hi all!
I have completed a first attempt at applying the BFS scheduler patch to both the power and the stock 2.6.28-omap1 kernel.

The debian files here:
http://coreyoconnor.com/downloads/
Will install the equivalent of the latest kernel-power + BFS patches. This can be installed over kernel-power just fine; The package manager will consider it an update.

The patch for the stock kernel is located at:
http://coreyoconnor.com/downloads/ke...6.28-bfs.patch

I will be packaging up the patch for kernel-power shortly.

For me kernel-power + BFS works great. Still, since I just got this working only apply if you are OK reflashing your device if something goes wrong. This will uninstall in the same way as kernel-power.

The basic procedure for patching the stock kernel is similar to what is listed here:
http://natisbad.org/N900/n900-custom-kernel.html

suppose your stock kernel source is in the directory kernel-2.6.28-stock and the patch file is copied to the same directory then the procedure is
Code:

host# cd kernel-2.6.28-stock
host# patch -p1 < kernel-2.6.28-bfs.patch

At this point all patches should be applied OK. If not, well, something went wrong and you should let me know.

Now switch to the kernel-2.6.28-stock within the scratchbox environment
Code:

[sbox-FREMANTLE_ARMEL: ~/kernel-2.6.28-stock] > make rx51_defconfig
[sbox-FREMANTLE_ARMEL: ~/kernel-2.6.28-stock] > make oldconfig
[sbox-FREMANTLE_ARMEL: ~/kernel-2.6.28-stock] > make

This should build the kernel and all required modules just fine.

I'm going to leave the instructions incomplete. If you've flashed a kernel and updated the kernel modules on your device you should be fine. Otherwise.. try it with the stock kernel first!

How to package this up into a deb? Any pointers?

UPDATE
I have uploaded deb packages that are equivalent to the latest kernel-power packages plus the bfs patches.

dchky 2010-07-20 10:56

Re: BFS scheduler for N900
 
Where are your benchmarks? Unless this patch makes things perceptibly faster, (and subjective is not a good enough metric) then what is the point?

coreyoconnor 2010-07-20 15:08

Re: BFS scheduler for N900
 
Ask the Android kids what the point is.

Plus, if you had read up on BFS you'd know it's goal is to reduce latency and benchmarking latency is much harder than the typical benchmarking of a single process performance. Which is what most benchmarks tests. Good for testing overclocking, doesn't tell you much of anything in this case. I can think of a few good latency tests but the error bounds may be quite high. Unless somebody has a robot to push buttons for me....

Single process benchmarks, like a web browser javascript benchmark, are easy to schedule. So the difference between CFS and BFS should be negligable. Still, i might as well run a few. what benchmarks would you like to see?

One subjective difference that is significant enough to, IMO, be interesting is: the speed of my interactions with the phone are not diminished significantly when i am installing an application in the background. Not even the silly little graphical effects.

dwaradzyn 2010-07-20 15:53

Re: BFS scheduler for N900
 
It would be really cool it this was incorporated into Power kernel. Is it possible to have more than one scheduler in one kernel and doing a switch (not necessarily in runtime but after a reboot maybe).

When n900 is on high load its responsiveness leaves a great deal to be desired. Its even worse when it is overclocked. It sometimes (ie after installing an app in HAM) stalls for 30 or more seconds not responding to any user activity. I would like to test if and how BFS affects that but I really don't want to loose Power kernel features.

coreyoconnor 2010-07-20 16:16

Re: BFS scheduler for N900
 
Agreed. Integrating this patch into the power kernel would be great. I haven't checked out the power kernel patches yet, but I suspect they are largely orthogonal to this patch and should integrate easily.

coreyoconnor 2010-07-27 17:30

Re: BFS for the power kernel
 
I added the voltage scaling patch referenced here:
http://omappedia.org/wiki/Patches_be..._yet_submitted

The debs can be found at:
http://www.tothepowerofdisco.com/downloads/

I am going to try to apply the patches under the "smart reflex fixes" heading next. No idea if these, or even the vp force patch, make any difference at all.

dwaradzyn 2010-07-27 17:37

Re: BFS for the power kernel
 
What about the other way - ask Titan to include BFS into Power Kernel. I do not think forking his job and creating new kernel line is advantageous. He recently corrected fcam-drivers in his kernel. Are you sure you want to maintain separate kernel line?

coreyoconnor 2010-07-27 17:53

Re: BFS for the power kernel
 
This kernel is a branch of the git repository for Titan's kernel. :) So eventual inclusion should be easy.

The biggest reason I haven't been able to even send patches to Titan is that I am a git newbie and my repository is a mess! I'm not really even sure how to spit out patches O_o

Some other reasons tho:
  1. I would like somebody (besides me) to test the kernel.
  2. Preferably create a garage project so people can test changes that haven't been migrated to Titan's.

Um.. I think that's it! Thoughts?

Tiboric 2010-07-27 18:00

Re: BFS for the power kernel
 
will try this now... let you know how I do,

Bratag 2010-07-27 18:02

Re: BFS for the power kernel
 
I will give this a shot and run linpack benchmarks pre/post.

http://www.phoronix.com/scan.php?pag...nchmarks&num=1

For those who have no idea what this is about.

Connor - looks like you have used ver 38 rather than 37 of Titans kernel - is that correct?


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

vBulletin® Version 3.8.8