You are not logged in.

#301 2011-06-23 13:42:38

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

ethail: Thanks! I did that!

Now what remains is that I have to get kernel26-ck running with elevate=bfq enabled on bootup...

Offline

#302 2011-06-23 14:10:27

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

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

elevate? I'm thinking is just a typo and you meant elevator, but just in case, the kernel boot option is:

elevator=bfq

Also, you could check on your kernel config if BFQ has been built checking for
CONFIG_IOSCHED_BFQ=y
if you're building the kernel and using some menu config it's on
Enable the Block Layer -->
    IO Scheduler-->
        BFQ IO Scheduler


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#303 2011-06-23 15:42:23

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

I am not building the kernel myself; I took it from the inofficial repo (see my post #296)!

Offline

#304 2011-06-23 15:46:27

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

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

@ethail - the pre-compiled packages do not have BFQ builtin but do include it as a module.  For more, see the kernel26-ck wiki page in my sig.


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

Offline

#305 2011-06-23 16:47:05

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

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

@graysky: I just realized that instead of writing "y or m" after copying the BFQ line of my kernel config, i left that unmodified.

@Stalafin: If you're using the precompiled package with BFQ as a module, using the right image should work.

Stalafin wrote:

[...]
I have done exactly what was stated in the wiki:
+ added bfq-iosched to MODULES= in /etc/mkinitcpio.conf
+ created a new image with mkinitcpio -p kernel26
[...]

As said before, that way seems you're not creating the right image because you're using the kernel26 preset instead of kernel26-ck. I'd suggest making a copy of mkinitcpio.conf and using it for kernel26-pf preset adding the module you need for kernel26-ck and not for kernel26. Generate the new image, and try elevator=bfq again.


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#306 2011-06-23 19:06:10

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

Yeah, I have put the wrongly. What I meant was:

+ I add bfq-iosched to MODULES=
+ I create a new image with mkinitcpio -p kernel-ck
+ I change /boot/grub/menu.lst, having kernel /boot/vmlinuz26-ck with the option elevator=bfq and also initrd /boot/kernel26-ck.img

If I try to boot into this the boot process hangs every time at this line:

io scheduler bfq registered (default)

Here I have to reboot and use a different kernel or boot the above kernel without the elevator=bfq option.

Offline

#307 2011-06-23 19:27:26

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

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

@Stalafin - right... don't use the elevator=bfq line at all.  Simply put a line in your /etc/rc.local that sets the scheduler for whatever HDD(s) you want.  See the wiki for an example.

I'm actually going to remove the elevator line on the wiki because it's not clear to me that it works without having the module in the ramdisk image which the package currently does not provide (a separate xxx.conf).

Last edited by graysky (2011-06-23 19:28:32)


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

Offline

#308 2011-06-23 20:14:39

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

@graysky: Alright, I am doing that now. Thanks for your input.

Do you know of a way to set up /etc/rc.local and /etc/rc.conf of a) probing bfq-iosched and b) putting bfq into /sys/bload/sd[a-z]/queue/scheduler only if kernel26-ck is loaded? I guess the latter I could do with a [[ ]] test, but I am not sure about the former.


EDIT: I really like the performance so far. It seems like it really did help watching youtube! :-D

Last edited by Stalafin (2011-06-23 20:15:24)

Offline

#309 2011-06-23 20:18:29

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

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

@stal -

/etc/rc.local can do that in with a $(uname -r) and grep for ck vs. not with the normal kernel.  Come to think of it, there is no reason why you need the the module in the MODULES array at all... you can have your [[ ]] test staement modprobe it if true and setup the scheduler all in /etc/rc.local.


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

Offline

#310 2011-06-24 10:11:34

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

@graysky:

[[ -n $(uname -r | grep -e '-ck') ]] && { modprobe bfq-iosched; echo bfq > /sys/block/sda/queue/scheduler; }

Seems like that works so far. :-)

Offline

#311 2011-06-24 11:02:17

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

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

Just installed 2.6.39-ck (not atom) on my Acer N270 atom and put this in my rc.local;

TID=$(date +%c)
KERN=$(uname -r)
if [ "$KERN" == "2.6.39-ck" ]; then
modprobe bfq-iosched
echo bfq > /sys/block/sdb/queue/scheduler
echo "$TID $KERN so started bfq for sdb" >> /var/log/slim.log
else
echo "$TID $KERN no bfq loaded" >> /var/log/slim.log
fi

Of course when "2.6.39" changes to "3.0" it will fail.
I think this is easier if you're having a couple of kernels installed, like the standard and lts arch kernels that don't have the bfq-iosched module at all. So, I don't have it built in the initrd for this machine nor do I have it activated on the kernel line. But it seems to work fine indeed.

