You are not logged in.

#1 2011-03-26 13:41:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,675
Website

BFS patch for v0.363 that is optimized for per-cpu frequency scaling

Just as an FYI to fellow bfs junkies: CK has released a BFS patch for v0.363 that is optimized for per-cpu frequency scaling.  See CK's blog entry:

http://ck-hack.blogspot.com/2011/03/bfs … r-for.html


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2011-03-26 14:49:35

dakt
Member
From: Croatia
Registered: 2010-10-04
Posts: 67

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

I tought that he left kernel developement?,no?
Anyway, so far I haven't tried BFS aldough I heard that it gives better preformance on desktops...but is that true even after 2.6.38...not sure.

Offline

#3 2011-03-26 14:59:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,675
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

Left kernel dev?  No, just was focusing on his compression util temporarily.  If you read his blogs, CK doesn't think 'the patch that does wonders' does shit under sane computing conditions... who runs make -j100 and why optimize scheduling for insane circumstances anyway?!  Quad core = make -j4; dual core = make -j2, etc.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-03-26 15:41:21

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

Awesome, everything I need is up to 2.6.38 now: BFQ + CK + BFS + LOOP-AES.  Some patches were holding me back from updating..  Had to wait on BFQ and got impatient and stopped checking for updates.  This post spurred me to check and thankfully it's there, also glad I waited for this BFS test as hopefully it will help on my quad-core AMD.   Thanks for posting -- time to make a permanent upgrade from .36, finally (.37 was awful).

btw, a rule of thumb I always went by as far as `make -j' is cpu count + 1, as demonstrated by this ugly bash line:

# echo /sys/devices/system/cpu/cpu[^^] + | wc -w

Offline

#5 2011-03-26 20:42:41

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

I take it this will find it's way into kernel26-ck 2.6.38? *Fingers Crossed*

Offline

#6 2011-03-26 21:13:31

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

milomouse wrote:

Awesome, everything I need is up to 2.6.38 now: BFQ + CK + BFS + LOOP-AES.  Some patches were holding me back from updating..  Had to wait on BFQ and got impatient and stopped checking for updates.  This post spurred me to check and thankfully it's there, also glad I waited for this BFS test as hopefully it will help on my quad-core AMD.   Thanks for posting -- time to make a permanent upgrade from .36, finally (.37 was awful).

btw, a rule of thumb I always went by as far as `make -j' is cpu count + 1, as demonstrated by this ugly bash line:

# echo /sys/devices/system/cpu/cpu[^^] + | wc -w

OT: If you want bfq, I fixed it for 2.6.38.

http://sprunge.us/jLYB

And uhh...

echo $(( $(nproc) + 1 ))

Last edited by falconindy (2011-03-26 21:14:25)

Offline

#7 2011-03-26 21:44:04

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

what in fact your patch fixes?

Offline

#8 2011-03-26 22:02:53

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

[off-topic] (apologies)

falconindy wrote:

OT: If you want bfq, I fixed it for 2.6.38.

http://sprunge.us/jLYB

I didn't realize bfq was broken for 2.6.38?

falconindy wrote:

And uhh...

echo $(( $(nproc) + 1 ))

Sad to say I never knew about nproc, which I guess is considered more reliable than /sys files(?).  Hah, at least they both use the same amount of commands. tongue

Another OT:  (edited):  Turns out my problem with wifi is related to 'wext' driver in .38 where it worked fine in .36.  Now I'm using 'nl80211' and it works great.
[/off-topic]

By the way, system seems quite responsive as compared to my other kernel with older bfs and ck (2.6.36 series).  Compiled two kernels at once while browsing the web, playing a 720p video and editing/opened a good handful of documents without so much as a flicker in screen redraws when panning excessively between workspaces.  So far so good..

Last edited by milomouse (2011-03-27 15:28:07)

Offline

#9 2011-03-26 22:19:32

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

milomouse wrote:

Had to wait on BFQ and got impatient and stopped checking for updates

milomouse wrote:

I didn't realize bfq was broken for 2.6.38?

There's a conflict here, and there was a conflict in applying the old bfq patchset to 2.6.38. I just moved around some code.

milomouse wrote:

Sad to say I never knew about nproc, which I guess is considered more reliable than /sys files(?).  Hah, at least they both use the same amount of commands. tongue

Probably the only time I've ever used nproc, as well.

Offline

#10 2011-03-26 22:31:56

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,675
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

ANOKNUSA wrote:

I take it this will find it's way into kernel26-ck 2.6.38? *Fingers Crossed*

Did you read the release notes or changelog?  It made it in release -2.

http://aur.archlinux.org/packages.php?ID=32877

falconindy wrote:

OT: If you want bfq, I fixed it for 2.6.38.

http://sprunge.us/jLYB

What are you talking about?  It applies natively without error, no?

==> Patching source with BFQ patches
patching file block/Kconfig.iosched
patching file block/blk-ioc.c
patching file block/cfq-iosched.c
patching file fs/ioprio.c
patching file include/linux/iocontext.h
patching file block/Makefile
patching file include/linux/cgroup_subsys.h
patching file block/bfq-cgroup.c
patching file block/bfq-ioc.c
patching file block/bfq-iosched.c
patching file block/bfq-sched.c
patching file block/bfq.h

Last edited by graysky (2011-03-26 22:33:48)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2011-03-26 22:42:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

The sources I have must be out of date then... it was an impossible patch without fixing a few lines.

Offline

#12 2011-03-26 23:07:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,675
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

falconindy wrote:

The sources I have must be out of date then... it was an impossible patch without fixing a few lines.

Ah!  He didn't update his 'source' page at: http://algo.ing.unimo.it/people/paolo/d … ources.php

[DIR]    Parent Directory         -
[DIR]    2.6.32/    26-Aug-2010 07:34     -
[DIR]    2.6.33/    26-Aug-2010 07:34     -
[DIR]    2.6.34-zen1/    26-Aug-2010 07:35     -
[DIR]    2.6.34/    26-Aug-2010 07:31     -
[DIR]    2.6.35/    26-Aug-2010 07:28     -
[DIR]    2.6.36/    25-Oct-2010 08:00     -
[DIR]    2.6.37-v2-r1/    25-Mar-2011 17:15     -
[DIR]    2.6.37-v2/    25-Mar-2011 17:06     -


If you go to the following, they are there: http://algo.ing.unimo.it/people/paolo/d … es/2.6.38/

Last edited by graysky (2011-03-26 23:08:09)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2011-03-26 23:21:40

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: BFS patch for v0.363 that is optimized for per-cpu frequency scaling

@graysky:  Highlight and scroll down, the links are on source page too.  tongue  It's an inline frame, it appears, with scrollbar.

Last edited by milomouse (2011-03-26 23:24:32)

Offline

Board footer

Powered by FluxBB