Skip to contentSkip to conversation

Does this config optimally fit my Hardware?

Xenomai-help jmf 2 participants 2 messages Jul 14, 2010 – Jul 15, 2010

lore
Share & tools
lore

jmf

author
#0 lore raw

Dear all,

I've set up a Xenomai system with Ubuntu 10.04 32bit/2.6.32-21/2.5.3 and everything seems to be fine (I'm new to Linux and RT anyway). However, I'd like to make sure that the kernel config is optimally adapted to my hardware (Intel Atom board, 945GCLF2, 4 cores with Hyperthreading, one RT thread only runs on CPU 1, the others are free).

I'm especially unsure about the timers/clocks, whether 8254, TSC, the counter on the LAPIC or HPET will be used and what would be preferable (HPET rather than TSC?). Btw, on startup I also get "MT-Bios Bug: 8264 timer not connected to IO-APIC". Could anyone tell me if my config fits my hardware?

User-space support with default options:

--enable-x86-tsc TRUE
--enable-smp FALSE

Kernel config:

CONFIG_HPET_TIMER y (HPET enabled in BIOS) CONFIG_HIGH_RES_TIMERS y
CONFIG_XENO_HW_SMI_WORKAROUND y
CONFIG_SMP y
CONFIG_CPU_FREQ false ("# CONFIG_CPU_FREQ is not set") CONFIG_APM false ("# CONFIG_APM is not set") CONFIG_ACPI_PROCESSOR false ("# CONFIG_ACPI_PROCESSOR is not set") CONFIG_ACPI y
CONFIG_SCHED_SMT y
CONFIG_INPUT_PCSPKR m (?)
CONFIG_PCSPKR_PLATFORM y
CONFIG_X86_LOCAL_APIC y
CONFIG_X86_IO_APIC y
CONFIG_X86_TSC y

(tell me when I should post the complete config file)

#1 lore raw
Quoted 8 lines · jmf

Dear all,

I've set up a Xenomai system with Ubuntu 10.04 32bit/2.6.32-21/2.5.3 and everything seems to be fine (I'm new to Linux and RT anyway). However, I'd like to make sure that the kernel config is optimally adapted to my hardware (Intel Atom board, 945GCLF2, 4 cores with Hyperthreading, one RT thread only runs on CPU 1, the others are free).

Quoted 4 lines

I'm especially unsure about the timers/clocks, whether 8254, TSC, the counter on the LAPIC or HPET will be used and what would be preferable (HPET rather than TSC?). Btw, on startup I also get "MT-Bios Bug: 8264 timer not connected to IO-APIC". Could anyone tell me if my config fits my hardware?

Xenomai only know two timer sources, the 8254 and the LAPIC. LAPIC is better. The choice is made at compilation time. So, if LAPIC is enabled and Xenomai works, it means that Xenomai is happily using the LAPIC and that your configuration is optimal with regard to timer sources.

As for the clock sources, the two possible ar 8254 and TSC. Again, if your kernel has TSC enabled and Xenomai starts, it means that it is using it.

So, the reste of the options (HPET, etc...) only affect non real-time processes.

Quoted 5 lines

User-space support with default options:

--enable-x86-tsc TRUE
--enable-smp FALSE

You can probably enable --enable-x86-sep for better performances.

Quoted 6 lines

Kernel config:

CONFIG_HPET_TIMER y (HPET enabled in BIOS)
CONFIG_HIGH_RES_TIMERS y
CONFIG_XENO_HW_SMI_WORKAROUND y

Ok. Be sure that this option does not cause any problem before activating it (see the TROUBLESHOOTING guide).

If you are worried about performances, please be sure to disable any Xenomai and I-pipe debugging options.

Quoted 13 lines

CONFIG_SMP y
CONFIG_CPU_FREQ false ("# CONFIG_CPU_FREQ is not set") CONFIG_APM false ("# CONFIG_APM is not set") CONFIG_ACPI_PROCESSOR false ("# CONFIG_ACPI_PROCESSOR is not set") CONFIG_ACPI y
CONFIG_SCHED_SMT y
CONFIG_INPUT_PCSPKR m (?)
CONFIG_PCSPKR_PLATFORM y
CONFIG_X86_LOCAL_APIC y
CONFIG_X86_IO_APIC y
CONFIG_X86_TSC y

(tell me when I should post the complete config file)

Signature · 1 line
					    Gilles.