Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1252389

Re: [PATCH v8 04/14] task_isolation: add initial support

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [PATCH v8 04/14] task_isolation: add initial support
Date 2015-10-21 02:30 +0200
Message-ID <qlPrX-3b7-11@gated-at.bofh.it> (permalink)
References <qlM13-6so-9@gated-at.bofh.it> <qlMaK-6E0-5@gated-at.bofh.it> <qlMaK-6E0-3@gated-at.bofh.it> <qlMDL-7sL-11@gated-at.bofh.it> <qlMDL-7sL-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 20 Oct 2015 14:26:34 -0700
Andy Lutomirski <luto@amacapital.net> wrote:

> I'm not a scheduler person, so I don't know.  But "don't run me unless
> I'm isolated" seems like a design that will, at best, only ever work
> by dumb luck.  You have to disable migration, avoid other runnable
> tasks, hope that the kernel keeps working the way it did when you
> wrote the patch, hope you continue to get lucky enough that you ever
> get to user mode in the first place, etc.


Since it only makes sense to run one isolated task per cpu (not more
than one on the same CPU), I wonder if we should add a new interface
for this, that would force everything else off the CPU that it
requests. That is, you bind a task to a CPU, and then change it to
SCHED_ISOLATED (or what not), and the kernel will force all other tasks
off that CPU. Well, we would still have kernel threads, but that's a
different matter.

Also, doesn't RCU need to have a few ticks go by before it can safely
disable itself from userspace? I recall something like that. Paul?

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v8 04/14] task_isolation: add initial support Andy Lutomirski <luto@amacapital.net> - 2015-10-20 23:00 +0200
  Re: [PATCH v8 04/14] task_isolation: add initial support Andy Lutomirski <luto@amacapital.net> - 2015-10-20 23:30 +0200
    Re: [PATCH v8 04/14] task_isolation: add initial support Steven Rostedt <rostedt@goodmis.org> - 2015-10-21 02:30 +0200
      Re: [PATCH v8 04/14] task_isolation: add initial support Chris Metcalf <cmetcalf@ezchip.com> - 2015-10-26 21:30 +0100

csiph-web