Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2008 14:19:07 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, unga888@yahoo.com
Subject:   Re: sched_ule performance on single CPU
Message-ID:  <200805271219.m4RCJ7Q6038124@lurza.secnetix.de>
In-Reply-To: <555870.1659.qm@web57010.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Unga <unga888@yahoo.com> wrote:
 > When open an pdf has two types of scenarios in
 > FreeBSD:
 > 1. When X run as a realtime-prio process, X go mad and
 > swallow up almost all of CPU cycles, making audio
 > hiccups. 

That's expected.  Running the X server with rtprio is not
a good idea.  There's no reason to do that.

 > 2. When X run as a normal-prio process, X behaves well
 > and rarely gets an audible hiccup.

That's good.  :-)

 > Why X behave different under different priority
 > categories? Isn't this scheduler related?

Very simple:  Sometimes the X server consumes lots of CPU
for a short time.  If it runs with rtprio, then no other
process gets a chance to execute, so your audio program
will starve.

My recommendation is to not use rtprio or renice.  I think
many people who try to use them are making things worse.
(In fact I think rtprio and idprio should die.)

 > I wonder the issue I mentioned, open a pdf while
 > playback audio, is it a issue on Apple Mac OSX? Could
 > somebody give some light here who uses an Apple Mac
 > OSX on this list?

OSX has a vastly different kernel, scheduler, I/O system,
audio drivers and so on.  It's a completely different
animal.

Have you tried increasing the audio driver's buffersize?
It probably helps to alleviate your problem.  I think
OSX sizes the buffer dynamically (not sure though).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"When your hammer is C++, everything begins to look like a thumb."
        -- Steve Haflich, in comp.lang.c++



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805271219.m4RCJ7Q6038124>