Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Patching With Galbaith's CFS Patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Galumph
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jul 2010
Posts: 122
Location: Israel

PostPosted: Mon Dec 27, 2010 7:27 pm    Post subject: Patching With Galbaith's CFS Patch Reply with quote

I've decided to try and patch my kernel, something I haven't done before. I grabbed a fresh .36.2 kernel, unpacked it, and moved it to /usr/src/:
Code:

Tux Downloads # tar -xf linux-2.6.36.2.tar.bz2
Tux Downloads # mv linux-2.6.36.2 /usr/src/linux-2.6

I've also got the patch from here, this is what my copy looks like, hopefully I've got it all.

What do I do now? I tried running `patch -p0 < CFS.patch` in /usr/src, but patch can't find 'linux-2.6/drivers/tty/tty_io.c'. Did some googling and had it patch 'linux-2.6/drivers/char/tty_io.c' instead.
Code:
Tux linux-2.6 # cp ../linux/.config ./
Tux linux-2.6 # make
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
scripts/basic/docproc.c: In function ‘docsect’:
scripts/basic/docproc.c:336:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
  HOSTCC  scripts/basic/hash
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig arch/x86/Kconfig
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Cross-compiler tool prefix (CROSS_COMPILE) []
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
  1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
> 3. LZMA (KERNEL_LZMA)
  4. LZO (KERNEL_LZO)
choice[1-4?]: 3
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [N/y/?] n
BSD Process Accounting (BSD_PROCESS_ACCT) [N/y/?] n
Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS) [N/y/?] n
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [Y/n/m/?] y
  Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [18] 18
Automatic process group scheduling (SCHED_AUTOGROUP) [N/y/?] (NEW)

I started the compilation process, and I get asked some questions. Answered yes for the first (to enable SCHED_AUTOGROUP), and the default for the rest. Compilation starts normally, it gives some warnings, and then stops shortly after (http://pastebin.com/YdDTxddW).
Have I missed something?
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7694
Location: Pelotas, BR

PostPosted: Sat Jan 01, 2011 1:47 am    Post subject: Reply with quote

Moved from Kernel & Hardware to Unsupported Software.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Jan 01, 2011 3:19 am    Post subject: Reply with quote

That patch is bad. If you're gonna patch the kernel for responsiveness, patch it with BFS.

Look at pf-sources.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3257
Location: Gainesville, Florida

PostPosted: Sat Jan 01, 2011 5:45 pm    Post subject: Reply with quote

Just read the "patch is bad" link PaulBredbury linked. Great stuff! 8)

From the perspective of the average desktop user, it's hard to argue with the logic expressed in the Con Kolivas blog. Everyone using various kernel patches and/or contemplating using cgroups should read this. Of course I'm biased, having been a big ck patches fan for years. :wink: I sure hope Con starts implementing this stuff in his 2.6.37 ck/bfs release, or it even appears in the mainstream kernel. I can't see any reason why we wouldn't want an option like this.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r5, gcc-9.2.0 kernel-5.3.6-gentoo-r1 USE=experimental
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Jan 02, 2011 12:01 pm    Post subject: Reply with quote

wrc1944 wrote:
Just read the "patch is bad" link PaulBredbury linked. Great stuff! 8)

From the perspective of the average desktop user, it's hard to argue with the logic expressed in the Con Kolivas blog. Everyone using various kernel patches and/or contemplating using cgroups should read this. Of course I'm biased, having been a big ck patches fan for years. :wink: I sure hope Con starts implementing this stuff in his 2.6.37 ck/bfs release, or it even appears in the mainstream kernel. I can't see any reason why we wouldn't want an option like this.


oh look:
BFS for 2.6.37-rc8 8O :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum