You are not logged in.

#451 2011-09-23 02:09:33

sossi
Member
From: Penang,Malaysia
Registered: 2011-01-17
Posts: 14

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Does bfq enable by default in repo packages? Because i don't make any changes but in kernel log it say bfq is default.

Offline

#452 2011-09-23 12:13:30

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

seems like bfq is not quite ready.

dmesg: http://pastebin.com/R813xB9a

Offline

#453 2011-09-23 19:18:20

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

sossi wrote:

Does bfq enable by default in repo packages? Because i don't make any changes but in kernel log it say bfq is default.

It should not be enabled by default.  Can someone else confirm?  I can't reboot right now or else I would smile


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

Offline

#454 2011-09-23 20:27:34

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 233
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

BFQ is no longer a module, I only enabled it from the kernel line on boot.


Proud Arch Linux user since 2007.

Offline

#455 2011-09-23 20:58:08

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 430

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

It's the default scheduler for both of my computers (kernel-ck-k8 x86_64, kernel-ck-atom i686), though it seems to have okay performance unlike last time I tried it.

Offline

#456 2011-09-24 01:20:01

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@twilight0 - correct, it is not a module, it is now available hardcoded as an option like the other 3.
@sossi and Zom - thanks for the info and for the confirmation.  I have fixed the minor PKGUBILD error that caused this in the 3.0.4-3 release (which just hit the AUR).  I will rebuilt for the repo and update accordingly.


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

Offline

#457 2011-09-24 08:33:32

sxe
Member
Registered: 2009-06-04
Posts: 103

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:
sossi wrote:

Does bfq enable by default in repo packages? Because i don't make any changes but in kernel log it say bfq is default.

It should not be enabled by default.  Can someone else confirm?  I can't reboot right now or else I would smile

I don't know exactly how to test it. Does this log mean its enabled by default?

sxe@main ~ $ dmesg |grep bfq
[    0.003175] Initializing cgroup subsys bfqio
[    1.185936] io scheduler bfq registered

Offline

#458 2011-09-24 09:06:27

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@sxe - no need, problem fixed with the 3.0.4-3 release.  FYI, "cat /sys/block/sda/queue/scheduler"


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

Offline

#459 2011-09-24 09:16:34

sxe
Member
Registered: 2009-06-04
Posts: 103

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Hi graysky, thx for the quick reply (and your work on packaging this of course).

Here is what i get:

sxe@main ~ $ sudo cat /sys/block/sdb/queue/scheduler
noop deadline [cfq] bfq

I guess this means that bfq is an option but not enabled for that device?

Is it still valid, that the preferred way to enable bfq for all devices you have to add "elevator=bfq" to your kernel line in menu.lst?

Last edited by sxe (2011-09-24 09:16:58)

Offline

#460 2011-09-24 09:39:59

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@sxe -

1) which version of the package are you using -- 3.0.4-1, 3.0.4-2, or 3.0.4-3? 
2) Did you compile it yourself from the AUR or download from the repo?

To answer your question, yes and refer to the wiki (link in my sig) for an alternative method.

Last edited by graysky (2011-09-24 09:40:34)


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

Offline

#461 2011-09-24 10:20:16

sxe
Member
Registered: 2009-06-04
Posts: 103

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Ah ok, the wiki says it all now. The last time i checked it, that information was missing. Thx

edit:

sxe@main ~ $ sudo cat /sys/block/sdb/queue/scheduler
Password:
noop deadline cfq [bfq]

works.

Last edited by sxe (2011-09-24 11:06:41)

Offline

#462 2011-09-24 12:20:14

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:

1) which version of the package are you using -- 3.0.4-1, 3.0.4-2, or 3.0.4-3?


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

Offline

#463 2011-09-24 15:27:31

sxe
Member
Registered: 2009-06-04
Posts: 103

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Ah sry, i thought that is not interisting anymore since i get it to work. I'm using the "repo-ck/linux-ck-corei7 3.0.4-3".

Offline

#464 2011-09-24 15:30:54

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@sxe - thanks for the info, just wanting to make sure my fix works on other cpu types.  I can only test core2 and generic here.


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

Offline

#465 2011-09-26 21:23:31

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Hi,
with an Intel Pentium SU4100 (link) should I install the linux-ck-core2 package or the linux-ck-p4?


Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#466 2011-09-26 21:36:02

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I am Gianluca wrote:

Hi,
with an Intel Pentium SU4100 (link) should I install the linux-ck-core2 package or the linux-ck-p4?

Dunno... what does the following command return for march and mtune?

gcc -c -Q -march=native --help=target | grep march
gcc -c -Q -march=native --help=target | grep mtune

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

Offline

#467 2011-09-27 09:27:48

I am Gianluca
Member
From: London, UK
Registered: 2011-05-22
Posts: 195

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

graysky wrote:
I am Gianluca wrote:

Hi,
with an Intel Pentium SU4100 (link) should I install the linux-ck-core2 package or the linux-ck-p4?

Dunno... what does the following command return for march and mtune?

gcc -c -Q -march=native --help=target | grep march
gcc -c -Q -march=native --help=target | grep mtune

Them give me:

[gianluca@gianluca-laptop ~]$ gcc -c -Q -march=native --help=target | grep march
  -march=                     		core2
[gianluca@gianluca-laptop ~]$ gcc -c -Q -march=native --help=target | grep mtune
  -mtune=                     		core2

Laptop: Acer Aspire S3 | Linux Mint Cinnamon 64-bit

Offline

#468 2011-09-27 12:21:44

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

The latest version is not playing nice:

$ sudo cat /sys/block/sdb/queue/scheduler
cat: /sys/block/sdb/queue/scheduler: No such file or directory

$ sudo echo bfq > /sys/block/sda/queue/scheduler
bash: /sys/block/sda/queue/scheduler: Permission denied

$ pacman -Qs linux-ck
local/linux-ck-corei7 3.0.4-3 (ck-corei7)

I already have it set to enable from GRUB2 as well.

Offline

#469 2011-09-27 13:08:29

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 430

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

b9anders wrote:

The latest version is not playing nice:

$ sudo cat /sys/block/sdb/queue/scheduler
cat: /sys/block/sdb/queue/scheduler: No such file or directory

Do you have a device called sdb then?

b9anders wrote:

$ sudo echo bfq > /sys/block/sda/queue/scheduler
bash: /sys/block/sda/queue/scheduler: Permission denied

Redirects like these don't work with sudo.

b9anders wrote:

$ pacman -Qs linux-ck
local/linux-ck-corei7 3.0.4-3 (ck-corei7)

I already have it set to enable from GRUB2 as well.

Good for you. You didn't post how you enabled it from GRUB2 though, so we don't know whether you did it correctly or not.

FWIW, it works just fine here with atom- and k8-kernels.

Offline

#470 2011-09-27 17:20:05

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Zom wrote:
b9anders wrote:

The latest version is not playing nice:

$ sudo cat /sys/block/sdb/queue/scheduler
cat: /sys/block/sdb/queue/scheduler: No such file or directory

Do you have a device called sdb then?

Weird, I am sure I simply copypasted the command from the wiki to terminal (and from there to here). My fault of course for not looking at it properly.

It gives the expected output with sda in place of sdb.

Redirects like these don't work with sudo.

And that would explain why this didn't work. Works just fine from root.

Two unrelated mistakes here to create one mistaken impression.

Thanks for the clearup.

Last edited by b9anders (2011-09-27 17:20:46)

Offline

#471 2011-09-27 20:24:40

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@I am Gianluca - looks like you want the core2 packages.


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

Offline

#472 2011-09-27 21:48:09

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Hello graysky or anyone who can answer this,

I had read a lot about these patches the linux-ck kernel uses and that it would improve performance. I have since recently installed it and thanks to the wiki I succeeded immediately (first time using a non-stock kernel, on any distro) but, I don't really notice any improvements. Could someone perhaps elaborate on exactly what improvements I could expect and what not? I'm sorry if the answers are available out on the web already, but most Google searches turned on pages with all sorts of terms and language I don't understand, so I'm asking here hoping someone could explain it on a somewhat noob-proof level.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#473 2011-09-27 23:04:01

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 430

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Unia wrote:

Hello graysky or anyone who can answer this,

I had read a lot about these patches the linux-ck kernel uses and that it would improve performance. I have since recently installed it and thanks to the wiki I succeeded immediately (first time using a non-stock kernel, on any distro) but, I don't really notice any improvements. Could someone perhaps elaborate on exactly what improvements I could expect and what not? I'm sorry if the answers are available out on the web already, but most Google searches turned on pages with all sorts of terms and language I don't understand, so I'm asking here hoping someone could explain it on a somewhat noob-proof level.

Most of the improvements aren't actually regarded to performance. They're there to make your desktop more responsive. This isn't a magic patch that makes your CPU go into a hidden turbo mode, it just prioritizes stuff differently.

The best way to test it IMO is to try doing many things at once. Start a compile, some music, and try watching a flash video. Your desktop should still be responsive. Heck, you can start 64 make jobs and still watch a movie without any real effect on the viewing experience. That said, the performance must come from somewhere, so while CFQ (probably) would finish that compile faster, it would also make the movie stutter, drop frames or hang (most likely the latter).

There's also some improvements regarding battery life, but most of the patch is geared towards a responsive desktop rather than anything else.

That said, even though the focus is primarily towards responsiveness, I haven't actually noticed any drawback in performance, things like compile times. In theory, they should be a bit longer, since they can no longer hog the CPU as they'd like.

This is just AFAIK of course, so I could be pretty damn wrong. I'm sure someone will set me straight then. smile

Offline

#474 2011-09-28 11:16:34

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Oh I see.. but I never do that many stuff at once lol will use it some longer to see if I notice anything worth keeping it for! Thank you smile


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#475 2011-09-29 06:39:41

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

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Unia - Compiling anything + web browsing is enough reason to use BFQ.  If you're on a laptop, that alone is enough reason to use BFS (better battery life).  Using any multithread app such as video encoding is enough reason to use BFS.


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

Offline

Board footer

Powered by FluxBB