All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xenomai-help] Very high latencies under stress testing
@ 2010-10-23 14:54 edward.robbins
  2010-10-23 15:37 ` Gilles Chanteperdrix
  2010-10-23 16:13 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 38+ messages in thread
From: edward.robbins @ 2010-10-23 14:54 UTC (permalink / raw)
  To: xenomai

Forgot to copy the list:


Okay, so smi.c does not appear to contain my the PCI ID of my LPC chip. Motherboard has intel GS45 chipset, and "lspci -nn" says:

00:1f.0 ISA bridge [0601]: Intel Corporation ICH9M-E LPC Interface Controller [8086:2917] (rev 03)

Is this what I'm looking for? (What has ISA got to do with this?)

This PCI ID is not defined in either include/linux/pci_ids.h or include/asm-generic/xenomai/pci_ids.h, although there are these entries:

PCI_DEVICE_ID_INTEL_ICH9_7        0x2916
PCI_DEVICE_ID_INTEL_ICH9_8        0x2918

So I guess I should add 

#define PCI_DEVICE_ID_INTEL_ICH9_9        0x2917 

to xenomai/pci_ids.h, then add this define to smi.c, and see if magic happens?

Thanks for walking me through this!

Edward

On Saturday, 23 October, 2010 3:10pm, "Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org> said:

> edward.robbins@domain.hid wrote:
>> Oh no...
>>
>> dmesg | grep SMI
>>
>> CPU0: Thermal monitoring handled by SMI CPU1: Thermal monitoring
>> handled by SMI
>>
>> So I guess that didn't work? I have used the 'Globally disable SMIs
>> option' at kernel config time.... there is an option in  the BIOS to
>> disable SMI but I was having problems with it... will investigate.
>> Any other options?
> 
> See:
> http://www.xenomai.org/index.php/Configuring_x86_kernels#In_case_of_high_latencies
> 
> Note that if SMIs are involved in regulating temperature on your system,
> disabling them may cause your CPU to overheat. So, when running dohell,
> you should check the CPU temperature.
> 
> --
>                                                                 Gilles.
>



^ permalink raw reply	[flat|nested] 38+ messages in thread
* [Xenomai-help] Very high latencies under stress testing
@ 2010-08-13 14:17 edward.robbins
  2010-08-13 14:35 ` Gilles Chanteperdrix
  2010-08-13 14:40 ` Philippe Gerum
  0 siblings, 2 replies; 38+ messages in thread
From: edward.robbins @ 2010-08-13 14:17 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 6557 bytes --]

Hello all,

I have just set up my first xenomai system, and though I believe I have followed most of the guidelines, if I run latency it sits at around 8uS max, until I run something to stress the system (e.g. startx, or killing the x server) when it jumps to 700-800uS.

I wonder if this is to do with graphics? I have set "NoAccel" in the driver section of Xorg.conf (I am using fbdev). I also notice that latencies go massive (e.g. 4200uS) the first time I run glxgears. "glxinfo" reports "Direct rendering: no".

This is a core 2 duo system (MEN F19P cPCI) with ICH9M-SFF chipset. I am running debian (lenny) and have followed the guide in the wiki (here: http://www.xenomai.org/index.php/Building_Debian_packages) to install kernel 2.6.32.15 and xenomai 2.5.4. I have made the following selections for kernel configuration in order to try and prevent latency issues:

Processor type and features:
         Enable interrupt pipeline
         Enable high resolution timer support
         Disable dell laptop support
         Processor family --> Core 2/Newer Xeon
         Preemption model --> Preemptible kernel (low latency desktop)

Bus options (PCI etc):
         Disable PCI express hotplug driver
         Disable message signalled interrupts (MSI and MSI-X)
         Disable PCCard (PCMCIA/Cardbus support)
         Disable support for PCI hotplug

Device drivers:
         Disable Memory Technology Device (MTD) support
         Disable Fusion MPT device support
         Disable I20 device support
         Disable ISDN support

Power management options (ACPUI, APM):
         Disable ACPI (Advanced Configuration and Power Interface) Support --> Processor
         Disable CPU Frequency Scaling
         Disable CPU idle PM support
         Disable Power Managment Support

Real-time sub-system:
         Enable Machine--> SMI workaround 
         Enable Machine--> globally disable SMI

I have read through this: http://svn.gna.org/svn/xenomai/trunk/TROUBLESHOOTING and tried to find anything relevant. I am booting from an on board compact flash via USB. I wondered if this could be the problem. Output of hdparm:

hdparm -v /dev/sda

readonly = 0 (off)
readahead = 256 (on)
geometry = 1024/255/63, sectors = 31227840, start = 0

hdparm -acdgkmur /dev/sda

HDIO_GET_MULTICOUNT failed: Invalid argument
HDIO_GET_32BIT failed: Invalid argument
HDIO_GET_UNMASKINTR failed: Invalid argument
HDIO_GET_DMA failed: Invaid argument
HDIO_GET_KEEPSETTINGS failed: Invalid argument
(reast of output same as hdparm -v)

hdparm -t /dev/sda

/dev/sda:
Timing buffered disk reads: 100MB in 3.01 seconds = 33.24 MB/sec

hdparm -T /dev/sda

/dev/sda:
Timing cached reads: 11006 MB in 2.00 seconds = 5503.00 MB/sec

Then I did cat /proc/scsi/scsi:
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: Generic  Model: Flash HS-CF        Rev: 1.68
  Type:     Direct-Access                              ANSI   SCSI revision: 00

Also, this embedded system has a lot of configuration options in the BIOS (more than I have seen on any other system). Some seem like they could be very useful but are currently unusable (e.g. if I set "SMI handler" to off, the system will no longer boot from compact flash). There are also other options that might be relevant. I have tried playing with them, but am not even sure what some are and the manual is quite cryptic:

IDE Controller settings
         "HDC configure as" Options: "IDE", "RAID", "AHCI"

USB Configuration
         "USB Legacy" Enable/Disable
         "EHCI1" Enable/Disable
         "EHCI2"            "
         "UHCI1"            "
         "UHCI2"
         ...
         "UHCI5"
         "Per-Port Control2" Enable/Disable
         "USB Pre-fetch Feature" Enable/Disable
         "USB Pre-fetch Time" 2ms/4ms
         "USB HC Alignment" Enable/Disable

Chipset Configuration
         "CRID/SRID" Enable/Disable
         "Port 80h Cycles" LPC bus/PCI bus
         "DMI Link ASPM Control" Enable/Disable
         "Automatic ASMO" Auto/Manual
         "ASPM L0s Support" Enable/Disable
         "ASPM L0sL1 Support" Enable/Disable
         "VT-d" Enable/Disable

ACPI Table/Feature Control
         "FACP - C2 Latency Value" Enable/Disable
         "FACP - C3 Latency Value" Enable/Disable
         "FACP - RTC S4 Wakeup" Enable/Disable
         "APIC - IO APIC Mode" Enable/Disable
         "HPET - HPET Support" Enable/Disable
         
PCI Express Root Port 1/2/3/4/5/6 Settings
         "ASPM" Enable/Disable
         "Automatic ASPM" Auto/Manual
         "ASPM L0s" Root&Endpoint Ports/ Disabled/ Root Port Only/ Endpoint port Only
         "ASPM L1" Enable/Disable
         "URR" Enable/Disable
         "FER" Enable/Disable
         "NFER" Enable/Disable
         "CER" Enable/Disable
         "CTO" Enable/Disable
         "SEFE" Enable/Disable
         "SENFE" Enable/Disable
         "SECE" Enable/Disable
         "PME Interrupt" Enable/Disable
         "PME SCI" Enable/Disable
         "Hot Plug SCI" Enable/Disable

Advanced CPU Control
         "P-States" Enable/Disable
         "CMP Support" Enable/Disable
         "Vanderpool Technology" Enable/Disable
         "SMRR Support" Auto/Disable
         "C-States" Enable/Disable
         "Enhanced C-States" Enable/Disable
         "C-State Pop Up Mode" Enable/Disable
         "C-State Pop Down Mode" Enable/Disable
         "C4 Exit Timing Mode" Fast/Slow/Default/Force Slow
         "DeepC4" Enable/Disable
         "Hard C4E" Enable/Disable
         "Enable C6" Enable/Disable
         "EMTTM" Enable/Disable
         "Bi-directional PROCHOT#" Enable/Disable
         "ACPI 3.0 T-States" Enable/Disable
         "DTS" Enable/Disable"
         ... (lots more options that I am not sure what they really are for!)

Platfoirm Power Management
         "Storage Break Event" Enable/Disable
         "PCIE Break Event" Enable/Disable
         "PCI Break Event" Enable/Disable
         "EHCI Break Event" Enable/Disable
         "UHCI Break Event" Enable/Disable
         "HDA Break Event" Enable/Disable
         "ACPI S3" Enable/Disable

So, could anyone suggest what I might try to improve the system? Sorry for the torrent of information... I thought it better to give as much info as I could think of than to not provide enough to make a diagnosis!

Thanks,

Edward Robbins

Control Systems Engineer
Oxford Technologies Ltd
UKAEA Culham
Joint European Torus, Remote Handling Division

[-- Attachment #2: Type: text/html, Size: 10582 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2010-10-24 15:55 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-23 14:54 [Xenomai-help] Very high latencies under stress testing edward.robbins
2010-10-23 15:37 ` Gilles Chanteperdrix
2010-10-23 16:21   ` edward.robbins
2010-10-23 16:26     ` edward.robbins
2010-10-23 18:46       ` edward.robbins
2010-10-23 21:52         ` Gilles Chanteperdrix
2010-10-24 15:55           ` edward.robbins
2010-10-23 16:13 ` Gilles Chanteperdrix
2010-10-23 16:22   ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2010-08-13 14:17 edward.robbins
2010-08-13 14:35 ` Gilles Chanteperdrix
2010-08-16 12:13   ` edward.robbins
2010-08-16 12:32     ` Gilles Chanteperdrix
2010-09-03 16:30       ` edward.robbins
2010-09-04  8:51         ` Philippe Gerum
2010-10-15  9:21           ` edward.robbins
2010-10-15 11:54             ` edward.robbins
2010-10-15 13:51               ` Gilles Chanteperdrix
2010-10-15 14:13                 ` edward.robbins
2010-10-15 14:25                   ` Gilles Chanteperdrix
2010-10-15 14:33                   ` Philippe Gerum
2010-10-19 13:52                 ` edward.robbins
2010-10-19 20:01                   ` Gilles Chanteperdrix
2010-10-23 11:08                     ` edward.robbins
2010-10-23 11:13                       ` Gilles Chanteperdrix
2010-10-23 11:22                         ` edward.robbins
2010-10-23 11:36                           ` Gilles Chanteperdrix
2010-10-23 13:45                             ` edward.robbins
2010-10-23 13:51                               ` Gilles Chanteperdrix
2010-10-23 13:56                                 ` edward.robbins
2010-10-23 13:58                                   ` Gilles Chanteperdrix
2010-10-23 14:32                                     ` edward.robbins
2010-10-23 14:37                                       ` Gilles Chanteperdrix
2010-10-23 14:48                                         ` edward.robbins
2010-10-23 15:16                                       ` edward.robbins
2010-10-23 14:10                                   ` Gilles Chanteperdrix
2010-08-13 14:40 ` Philippe Gerum
2010-08-13 16:15   ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.