Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel settings: core i5 760
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 40

PostPosted: Mon Dec 02, 2013 7:17 pm    Post subject: Kernel settings: core i5 760 Reply with quote

Am I supposed to use Core 2/newere xeon, or just the generic 64 bit? What difference will it make?

Also, since I have 4 cores, is it correct to use the CFLAG -j5 ? Can I get away with more?

thank you in advance for replies
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Mon Dec 02, 2013 9:19 pm    Post subject: Re: Kernel settings: core i5 760 Reply with quote

pertplus wrote:
Am I supposed to use Core 2/newere xeon, or just the generic 64 bit? What difference will it make?

impacts on the -march / -mtune gcc options used when building the kernel.
pertplus wrote:
Also, since I have 4 cores, is it correct to use the CFLAG -j5 ? Can I get away with more?

Depends on the scheduler you use. The worse the scheduler, the more you should get away with.
If using BFS, stick to -j4 with your 4 cores.
If using CFS, starts from -j5 and increase... who knows ?
_________________
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Dec 02, 2013 9:25 pm    Post subject: Re: Kernel settings: core i5 760 Reply with quote

pertplus wrote:
Am I supposed to use Core 2/newere xeon, or just the generic 64 bit?
"Core 2/Newer Xeon" is the better choice for Core i5.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Mon Dec 02, 2013 10:47 pm    Post subject: Reply with quote

if CPU supports HyperThreading:
j = (cores number * 2) +1
otherwise
j = cores number +1
In your case it is 5.

I have for similar CPU "Core 2/newer" set in config
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 40

PostPosted: Tue Dec 03, 2013 3:27 pm    Post subject: Reply with quote

thank you for the replies.

I will leave it as -j5 since I have 4 cores and no hyperthreading.

I would like to try increasing it, but realistically would I even be able to notice any difference by watching code compile? Is there some kind of tool that I could use to check efficiency on -j5 vs -j6?
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Dec 03, 2013 3:35 pm    Post subject: Reply with quote

pertplus wrote:
I would like to try increasing it, but realistically would I even be able to notice any difference by watching code compile? Is there some kind of tool that I could use to check efficiency on -j5 vs -j6?

I use qlop from app-portage/portage-utils
_________________
Back to top
View user's profile Send private message
pertplus
n00b
n00b


Joined: 20 Jun 2011
Posts: 40

PostPosted: Tue Dec 03, 2013 3:35 pm    Post subject: Reply with quote

hmm I will check it out thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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