Re: Rtai Digest, Vol 104, Issue 4

Francescodario Cuzzocrea <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <CADnVkj9KgyA-JUNkjgzjhBjReMcZdMDu_c=Z1PPQh32G+ZkR=A@mail.gmail.com>
Can you please attach you kernel .config and you rtai_config ?
As a first attempt, try to boot with kernel boot parameter
lapic=notscdeadline ad watch the results

Il giorno lun 8 ago 2016 alle ore 09:22 <[email protected]> ha scritto:

> Send Rtai mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Rtai digest..."
>
>
> Today's Topics:
>
>    1. Strange Results by Switches Test (ChenPeng)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 8 Aug 2016 13:43:09 +0800 (CST)
> From: ChenPeng <[email protected]>
> To: [email protected]
> Subject: [Rtai] Strange Results by Switches Test
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="gbk"
>
> Hi, sorry to bother you
> I am a beginner, and I met problems when I was running the ./run test
> located in /usr/realtime/testsuite/kern/switches/ and
> /usr/realtime/testsuite/user/switches/. I wonder is there anybody who has
> met the same problem too and if anyone has fixed it. Here goes the details:
> I patched RTAI 4.1 to ubuntu 14.04 with a kernel version 3.16
> . When I checked the performance as the manual indicated, it seems that
> the procedure in /usr/realtime/testsuite/kern/switches/  ran for one time,
> but it did not output the results in the console window but in the ring
> buffer, which reads as:
>
> *************************************************************************************************************************8
> kern  :info  : [  953.966160] I-pipe: head domain RTAI registered.
> kern  :info  : [  953.966164] RTAI[hal]: compiled with gcc version 4.8.4
> (Ubuntu 4.8.4-2ubuntu1~14.04.3) .
> kern  :info  : [  953.966198] RTAI[hal]: mounted (IPIPE-NOTHREADS,
> IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
> kern  :warn  : [  953.966200] SYSINFO: CPUs 2, LINUX APIC IRQ 4353,
> TIM_FREQ 6235989, CLK_FREQ 2294873000, CPU_FREQ 2294873000
> kern  :warn  : [  953.966201] RTAI_APIC_TIMER_IPI: RTAI DEFINED 4354,
> VECTOR 4355; LINUX_APIC_TIMER_IPI: RTAI DEFINED 4353, VECTOR 4353
> kern  :warn  : [  953.966203] TIMER NAME: lapic; VARIOUSLY FOUND APIC
> FREQs: 6235989, 6235989, 6235750
> kern  :info  : [  953.977572] RTAI[malloc]: global heap size = 2097152
> bytes, <BSD>.
> kern  :warn  : [  953.977593] , kstacks pool size = 524288 bytes.
> kern  :info  : [  953.977595] RTAI[sched]: hard timer type/freq =
> APIC/6235989(Hz); default timing: periodic; linear timed lists.
> kern  :info  : [  953.977597] RTAI[sched]: Linux timer freq = 250 (Hz),
> TimeBase freq = 2294873000 hz.
> kern  :info  : [  953.977598] RTAI[sched]: timer setup = 160 ns, resched
> latency = 3783 ns.
> kern  :warn  : [  954.001992]
> kern  :warn  : [  954.001992] Wait for it ...
> kern  :warn  : [  954.027045]
> kern  :warn  : [  954.027045]
> kern  :warn  : [  954.027045] FOR 10 TASKS: TIME 7 (ms), SUSP/RES SWITCHES
> 40000, SWITCH TIME (INCLUDING FULL FP SUPPORT) 193 (ns)
> kern  :warn  : [  954.027047]
> kern  :warn  : [  954.027047] FOR 10 TASKS: TIME 7 (ms), SEM SIG/WAIT
> SWITCHES 40000, SWITCH TIME (INCLUDING FULL FP SUPPORT) 189 (ns)
> kern  :warn  : [  954.027049]
> kern  :warn  : [  954.027049] FOR 10 TASKS: TIME 9 (ms), RPC/RCV-RET
> SWITCHES 40000, SWITCH TIME (INCLUDING FULL FP SUPPORT) 243 (ns)
> kern  :warn  : [  954.027049]
> kern  :warn  : [  954.067635]
> kern  :warn  : [  954.067635] CPU USE SUMMARY
> kern  :warn  : [  954.067638] # 0 -> 0
> kern  :warn  : [  954.067639] # 1 -> 60011
> kern  :warn  : [  954.067640] END OF CPU USE SUMMARY
> kern  :warn  : [  954.067640]
> kern  :warn  : [  954.081247] RTAI[malloc]: unloaded.
> kern  :info  : [  964.316406] RTAI[sched]: unloaded (forced hard/soft/hard
> transitions: traps 0, syscalls 0).
> kern  :info  : [  964.336140] I-pipe: head domain RTAI unregistered.
> kern  :info  : [  964.336184] RTAI[hal]: unmounted.
>
> *********************************************************************************************************************
> And the procedure in /usr/realtime/testsuite/user/switches/ has the same
> problem and reported alerts, and the result really confused a beginner :
> kern  :info  : [  599.667788] I-pipe: head domain RTAI registered.
> kern  :info  : [  599.667793] RTAI[hal]: compiled with gcc version 4.8.4
> (Ubuntu 4.8.4-2ubuntu1~14.04.3) .
> kern  :info  : [  599.667825] RTAI[hal]: mounted (IPIPE-NOTHREADS,
> IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
> kern  :warn  : [  599.667827] SYSINFO: CPUs 2, LINUX APIC IRQ 4353,
> TIM_FREQ 6235879, CLK_FREQ 2294758000, CPU_FREQ 2294758000
> kern  :warn  : [  599.667828] RTAI_APIC_TIMER_IPI: RTAI DEFINED 4354,
> VECTOR 4355; LINUX_APIC_TIMER_IPI: RTAI DEFINED 4353, VECTOR 4353
> kern  :warn  : [  599.667830] TIMER NAME: lapic; VARIOUSLY FOUND APIC
> FREQs: 6235879, 6235879, 6235750
> kern  :info  : [  599.680886] RTAI[malloc]: global heap size = 2097152
> bytes, <BSD>.
> kern  :warn  : [  599.680907] , kstacks pool size = 524288 bytes.
> kern  :info  : [  599.680909] RTAI[sched]: hard timer type/freq =
> APIC/6235879(Hz); default timing: periodic; linear timed lists.
> kern  :info  : [  599.680911] RTAI[sched]: Linux timer freq = 250 (Hz),
> TimeBase freq = 2294758000 hz.
> kern  :info  : [  599.680912] RTAI[sched]: timer setup = 160 ns, resched
> latency = 3783 ns.
> kern  :alert : [  599.702909] BUG: unable to handle kernel paging request
> at 00007fff67621040
> kern  :alert : [  599.703903] IP: [<ffffffffc072c856>]
> rtai_lxrt_invoke+0x496/0x1180 [rtai_sched]
> kern  :warn  : [  599.704871] PGD 1420ff067 PUD 13b4df067 PMD 142369067
> PTE 800000013cf11867
> kern  :warn  : [  599.705821] Oops: 0001 [#3] SMP
> kern  :warn  : [  599.706752] Modules linked in: rtai_msg(OE) rtai_sem(OE)
> rtai_sched(OE) rtai_hal(OE) nls_iso8859_1(E) uas(E) usb_storage(E)
> rfcomm(E) bnep(E) snd_hda_codec_hdmi(E) intel_rapl(E)
> x86_pkg_temp_thermal(E) intel_powerclamp(E) arc4(E) coretemp(E) iwlmvm(E)
> kvm(E) radeon(E) mac80211(E) snd_hda_codec_realtek(E)
> snd_hda_codec_generic(E) crct10dif_pclmul(E) crc32_pclmul(E)
> ghash_clmulni_intel(E) aesni_intel(E) aes_x86_64(E) lrw(E) gf128mul(E)
> glue_helper(E) i915(E) iwlwifi(E) ablk_helper(E) cryptd(E) joydev(E)
> snd_hda_intel(E) uvcvideo(E) snd_hda_controller(E) snd_hda_codec(E)
> snd_hwdep(E) ttm(E) drm_kms_helper(E) snd_pcm(E) serio_raw(E)
> snd_seq_midi(E) videobuf2_vmalloc(E) snd_seq_midi_event(E) rtsx_pci_ms(E)
> mei_me(E) lpc_ich(E) memstick(E) btusb(E) videobuf2_memops(E) drm(E) mei(E)
> bluetooth(E) cfg80211(E) videobuf2_core(E) snd_rawmidi(E) 6lowpan_iphc(E)
> v4l2_common(E) i2c_algo_bit(E) snd_seq(E) videodev(E) media(E)
> snd_seq_device(E) snd_timer(E) mac_hid(E) shpchp(E) parp
>  ort_pc(E) ppdev(E) lp(E) parport(E) snd(E) soundcore(E) hid_generic(E)
> usbhid(E) hid(E) rtsx_pci_sdmmc(E) ahci(E) libahci(E) r8169(E) mii(E)
> rtsx_pci(E) [last unloaded: rtai_hal]
> kern  :warn  : [  599.714231] CPU: 0 PID: 3163 Comm: switches Tainted: G
>     D    OE 3.16.0-rtai #1
> kern  :warn  : [  599.715312] Hardware name: LENOVO 80HR/ZHAOYANG E40-80,
> BIOS A8CN51WW(V3.04) 02/26/2016
> kern  :warn  : [  599.716371] task: ffff88006f22d080 ti: ffff88006f2ac000
> task.ti: ffff88006f2ac000
> kern  :warn  : [  599.717411] RIP: 0010:[<ffffffffc072c856>]
> [<ffffffffc072c856>] rtai_lxrt_invoke+0x496/0x1180 [rtai_sched]
> kern  :warn  : [  599.718442] RSP: 0018:ffff88006f2afef8  EFLAGS: 00010202
> kern  :warn  : [  599.719446] RAX: ffff88006f22d080 RBX: 0000000000000000
> RCX: 00007f6bac7a2709
> kern  :warn  : [  599.720428] RDX: 00000000000003ea RSI: 00007fff67621040
> RDI: 00000000003ea828
> kern  :warn  : [  599.721390] RBP: ffff88006f2aff50 R08: 0000000000000001
> R09: 00007fff67621040
> kern  :warn  : [  599.722344] R10: 0000000000000001 R11: 0000000000003202
> R12: 00007fff67621040
> kern  :warn  : [  599.723287] R13: 00000000003ea828 R14: 0000000000000000
> R15: 0000000000000000
> kern  :warn  : [  599.724214] FS:  00007f6bad0ae740(0000)
> GS:ffff88015ec00000(0000) knlGS:0000000000000000
> kern  :warn  : [  599.725142] CS:  0010 DS: 0000 ES: 0000 CR0:
> 000000008005003b
> kern  :warn  : [  599.726065] CR2: 00007fff67621040 CR3: 000000013b480000
> CR4: 00000000003407f0
> kern  :warn  : [  599.726991] DR0: 0000000000000000 DR1: 0000000000000000
> DR2: 0000000000000000
> kern  :warn  : [  599.727930] DR3: 0000000000000000 DR6: 00000000fffe0ff0
> DR7: 0000000000000400
> kern  :warn  : [  599.728848] I-pipe domain Linux
> kern  :warn  : [  599.729768] Stack:
> kern  :warn  : [  599.730672]  ffff88006f2aff24 ffff88006f2aff50
> ffffffff81175033 000000016f22d080
> kern  :warn  : [  599.731595]  ffff8801423e34e0 0000000100000000
> 00007fff67620fc0 0000000000400de0
> kern  :warn  : [  599.732520]  00007fff676211d0 0000000000000000
> 0000000000000000 ffff88006f2aff68
> kern  :warn  : [  599.733444] Call Trace:
> kern  :warn  : [  599.734369]  [<ffffffff81175033>] ?
> __mm_populate+0x113/0x130
> kern  :warn  : [  599.735298]  [<ffffffffc072b98d>]
> lxrt_intercept_syscall+0x8d/0x130 [rtai_sched]
> kern  :warn  : [  599.736236]  [<ffffffff81102367>]
> __ipipe_notify_syscall+0x17/0x30
> kern  :warn  : [  599.737167]  [<ffffffff81697f8e>]
> pipeline_syscall+0xa/0x17
> kern  :warn  : [  599.738097] Code: e2 ff 07 00 00 31 ff e8 41 78 00 00 e9
> 40 fe ff ff 48 c7 c7 c8 6d 73 c0 31 c0 e8 86 33 56 00 48 c7 c0 da ff ff ff
> e9 b1 fc ff ff <48> 8b 1e 8d 8a 18 fc ff ff 83 f9 20 48 89 d8 0f 87 aa 0c
> 00 00
> kern  :alert : [  599.740105] RIP  [<ffffffffc072c856>]
> rtai_lxrt_invoke+0x496/0x1180 [rtai_sched]
> kern  :warn  : [  599.741089]  RSP <ffff88006f2afef8>
> kern  :warn  : [  599.742058] CR2: 00007fff67621040
> kern  :warn  : [  599.743027] ---[ end trace e162702c7f8d1dd2 ]---
> kern  :warn  : [  599.760775] RTAI[malloc]: unloaded.
> kern  :info  : [  621.858186] RTAI[sched]: unloaded (forced hard/soft/hard
> transitions: traps 0, syscalls 0).
> kern  :info  : [  621.874042] I-pipe: head domain RTAI unregistered.
> kern  :info  : [  621.874089] RTAI[hal]: unmounted.
>
> **********************************************************************************************************
>
> Thank you very much for your patience to get here, and I will be more
> grateful if you can give me some instruction.
>
>
>                                           Kira
>
>                                    2016-08-08
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mail.rtai.org/pipermail/rtai/attachments/20160808/f56bd775/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Rtai mailing list
> [email protected]
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>
> ------------------------------
>
> End of Rtai Digest, Vol 104, Issue 4
> ************************************
>

_______________________________________________
Rtai mailing list
[email protected]
https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.