You are not logged in.

#1 2009-04-08 11:32:46

chrispoole
Member
Registered: 2008-12-30
Posts: 121

[SOLVED] Speed increase with kernel compilation?

I'm planning on compiling my own kernel, to optimise as much as possible.

As a first step, I am planning on compiling the stock arch kernel from ABS, with the compiler flags for my CPU (core 2 duo), i686.

Am I likely to notice any kind of performance boost at all doing this, compared to what I assume is a standard compile to basic i686 instruction set in the arch repos?

Last edited by chrispoole (2009-04-08 17:13:07)

Offline

#2 2009-04-08 11:52:36

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [SOLVED] Speed increase with kernel compilation?

chrispoole wrote:

...Am I likely to notice any kind of performance boost at all doing this, compared to what I assume is a standard compile to basic i686 instruction set in the arch repos?

No...but there's no harm in ricing, so go for it. cool

Offline

#3 2009-04-08 12:38:49

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: [SOLVED] Speed increase with kernel compilation?

OK thanks.

To find out what modules I need to compile into the kernel, I just have to run lspci, lsusb and lsmod? (It's a core 2 duo laptop.)

Offline

#4 2009-04-08 12:42:53

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: [SOLVED] Speed increase with kernel compilation?

no, this will tell you what hardware you have (needed anyway if you want custom kernel). building completely static kernel will not speed up anything, addind some things to the kernel instead of building modules may save you few seconds (no miracles though)

Last edited by broch (2009-04-08 12:43:27)

Offline

#5 2009-04-08 13:21:52

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: [SOLVED] Speed increase with kernel compilation?

How are you planning on applying those CFLAGS?

The kernel specifies it's own CFLAGS in some Makefile somewhere, so you'd have to hack that to make it work...
You'd need some kind of patchset to be able to use your own custom CFLAGS for a kernel compile if you don't want to grep/hack for it yourself.


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#6 2009-04-08 13:48:57

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: [SOLVED] Speed increase with kernel compilation?

How are you planning on applying those CFLAGS?

I was naively thinking of the flags in makepkg.conf.

Offline

#7 2009-04-08 15:14:46

quetzyg
Member
From: /home/quetzyg
Registered: 2006-08-03
Posts: 129

Re: [SOLVED] Speed increase with kernel compilation?

chrispoole wrote:

OK thanks.

To find out what modules I need to compile into the kernel, I just have to run lspci, lsusb and lsmod? (It's a core 2 duo laptop.)

Just do:

lspci -k

to see what modules you need for every piece of hardware detected.


ZzZz...

Offline

#8 2009-04-08 15:57:07

RobertoVanto
Member
From: Chiampo(VI) - Italy
Registered: 2008-09-04
Posts: 32
Website

Re: [SOLVED] Speed increase with kernel compilation?

To find out what modules I need to compile into the kernel, I just have to run lspci, lsusb and lsmod?

http://kmuto.jp/debian/hcl/


Love, and do what thou wilt  - St. Augustine of Hippo

Offline

#9 2009-04-08 16:26:16

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: [SOLVED] Speed increase with kernel compilation?

Offline

#10 2009-04-08 17:12:53

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: [SOLVED] Speed increase with kernel compilation?

Thanks guys.

Offline

Board footer

Powered by FluxBB