All of lore.kernel.org
 help / color / mirror / Atom feed
* BCM cyclic transmission tasks : cpu load
@ 2015-04-16 17:28 Maxime Vinci
  2015-04-16 17:59 ` Oliver Hartkopp
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Vinci @ 2015-04-16 17:28 UTC (permalink / raw)
  To: linux-can

Hello all,

This is my first message on a mailing list like this one, please be gentle ;)

Currently, I am using the SocketCAN BCM feature to setup cyclic frame
transmissions.

Setting up everything appears to work fine : I can create multiple
tasks with different periods, with one or more frames in each one.

I would like to use it inside a Qt application (with qml based user
interface), but it seems that right when I set up the first cyclic
task, the cpu load increase from ~5% to 100%.

Even when all tasks are deleted (by using the opcode TX_DELETE), the
cpu load stays at the same level.

To see if the UI was messing it up, I wrote a simple test program
where I call the BCM functions to set up some cyclic tasks before
entering a Qt application event loop (a simple "Hello world" app).

It showed me that the cpu load goes crazy when the event loop starts.

Correct me if I am wrong, but according to these 2 behaviors, it could
be assumed that the issue happens every time the BCM and a Qt-based UI
are being used together.

Does anyone have any hints about this particular issue ?

Thank you !


PS: I did not try to put the object that wraps the BCM features in a
new thread, but I think this will not solve the problem. (this is kind
of done inside SocketCan, right ?)


Best regards,

Maxime

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

end of thread, other threads:[~2015-04-17 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 17:28 BCM cyclic transmission tasks : cpu load Maxime Vinci
2015-04-16 17:59 ` Oliver Hartkopp
2015-04-17 11:04   ` Maxime Vinci

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.