Am 17.02.2014 17:17, schrieb Philippe Gerum:
> On 02/17/2014 04:56 PM, Christian Göbeler wrote:
>> Am 17.02.2014 15:24, schrieb Philippe Gerum:
>>> On 02/17/2014 01:57 PM, Christian Göbeler wrote:
>>>> Hello everyone,
>>>>
>>>> I'm trying to get xenomai working on my laptop:
>>>> - Intel i7-2630QM
>>>> - HM67 Chipset
>>>> - Ubuntu 12.04
>>>> - NVidia GF 540 and Intel onboard graphics chip
>>>> - kernel 3.8.13 x86_64
>>>> - xenomai 2.6.3
>>>>
>>>> but when I run the latency tests I keep getting high worst case
>>>> latencies.
>>>>
>>>> When generating load by manually calling dd or using the "dohell"
>>>> script
>>>> I get
>>>> latencies >290. When I start X while running the latency test I get
>>>> latencies >700
>>>> .. and finally when I run glxgears on the nvidia card I get
>>>> latencies of
>>>> up to >9000.
>>>> Eventhough these do only occur right when I start glxgears.
>>>>
>>>> I do not intend to measure latencies while doing 3d animation but I
>>>> think the
>>>> latencies shown indicate some kind of configuration mistake which I'd
>>>> like to
>>>> avoid.
>>>>
>>>
>>> If you plan to use the i915 drm driver with an Intel integrated
>>> graphic chip, make sure to run ipipe-core-3.8.13-x86-4, anything
>>> earlier (i.e. 3.8.13-x86-3 and below) shows high latencies.
>>> http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.8.13-x86-4.patch
>>>
>>>
>>>
>> Thanks for the hint. ipipe-core-3.8.13-x86-4 patch is included in the
>> xenomai 2.6.3 download and was successfully applied to my kernel so that
>> should not be the reason for those latency peaks.
>>
>> Increasing CONFIG_XENO_OPT_SYS_HEAPSZ solved the problem of not being
>> able to run the switchtest.
>>
>
> Ok. Doing so allowed to pull more thead control blocks out of the
> system heap since switchtest creates a truckload of them (for a good
> reason though).
>
>> But I still have those latency peaks... when I do nothing and simply run
>> the tests including the dohell script or compiling some code parallel to
>> the test I get a 200-300 us latency peak about once a minute... but
>> whenever I activate the discrete graphics card, connect a mouse, insert
>> a cd, disconnect the power supply or a fan starts to work I instantly
>> get a latency peak from 300us to 700us ...
>>
>> Is there anything I can do to prevent this? (besides not touching
>> anything)
>> How can I find what's causing this?
>>
>
> Maybe you are facing both of the common issues with x86 desktop
> hardware: SMI and bad interaction with the graphic support. Assuming
> that some of the latency must be triggered by the graphic support
> given what you have just described, it may we useful to know whether
> SMI is involved as well.
>
> First, you may want to run the latency tests without graphic desktop
> (pure console mode, no X), and see how it goes.
>
Had already changed my boot options to start without X (simply added
"text" to grub command line), but without blacklisting the module. I
also disabled SMI by using the workaround described in the wiki
(xeno_hal.smi=1) and I had no overheating isssues so far... I also
noticed that eventhough I changed the .config to disable PCI_MSI it got
reenabled during build, so in order to fix that I added "pci=nomsi" to
my grub commandline as well.

I'll recompile the kernel and pay attention to the settings mentioned by
Gilles (NUMA, profiling, etc.) and blacklist the module and see where
this leads me.

Christian

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to