Results 1 to 10 of 10

Thread: Kernel Troubles

  1. #1
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Kernel Troubles

    So, I'm now a (wannabe!) Gentoo User, and I'm working on building my own Kernel at the mo, I've got most of it sorted, but my main issue at the moment is that of CPU cores.

    I've created a kernel using Genkernel which I'm keeping as a backup incase I mess up every other kernel image I have, but I'm obviously after a more streamlined one, as the Genkernel one takes ages to boot!

    So, I've got it mostly sorted, but when I run htop all I see is 1 CPU instead of two seperate CPU graphs for each core in my CPU, if I run htop on my genkernel Kernel, I see two. I have the required options enabled as modules in my Kernel for having multi-core support (SMT (or SMP, possibly) Support is the option I'm after I think) - and yet I still just see one core. One thing I did notice however, when I looked in the help section for that SMT/SMP option is that it says I should also enable 'Enhanced Real Time Clock' - again, that name is from memory - I'm Kernel building at the mo so I can't check (I don't think), but I can't find that option anywhere - I even had a look in my .config file for any mentions of RTC, but didn't see an 'Enhanced' one anywhere.

    ...any ideas folks?

    Cheers!

    ...awesome, after I get this going, I've got to learn Portage, and also - why does OpenSSH-Server have LDAP as a dependency, grr!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  2. #2
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Kernel Troubles

    Quote Originally Posted by kidzer View Post
    So, I'm now a (wannabe!) Gentoo User, and I'm working on building my own Kernel at the mo, I've got most of it sorted, but my main issue at the moment is that of CPU cores.
    So, you'll be needing a Gentoo user then...

    *looks around*

    Nobody?..



    Quote Originally Posted by kidzer View Post
    I've created a kernel using Genkernel which I'm keeping as a backup incase I mess up every other kernel image I have, but I'm obviously after a more streamlined one, as the Genkernel one takes ages to boot!

    So, I've got it mostly sorted, but when I run htop all I see is 1 CPU instead of two seperate CPU graphs for each core in my CPU, if I run htop on my genkernel Kernel, I see two. I have the required options enabled as modules in my Kernel for having multi-core support (SMT (or SMP, possibly) Support is the option I'm after I think) - and yet I still just see one core. One thing I did notice however, when I looked in the help section for that SMT/SMP option is that it says I should also enable 'Enhanced Real Time Clock' - again, that name is from memory - I'm Kernel building at the mo so I can't check (I don't think), but I can't find that option anywhere - I even had a look in my .config file for any mentions of RTC, but didn't see an 'Enhanced' one anywhere.
    First make sure your CPU cores are detected by the kernel, cat /proc/cpuinfo will enumerate every CPU the kernel detects, just in case htop is being funny. Assuming you really are one CPU short of a happy meal, then make sure the following kernel options are 'y':
    CONFIG_SMP=y
    CONFIG_SCHED_MC=y

    If you have a Hyperthreading/Symetrical Multithreading type CPU (P4 Prescott/Pentium D/i7/etc), have CONFIG_SCHED_SMT=y was well, poke around Processor type and Features in menuconfig anyway, see if anything jumps out. Also pay attention to the Processor Family option. Handy that.

    Quote Originally Posted by kidzer View Post
    ...awesome, after I get this going, I've got to learn Portage, and also - why does OpenSSH-Server have LDAP as a dependency, grr!
    Disable the ldap useflag, it's set in make.profile. *edit* I should probably expand on this, edit /etc/make.conf and set USE="-ldap"

    If you're still stuck, pastebin the output of emerge --info and .config.
    Last edited by aidanjt; 01-12-2009 at 12:59 AM.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  3. #3
    Senior Member
    Join Date
    Oct 2009
    Location
    Ohio
    Posts
    319
    Thanks
    2
    Thanked
    10 times in 10 posts

    Re: Kernel Troubles

    Quote Originally Posted by kidzer View Post
    So, I'm now a (wannabe!) Gentoo Use...
    Have you thought about trying here for any support?

    http://forums.gentoo.org

  4. #4
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: Kernel Troubles

    @12GaugeShotty - yeah, I'm registered over there, but I've not posted yet - I had a search for similar issues but thought I'd post here first in the hope that aidanjt would see it and reply - I understand he has some experience with this particular brand of Penguin-based OS, turns out that plan worked!

    @aidanjt I had a look in my .config for those Kernel options, the last one you mentioned wasn't enabled, so I enabled it and built the kernel again, but still no luck.

    I'll pastebin that info at some point today, probably when I'm home from work, and I'll shove the link here.

    Cheers!

    Edit: /proc/cpuinfo confirms just the one core, I'll shove that up too.
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  5. #5
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Kernel Troubles

    kidzer: ah, and do me a big big big favour and grep out lines starting with # in your .config before pastebinning. `grep -v "#" .config`will do it. Cheers.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  6. #6
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: Kernel Troubles

    Right, here's my .config and the resulf of emerge --info:

    - http://pastebin.com/m1b0dc478
    - http://pastebin.com/m2f0a9271

    Cheers!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  7. #7
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: Kernel Troubles

    I may have a solution:

    voyager ~ # cat /usr/src/linux/.config | grep ACPI
    # Power management and ACPI options
    # CONFIG_ACPI is not set

    I read online ACPI is required for decent SMT support, otherwise the Kernel uses some unreliable old method of detecting CPUs/Cores, I've just enabled it and I'm compiling again, I'll test it tonight once I've finished emerging gnome - 219 packages to go, 62 to go!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  8. #8
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Kernel Troubles

    Yup, bingo. You'll be needing that alright. This is an AMD machine too right?.. Make sure ACPI Processor support is 'y', and, go into CPU Frequency Scaling and set 'y' to AMD Operon/Athlon64 PowerNow to save the planet while you're not burning a hole in the o-zone layer (emerging ), and set the default governor to ondemand. You'll definitely want to use the Deadline (more server/database tasks) or CFQ (Desktop) I/O schedulers, Anticipatory is awfully inefficient.

    Sorry about the delay, I was running around town.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  9. #9
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: Kernel Troubles

    No worries, its an Intel CPU on board this machine - but I've got some Intel-specific stuff enabled already.

    I'll fiddle about with all that once I've got both cores working on the Ozone Layer!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  10. #10
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Kernel Troubles

    Yeah the Intel chips uses ACPI CPUFreq, so 'y' that instead.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Debian Kernel Help
    By Agent in forum Software
    Replies: 2
    Last Post: 27-05-2008, 12:29 PM
  2. Replies: 1
    Last Post: 22-06-2006, 10:09 AM
  3. Replies: 7
    Last Post: 02-08-2005, 07:24 PM
  4. Linux kernel booted on Nintendo DS
    By Steve in forum HEXUS News
    Replies: 0
    Last Post: 06-05-2005, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •