linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: Qais Yousef <qais.yousef@arm.com>
Cc: John Stultz <jstultz@google.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-mm@kvack.org, Connor O'Brien <connoro@google.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [RFC PATCH v4 2/3] sched: Avoid placing RT threads on cores handling long softirqs
Date: Thu, 13 Oct 2022 09:43:47 +0800	[thread overview]
Message-ID: <20221013014347.104-1-hdanton@sina.com> (raw)
In-Reply-To: <20221012141037.5cm3mzmnsz5wt36z@wubuntu>

On 12 Oct 2022 15:10:37 +0100 Qais Yousef <qais.yousef@arm.com>
> On 10/11/22 19:18, Hillf Danton wrote:
> > > The issue at hand here is that the softirqs boundedness is hard to control. And
> > > the scheduling delays ensued are hard to deal with by any sys-admin.
> > > 
> > Given "The RT scheduler is for tasks that require strick scheduling
> > requirements over all else, including performance." [1], I would invite
> > Steve to shed some more light on the relation between RT scheduler and
> > performance/network throughputs.
> > 
> > Bonus question, why softirq took no care of RT tasks, given strick
> > scheduling requirements above?
> > 
> > [1] https://lore.kernel.org/lkml/257E96C2-6ABD-4DD6-9B7F-771DA3D1BAAA@goodmis.org/
> 
> I think you're mixing the two patches up.

Nope, see below.

> That patch is to help describe some
> latency requirements for CFS tasks. It has nothing to do with RT. Your

Correct.

> suggestion to use RT scheduler is not valid as these tasks can't be converted
> to RT.

My suggestion [2,3] to that patch is add a mild change to tick preempt.

[2] https://lore.kernel.org/all/20221008103439.107-1-hdanton@sina.com/
[3] https://lore.kernel.org/all/20220920113238.1176-1-hdanton@sina.com/

> Which is what Steve was trying to say IIUC.

No followup.
> 
> Generally converting normal application tasks into RT is a recipe for disaster
> because:
> 
> 	1. Misbehaving RT tasks (busy looping indefinitely) can hog the system
> 	   to a halt.
> 	2. How do you manage priorities of all these pseudo-random RT tasks
> 	   each application spawns so you end up with correct resource sharing?

Thanks for good material.
> 
> ie: using RT policy is a privileged operation for a reason :-)

Take note.

Hillf


      reply	other threads:[~2022-10-13  1:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20221003232033.3404802-3-jstultz@google.com>
2022-10-04  1:36 ` Hillf Danton
2022-10-04  2:29   ` John Stultz
2022-10-05  0:21     ` Hillf Danton
2022-10-05  1:13       ` John Stultz
2022-10-05  6:01         ` Hillf Danton
2022-10-10 15:42           ` Qais Yousef
2022-10-11 11:18             ` Hillf Danton
2022-10-12 14:10               ` Qais Yousef
2022-10-13  1:43                 ` Hillf Danton [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=20221013014347.104-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=connoro@google.com \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterz@infradead.org \
    --cc=qais.yousef@arm.com \
    --cc=rostedt@goodmis.org \
    /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