All of lore.kernel.org
 help / color / mirror / Atom feed
* Hunting mode switches
@ 2021-05-31 16:06 François Legal
  2021-05-31 16:14 ` Jan Kiszka
  0 siblings, 1 reply; 16+ messages in thread
From: François Legal @ 2021-05-31 16:06 UTC (permalink / raw)
  To: xenomai

Hello,

I'm having trouble hunting mode switches on an arm embedded application.

When I look at cat /proc/xenomai/sched/stat

CPU  PID    MSW        CSW        XSC        PF    STAT       %CPU  NAME
  0  0      0          476986     0          0     00218000   84.5  [ROOT/0]
  1  0      0          137743     0          0     00218000   99.3  [ROOT/1]
  1  667    0          137550     0          0     00200042    0.7  [rtnet-stack]
  0  669    0          2          0          0     00220042    0.0  [rtnet-rtpc]
  1  901    110        218        203        0     00264044    0.0  APP_Main
  0  911    1          1216       3524       0     00240046    0.0  ThreadPar
  0  912    3          56683      3531       0     00240046    0.2  ThreadMessage
  0  913    309702     470522     2152301    0     00240046    8.9  ThreadExec
  0  914    7          62         71         0     00240042    0.0  TheadGO
  0  915    3          647        1190       0     00248046    0.0  ThreadDbg
  0  916    1          2024       3087       0     00248046    0.0  ThreadCt
  0  917    1          35801      320489     0     00248046    0.8  ThreadSupInv
  0  918    1          1231       3596       0     00248046    0.0  ThreadMessage2
  0  919    1          161554     479305     0     00248042    1.4  ThreadSched
  0  0      0          247850     0          0     00000000    0.4  [IRQ18: [timer]]
  1  0      0          15419      0          0     00000000    0.0  [IRQ18: [timer]]
  0  0      0          137548     0          0     00000000    1.5  [IRQ31: rteth0]
  1  0      0          0          0          0     00000000    0.0  [IRQ31: rteth0]
  0  0      0          1          0          0     00000000    0.0  [IRQ118: rteth1-tx]
  1  0      0          0          0          0     00000000    0.0  [IRQ118: rteth1-tx]
  0  0      0          0          0          0     00000000    0.0  [IRQ119: rteth1-rx]
  1  0      0          0          0          0     00000000    0.0  [IRQ119: rteth1-rx]

But when following the procedure in [1], I get
no slacker

I can however see that Thread 913 seem to switch to secondary more than once out of 2 cycles !
What am I doing wrong.

Thanks in advance

François

[1] : https://source.denx.de/Xenomai/xenomai/-/wikis/Finding_Spurious_Relaxes



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Hunting mode switches
@ 2021-05-31 16:06 François Legal
  0 siblings, 0 replies; 16+ messages in thread
From: François Legal @ 2021-05-31 16:06 UTC (permalink / raw)
  To: xenomai

Hello,

I'm having trouble hunting mode switches on an arm embedded application.

When I look at cat /proc/xenomai/sched/stat

CPU  PID    MSW        CSW        XSC        PF    STAT       %CPU  NAME
  0  0      0          476986     0          0     00218000   84.5  [ROOT/0]
  1  0      0          137743     0          0     00218000   99.3  [ROOT/1]
  1  667    0          137550     0          0     00200042    0.7  [rtnet-stack]
  0  669    0          2          0          0     00220042    0.0  [rtnet-rtpc]
  1  901    110        218        203        0     00264044    0.0  APP_Main
  0  911    1          1216       3524       0     00240046    0.0  ThreadPar
  0  912    3          56683      3531       0     00240046    0.2  ThreadMessage
  0  913    309702     470522     2152301    0     00240046    8.9  ThreadExec
  0  914    7          62         71         0     00240042    0.0  TheadGO
  0  915    3          647        1190       0     00248046    0.0  ThreadDbg
  0  916    1          2024       3087       0     00248046    0.0  ThreadCt
  0  917    1          35801      320489     0     00248046    0.8  ThreadSupInv
  0  918    1          1231       3596       0     00248046    0.0  ThreadMessage2
  0  919    1          161554     479305     0     00248042    1.4  ThreadSched
  0  0      0          247850     0          0     00000000    0.4  [IRQ18: [timer]]
  1  0      0          15419      0          0     00000000    0.0  [IRQ18: [timer]]
  0  0      0          137548     0          0     00000000    1.5  [IRQ31: rteth0]
  1  0      0          0          0          0     00000000    0.0  [IRQ31: rteth0]
  0  0      0          1          0          0     00000000    0.0  [IRQ118: rteth1-tx]
  1  0      0          0          0          0     00000000    0.0  [IRQ118: rteth1-tx]
  0  0      0          0          0          0     00000000    0.0  [IRQ119: rteth1-rx]
  1  0      0          0          0          0     00000000    0.0  [IRQ119: rteth1-rx]

But when following the procedure in [1], I get
no slacker

I can however see that Thread 913 seem to switch to secondary more than once out of 2 cycles !
What am I doing wrong.

Thanks in advance

François

[1] : https://source.denx.de/Xenomai/xenomai/-/wikis/Finding_Spurious_Relaxes



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

end of thread, other threads:[~2021-06-04 13:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 16:06 Hunting mode switches François Legal
2021-05-31 16:14 ` Jan Kiszka
2021-05-31 18:57   ` François Legal
2021-06-01  7:47     ` François Legal
2021-06-01  8:31       ` Jan Kiszka
2021-06-02 10:26         ` François Legal
2021-06-02 10:59           ` Jan Kiszka
2021-06-02 15:06             ` François Legal
2021-06-02 15:09               ` François Legal
2021-06-02 15:13                 ` Jan Kiszka
2021-06-03  8:57             ` François Legal
2021-06-03 18:39               ` François Legal
2021-06-04  7:21                 ` Jan Kiszka
2021-06-04 13:04                   ` François Legal
2021-06-01  8:46       ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2021-05-31 16:06 François Legal

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.