The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: Wiktor <victorjan@poczta.onet.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFD] 'nice' attribute for executable files
Date: Tue, 29 Mar 2005 16:02:22 -0500	[thread overview]
Message-ID: <1112130142.5141.23.camel@mindpipe> (raw)
In-Reply-To: <4249B2B8.1090807@poczta.onet.pl>

On Tue, 2005-03-29 at 21:55 +0200, Wiktor wrote:
> Hi all,
> 
> recently i had to run some program (xmms) with lowered nice value as 
> normal user. to do that i had to su to the root account and then execute 
> nice --5 xmms.

Let me guess, the sound skips unless you run at a low nice value.
That's bad design on the part of XMMS.

nice is the wrong way to handle RT constraints.  You need a proper
design (ie multithreaded).

See JACK for an example of how to do it right.

http://jackit.sf.net

Or, since you don't need low latency, use a bigger buffer.

Proper handling of RT constraints has been discussed to death on LKML
and other lists (executive summary: almost no one does it right.
mplayer is one of the most egregious offenders).

Lee


  reply	other threads:[~2005-03-29 21:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 19:55 [RFD] 'nice' attribute for executable files Wiktor
2005-03-29 21:02 ` Lee Revell [this message]
2005-03-30 19:55 ` Bill Davidsen
2005-03-31  5:51 ` Matt Mackall
     [not found] <fa.ed33rit.1e148rh@ifi.uio.no>
2005-03-29 20:45 ` Bodo Eggert
2005-03-30 16:07   ` Wiktor
2005-03-30 16:55     ` Måns Rullgård
2005-03-30 17:27       ` Wiktor
2005-03-30 19:03         ` Måns Rullgård
2005-03-30 20:16           ` Wiktor
2005-03-30 20:43             ` Måns Rullgård
2005-04-01 15:26               ` Wiktor
2005-04-01 16:07                 ` Måns Rullgård
2005-03-31  5:46             ` Jan Engelhardt
2005-03-31 15:56       ` Horst von Brand
2005-03-31 16:05         ` Måns Rullgård
2005-04-01 15:40         ` Wiktor
2005-04-01 16:12           ` Måns Rullgård
2005-04-01 17:27           ` Horst von Brand
2005-03-30 19:40     ` Bodo Eggert
2005-03-30 21:03     ` Lee Revell

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=1112130142.5141.23.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=victorjan@poczta.onet.pl \
    /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