Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NR_CPUS & Timer Freq. Problem
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
ma-fra
n00b
n00b


Joined: 28 May 2008
Posts: 8

PostPosted: Thu Jul 10, 2008 2:53 pm    Post subject: NR_CPUS & Timer Freq. Problem Reply with quote

Hi,

I wish I could have any explainations about a strange (to me) behavior when setting these kernel parameters.

My .config created by genkernel sets 4 cpus with 100Hz timer freq. and this was ok except for a midi sequencer (rosegarden)
who was complainig about this 100Hz setting. So, I tried to move it to 1000Hz and, at the same time, I decided to reduce the
CPU nr. to 2 (I have ONE Pentium4).

For some time I damned myself trying to understand why in this configuration during startup sequence udevd was not able to
communicate with my sata hardware (after sume time it gave up and I had my SATA disk missing - Linux is on hda and everything else was ok).

I thought it was because of other kernel setting changes, scsi or sata driver missing and so on, but, after weeks of kernel recompilations
I discovered the ONLY responsable parameters are the first two ones I reported above.

The situation is this:

with 4 cpu's everything works with any frequency (100 to 1000Hz).
with 2 or 3 cpu's with some frequency set I have just problems with udevd and SATA, with others I'm not even able to boot the system
because it starts to dump CPU1 registry and loop indefinitely (until i press RESET)

Any reason for this?
Back to top
View user's profile Send private message
jhohwie
n00b
n00b


Joined: 10 Jul 2006
Posts: 18
Location: germany

PostPosted: Fri Jul 11, 2008 8:53 am    Post subject: Reply with quote

if you want to check how many cpus linux recognizes do:
Code:
$ cat /proc/cpuinfo


or have a look at this:
Code:
$ uname -a
Linux sid 2.6.25-tuxonice-r4 #1 Mon May 19 12:30:13 CEST 2008 i686 Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux


the number behind the '#' shows the number of cpus.

Generally for Intel Pentium you will be fine with a frequency at 1000Hz. It also recommend to make sure
ACPI is enabled. Check if there is /proc/acpi/ with content. If not, try to enable ACPI by adding
'acpi=force' to the kernel line in grub.

The problem with sata: you have to choose the right kernel options. Play with CONFIG_ATA. maybe you have to disable some in CONFIG_IDE.

hth,
joerg
Back to top
View user's profile Send private message
ma-fra
n00b
n00b


Joined: 28 May 2008
Posts: 8

PostPosted: Fri Jul 11, 2008 11:08 am    Post subject: Reply with quote

I have one Pentium4 and system reports 2 cpu working (I can see them with top command) but I cannot reduce NR_CPUS parameter in .config from 4 to neither 3 nor 2 (without changing anything else but Timer frequency).


I recompiled with all the possible combinations: 2 cpu 100hz, 2 cpu 250hz, 2 cpu 350hz, 2 cpu 1000hz, 3 cpu 100 hz .....

some of these configurations boot without sata disk, others crash during booting sequence

that's the strange to me, I'm not changing anything else (sata driver, ACPI and so on) 4 cpu work, less no!
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