Last edited by swanson (2011-06-24 11:07:51)

Offline

#312 2011-06-24 13:04:47

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

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

Why don't you just use the line I provided? I mean, obviously it could fail too, but at least you don't have to change rc.local every time the kernel updates (e.g. your line would not only break for 3.0 but also for 2.6.40 :-) ).

Offline

#313 2011-06-24 13:10:56

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

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

swanson, how about using just the localversion? smile

TID=$(date +%c)
KERN=$(uname -r | cut -d"-" -f2)
if [ "$KERN" == 'ck' ]; then
modprobe bfq-iosched
echo bfq > /sys/block/sdb/queue/scheduler
echo "$TID $KERN so started bfq for sdb" >> /var/log/slim.log
else
echo "$TID $KERN no bfq loaded" >> /var/log/slim.log
fi

Offline

#314 2011-06-24 14:49:56

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

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

@stalafin; didn't see your script until now.
@jokerboy; nice !

Offline

#315 2011-07-03 17:34:17

vladthedog
Member
Registered: 2010-12-03
Posts: 45

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

graysky, I'm getting the following error message when upgrading from the kernel26-ck repo:

:: File kernel26-ck-core2-1:2.6.39.2-1-x86_64.pkg.tar.xz is corrupted. Do you want to delete it? [Y/n]            [c o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  ]   0%
:: File kernel26-ck-core2-headers-1:2.6.39.2-1-x86_64.pkg.tar.xz is corrupted. Do you want to delete it? [Y/n]    [----------------------------------Co  o  o  o  o  o  o  o  o  o  o  ]  50%
(2/2) checking package integrity                                                                                  [--------------------------------------------------------------------] 100%
error: failed to commit transaction (invalid or corrupted package)
kernel26-ck-core2-1:2.6.39.2-1-x86_64.pkg.tar.xz is invalid or corrupted
kernel26-ck-core2-headers-1:2.6.39.2-1-x86_64.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.

Just an FYI.

Offline

#316 2011-07-04 11:18:55

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

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

@vlad - give it a try now.  (I really need shell account so I can check md5sums on the server).


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

Offline

#317 2011-07-04 14:34:16

vladthedog
Member
Registered: 2010-12-03
Posts: 45

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

perfect graysky.  Thanks for the quick fix smile

Offline

#318 2011-07-05 03:36:30

theringmaster
Member
From: Air Force
Registered: 2007-07-16
Posts: 581
Website

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

I just installed the kernel26-ck-k10, kernel26-ck-k10-headers, and the nvidia-ck-k10 packages from the repository. I edited the files needed for the bfq scheduler as stated in the wiki. Everything is perfect so far.. great job on this packages!

I'm curious though, can I remove the regular kernel26, kernel26-headers and the nvidia packages now? Also, how can I check whether nor not I am using the nvidia-ck-k10 module instead of the normal one. I have both installed and the Nvidia X server settings (gtk gui) doesn't seem be any different.


Check me out on twitter!!! twitter.com/The_Ringmaster

Offline

#319 2011-07-05 08:02:52

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

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

theringmaster wrote:

I just installed the kernel26-ck-k10, kernel26-ck-k10-headers, and the nvidia-ck-k10 packages from the repository. I edited the files needed for the bfq scheduler as stated in the wiki. Everything is perfect so far.. great job on this packages!

I'm curious though, can I remove the regular kernel26, kernel26-headers and the nvidia packages now? Also, how can I check whether nor not I am using the nvidia-ck-k10 module instead of the normal one. I have both installed and the Nvidia X server settings (gtk gui) doesn't seem be any different.

If you booted the ck-kernel, you're using the nvidia-ck driver. kernel26-ck loads its drivers from /lib/modules/2.6.*-ck/, so yes, you can remove kernel26, kernel26-headers and nvidia.

Offline

#320 2011-07-10 16:55:48

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

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

Hey graysky nice work on the repo, Just a question, does the kernel with core 2 flags work ok with new intel sandybridge cpus, or am i better off with the vanilla ck kernel.


Certified Android Junkie
Arch 64

Offline

#321 2011-07-10 17:26:04

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

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

smakked wrote:

Hey graysky nice work on the repo, Just a question, does the kernel with core 2 flags work ok with new intel sandybridge cpus, or am i better off with the vanilla ck kernel.

Sure does.  I added the info to the wiki page a while ago and also to the PKG descriptions themselves:

]$ pacman -Ss ck-core2
kernel26-ck/broadcom-wl-ck-core2 5.100.82.38-6 (ck-core2)
    Broadcom 802.11abgn hybrid Linux networking device driver for kernel26-ck. Intel Core2/Newer Xeon and Intel Core i3/i5/i7 optimized.
