linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* setresuid, threads, and realtime
@ 2017-04-21 15:02 Jeff Epler
  0 siblings, 0 replies; only message in thread
From: Jeff Epler @ 2017-04-21 15:02 UTC (permalink / raw)
  To: linux-rt-users

It's been reported that in linuxcnc running on preempt-rt, when the controlling
thread calls setresuid() other RT threads in the same process see big latencies.

We started putting two and two together about this after we found that linuxcnc
running on RTAI LXRT would sometimes hard lock when the controlling thread
calls setresuid().

It appears to be beacause setresuid() does something for each thread; and this
works poorly or not at all when the threads are RT.

Is it likely that anything can be done about this state of affairs?

In the short term, I'll be migrating linuxcnc back to using setfsuid, which is
apparently per-thread.

Jeff

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-21 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 15:02 setresuid, threads, and realtime Jeff Epler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).