mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Radoslaw Zielonek <radoslaw.zielonek@gmail.com>
To: peterz@infradead.org
Cc: akpm@linux-foundation.org, ardb@kernel.org,
	bigeasy@linutronix.de, brauner@kernel.org, bristot@redhat.com,
	bsegall@google.com, dietmar.eggemann@arm.com,
	juri.lelli@redhat.com, kunyu@nfschina.com,
	liam.howlett@oracle.com, linux-kernel@vger.kernel.org,
	mgorman@suse.de, mingo@redhat.com, oleg@redhat.com,
	radoslaw.zielonek@gmail.com, rostedt@goodmis.org,
	syzbot+a941018a091f1a1f9546@syzkaller.appspotmail.com,
	syzkaller-bugs@googlegroups.com, tandersen@netflix.com,
	vincent.guittot@linaro.org, vincent.whitchurch@axis.com,
	vschneid@redhat.com
Subject: Re: [RFC] Signaling overhead on RT tasks is causing RCU stall
Date: Tue,  9 Jul 2024 09:43:34 +0200	[thread overview]
Message-ID: <20240709074333.2799005-2-radoslaw.zielonek@gmail.com> (raw)
In-Reply-To: <20240705081052.GA11386@noisy.programming.kicks-ass.net>

> I'm having trouble parsing this. What overhead becomes high? Is the task
> spending time in-kernel? Because if the task is spending time in-user
> handling all its signals, it should accumulate runtime just fine.

The overhead is in kernel. The RT task is preempted over and over by SIGRETURN.

In my case userspace set posix timer interval to 8ns.
The posix_timer_fn enqueues signal (send_sigqueue).
Then when the signal is dequeued (dequeue_signal) the posix timer is rearmed.

Radoslaw

      reply	other threads:[~2024-07-09  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-05  7:56 Radoslaw Zielonek
2024-07-05  8:10 ` Peter Zijlstra
2024-07-09  7:43   ` Radoslaw Zielonek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240709074333.2799005-2-radoslaw.zielonek@gmail.com \
    --to=radoslaw.zielonek@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=ardb@kernel.org \
    --cc=bigeasy@linutronix.de \
    --cc=brauner@kernel.org \
    --cc=bristot@redhat.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=juri.lelli@redhat.com \
    --cc=kunyu@nfschina.com \
    --cc=liam.howlett@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=oleg@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=syzbot+a941018a091f1a1f9546@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=tandersen@netflix.com \
    --cc=vincent.guittot@linaro.org \
    --cc=vincent.whitchurch@axis.com \
    --cc=vschneid@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®