kernel26-ck/kernel26-ck-core2 1:2.6.39.3-1 (ck-core2) [installed]
    ARCH kernel with Brain Fuck Scheduler v0.406 and all the goodies in the ck2 patch set. Intel Core2/Newer Xeon and Intel Core i3/i5/i7 optimized.
kernel26-ck/kernel26-ck-core2-headers 1:2.6.39.3-1 (ck-core2) [installed]
    Header files and scripts to build modules for kernel26-ck. Intel Core2/Newer Xeon and Intel Core i3/i5/i7 optimized.
kernel26-ck/nvidia-ck-core2 275.09.07-1 (ck-core2) [installed]
    NVIDIA drivers for kernel26-ck. Intel Core2/Newer Xeon and Intel Core i3/i5/i7 optimized.

Enjoy!


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

Offline

#322 2011-07-10 22:04:59

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

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

Thanks

ALl working well no issues to report.


Certified Android Junkie
Arch 64

Offline

#323 2011-07-12 22:25:57

xclaude
Member
Registered: 2011-07-07
Posts: 17

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

Are there some dependencie errors?

[root@archlinux marcel]# yaourt -S ck-k10
:: Es sind 3 Mitglieder in der Gruppe ck-k10:
:: Repositorium kernel26-ck
   1) kernel26-ck-k10  2) kernel26-ck-k10-headers  3) nvidia-ck-k10

Geben Sie eine Auswahl ein (Voreinstellung=alle): 
Löse Abhängigkeiten auf...
Suche nach Zwischenkonflikten...

Pakete (3): kernel26-ck-k10-1:2.6.39.3-1  kernel26-ck-k10-headers-1:2.6.39.3-1  nvidia-ck-k10-275.09.07-1

Gesamtgröße des Downloads: 43,98 MB
Gesamtgröße der zu installierenden Pakete: 89,48 MB

Installation fortsetzen?  [J/n] n
[root@archlinux marcel]# yaourt -S ck-k8
:: Es sind 5 Mitglieder in der Gruppe ck-k8:
:: Repositorium kernel26-ck
   1) broadcom-wl-ck-k10  2) broadcom-wl-ck-k8  3) kernel26-ck-k8  4) kernel26-ck-k8-headers  5) nvidia-ck-k8

Geben Sie eine Auswahl ein (Voreinstellung=alle): 
Löse Abhängigkeiten auf...
Suche nach Zwischenkonflikten...
Fehler: Nicht lösbare Paketkonflikte gefunden
Fehler: Konnte den Vorgang nicht vorbereiten (In Konflikt stehende Abhängigkeiten)
:: broadcom-wl-ck-k10 und broadcom-wl-ck-k8 stehen miteinander in Konflikt

and when installing nvidia-ck-k8 before kernel-ck-k8 is installed, it depends on kernel26-ck (not on kernel26-ck-k8).
after installing kernel26-ck-k8 it will be detected as kernel26-ck and dependencies are o.k..
the same with broadcom-wl-ck-k8

[root@archlinux marcel]# yaourt -S ck-k8
:: Es sind 5 Mitglieder in der Gruppe ck-k8:
:: Repositorium kernel26-ck
   1) broadcom-wl-ck-k10  2) broadcom-wl-ck-k8  3) kernel26-ck-k8  4) kernel26-ck-k8-headers  5) nvidia-ck-k8

Geben Sie eine Auswahl ein (Voreinstellung=alle): 5
Löse Abhängigkeiten auf...
Suche nach Zwischenkonflikten...

Pakete (2): kernel26-ck-1:2.6.39.3-1  nvidia-ck-k8-275.09.07-1

Gesamtgröße des Downloads: 39,80 MB
Gesamtgröße der zu installierenden Pakete: 57,12 MB

Installation fortsetzen?  [J/n] n

Offline

#324 2011-07-12 22:41:03

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

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

Ack... I think I jacked-up the groups in the generic package and in the k8 and k10 packages...  the deal with the kernel26-ck thing is that I accidentally left in a provides statement in the kernel and headers package... I will fix this and repackage.  Thanks for the bug report wink

Last edited by graysky (2011-07-12 23:02:39)


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

Offline

#325 2011-07-13 23:04:01

Dethredic
Member
Registered: 2009-01-24
Posts: 361
Website

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

I am trying to update, but it says some of the packages are corrupted:

error: failed to commit transaction (invalid or corrupted package)
kernel26-ck-core2-1:2.6.39.3-1-x86_64.pkg.tar.xz is invalid or corrupted
kernel26-ck-core2-headers-1:2.6.39.3-1-x86_64.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.

Offline

Board footer

Powered by FluxBB