You are not logged in.
ethail: Thanks! I did that!
Now what remains is that I have to get kernel26-ck running with elevate=bfq enabled on bootup...
Offline
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
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
I am not building the kernel myself; I took it from the inofficial repo (see my post #296)!
Offline
@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 packages • Zsh and other configs
Offline
@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.
[...]
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.
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
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
@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 packages • Zsh and other configs
Offline
@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
@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 packages • Zsh and other configs
Offline
@graysky:
[[ -n $(uname -r | grep -e '-ck') ]] && { modprobe bfq-iosched; echo bfq > /sys/block/sda/queue/scheduler; }
Seems like that works so far. :-)
Offline
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
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
swanson, how about using just the localversion?
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
Arch64/DWM || My Dropbox referral link
Offline
@stalafin; didn't see your script until now.
@jokerboy; nice !
Offline
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
@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 packages • Zsh and other configs
Offline
perfect graysky. Thanks for the quick fix
Offline
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
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
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
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 packages • Zsh and other configs
Offline
Thanks
ALl working well no issues to report.
Certified Android Junkie
Arch 64
Offline
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
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
Last edited by graysky (2011-07-12 23:02:39)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
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