View Full Version : BFS in Fedora 16
Zerix01
11-25-11, 06:58 PM
Does anyone know of a repo that will give me a kernel using BF scheduler in Fedora?
I'm back to running the F@H GPU client in Linux and I NEED BFS in order to get the right speed out of it.
thideras
11-26-11, 01:15 PM
From what I can tell, you need to patch the kernel and then build from source.
http://ck.kolivas.org/patches/bfs/
I'm not sure if BFS is selectable with a clean kernel.
Zerix01
11-27-11, 11:19 AM
Ok I am very stuck on this patching thing.
I started to follow these instructions
http://www.howopensource.com/2011/08/how-to-install-compile-linux-kernel-3-0-in-fedora-15-and-14/
But I downloaded a 3.1.0 kernel on my own. I only went as far as extracting the source to /usr/src/ since the patching should be done before the compiling.
Then I'm following these for the patching
http://www.howopensource.com/2011/08/how-to-upgrade-or-patch-latest-kernel-3-0-in-ubuntu-and-fedora/
I'm not sure if I downloaded the correct patch or what now. I just went with the general CK patch, more specifically 3.1.0-ck1-broken-out.tar.bz2. I don't know what he difference between the broken out one and the other one.
Then I get this
[zerix01@Deepthought linux-3.1]$ sudo bzcat /mnt/md0/kernel/3.1.0-ck1-broken-out.tar.bz2 | patch -p1
[sudo] password for zerix01:
patching file mm/page-writeback.c
patching file kernel/Kconfig.preempt
patching file include/linux/swap.h
patching file mm/memory.c
patching file mm/swapfile.c
patching file mm/vmscan.c
patching file include/linux/sched.h
Hunk #1 FAILED at 1600.
Hunk #2 FAILED at 1647.
2 out of 2 hunks FAILED -- saving rejects to file include/linux/sched.h.rej
can't find file to patch at input line 214
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux-3.1-ck/kernel/sched_bfs.c
|================================================= ==================
|--- linux-3.1-ck.orig/kernel/sched_bfs.c 2011-11-03 14:44:23.000000000 +1100
|+++ linux-3.1-ck/kernel/sched_bfs.c 2011-11-03 14:46:02.157115770 +1100
--------------------------
File to patch:
So I see what look like failures and it is prompting me for a file to patch. So now what?
Shelnutt2
11-29-11, 09:29 PM
you should be in the /usr/src/folderwithkernel/ when applying the patch. Is that were you are?
Try -p0 also.
If you still can't get it I'll tar and upload 3.0.4 ck kernel sources as I have those installed but not using them in funtoo.
Just in case:
http://www.dccontests.com/sites/dccontests.com/files/linux-3.0.4-ck.tar.xz
RJARRRPCGP
12-04-11, 03:44 PM
Ok I am very stuck on this patching thing.
I started to follow these instructions
http://www.howopensource.com/2011/08/how-to-install-compile-linux-kernel-3-0-in-fedora-15-and-14/
But I downloaded a 3.1.0 kernel on my own. I only went as far as extracting the source to /usr/src/ since the patching should be done before the compiling.
Then I'm following these for the patching
http://www.howopensource.com/2011/08/how-to-upgrade-or-patch-latest-kernel-3-0-in-ubuntu-and-fedora/
I'm not sure if I downloaded the correct patch or what now. I just went with the general CK patch, more specifically 3.1.0-ck1-broken-out.tar.bz2. I don't know what he difference between the broken out one and the other one.
Then I get this
[zerix01@Deepthought linux-3.1]$ sudo bzcat /mnt/md0/kernel/3.1.0-ck1-broken-out.tar.bz2 | patch -p1
[sudo] password for zerix01:
patching file mm/page-writeback.c
patching file kernel/Kconfig.preempt
patching file include/linux/swap.h
patching file mm/memory.c
patching file mm/swapfile.c
patching file mm/vmscan.c
patching file include/linux/sched.h
Hunk #1 FAILED at 1600.
Hunk #2 FAILED at 1647.
2 out of 2 hunks FAILED -- saving rejects to file include/linux/sched.h.rej
can't find file to patch at input line 214
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux-3.1-ck/kernel/sched_bfs.c
|================================================= ==================
|--- linux-3.1-ck.orig/kernel/sched_bfs.c 2011-11-03 14:44:23.000000000 +1100
|+++ linux-3.1-ck/kernel/sched_bfs.c 2011-11-03 14:46:02.157115770 +1100
--------------------------
File to patch:
So I see what look like failures and it is prompting me for a file to patch. So now what?
Looks like wrong patch or kernel sources. I gotten the "hunk FAILED" and "saving rejects to file" bull before with Debian Lenny in 2010 until I got different files. I wouldn't be surprised if it's a wrong or bad patch file.
When I was adding RT support to Debian Lenny in June, 2010.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.