mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Esben Nielsen <nielsen.esben@googlemail.com>,
	Lee Revell <rlrevell@joe-job.com>,
	Arjan van de Ven <arjan@infradead.org>,
	linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: Re: Where is RLIMIT_RT_CPU?
Date: Tue, 18 Jul 2006 00:32:36 +1000	[thread overview]
Message-ID: <1153146757.24228.28.camel@idefix.homelinux.org> (raw)
In-Reply-To: <1153144753.652.12.camel@localhost.localdomain>

> Have you thought about using something like Xen?  Have a virtual machine
> that you can even give root access to users, and still have control of
> the actual physical machine.

What does Xen have to do with that? I don't want to run stuff in another
virtual machine, just on my desktop. Also, no matter how good the
virtualization is, if the host eats CPU, the guest doesn't have it. 

> One issue I think you might have is what exactly is a CPU limit?  If the
> system is idle, and you have an app that goes into a busy loop, do you
> kill it after it hits the limit, even if it isn't RT?  Or do you just
> force it to schedule?  Or do you consider idle a special case?  Do you
> want just the apps to be limited, or all the apps that belong to a
> specific user.

The standard was is to simply demote ill-behaved tasks to SCHED_OTHER or
suspend them temporarily, i.e. limit the percentage of CPU they can get
over a certain period of time.

> >From this thread, it seems your goal is to have a single console that
> users can log into and run a RT thread for audio but still not be able
> to lock up the entire system. Right?  So having an RT limit for this use
> might actually be beneficial.  But this is a very rare case, and if you
> are the only one needing this type of feature, then it will likely not
> make it into the kernel.  

Rare case? So you never use a VoIP app (sure they can work as non-rt,
but you get much better quality as latency goes down)? How about media
players that don't skip? There are lots of uses for low-latency (i.e. rt
scheduling) on a desktop. Pro audio people are the first to benefit, but
all users can see an improvement.

> But it if turns out that lots of people like
> this feature, and want it, then it might have a chance, if there is no
> other way to accomplish it.

There *are* lots of people who want it and who have been complaining for
quite a while (see threads on linux-audio-dev). All that's missing is a
tiny bit, which makes it even more frustrating.

> Currently, it looks like you can use either Xen or just stick to one of
> the patches you mentioned earlier.

Sure, I can patch my kernel, but then the distros will just keep on
ignoring the problem, which is bad.

	Jean-Marc

  reply	other threads:[~2006-07-17 14:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12  0:23 Jean-Marc Valin
2006-07-13 16:43 ` Lee Revell
2006-07-14  9:39   ` Jean-Marc Valin
2006-07-14 21:31     ` Esben Nielsen
2006-07-14 23:20       ` Jean-Marc Valin
2006-07-15 13:58         ` Lee Revell
2006-07-15 14:19           ` Jean-Marc Valin
2006-07-15 14:42             ` Arjan van de Ven
2006-07-15 15:04               ` Jean-Marc Valin
2006-07-15 15:44                 ` Lee Revell
2006-07-16  0:23                   ` Jean-Marc Valin
2006-07-16 10:44                     ` Esben Nielsen
2006-07-16 10:14                       ` Jean-Marc Valin
2006-07-16 12:20                         ` Esben Nielsen
2006-07-17 11:53                           ` Jean-Marc Valin
2006-07-17 13:59                             ` Steven Rostedt
2006-07-17 14:32                               ` Jean-Marc Valin [this message]
2006-07-17 15:06                                 ` Steven Rostedt
2006-07-17 16:18                             ` Esben Nielsen

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=1153146757.24228.28.camel@idefix.homelinux.org \
    --to=jean-marc.valin@usherbrooke.ca \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nielsen.esben@googlemail.com \
    --cc=rlrevell@joe-job.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

all inboxes | Powered by JetHome®