NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /etc/rd.d/ script execution



On Tuesday 10 June 2008 22:06:42 Andrew Doran wrote:
> On Tue, Jun 10, 2008 at 02:57:12PM +0100, raymond.meyer%rambler.ru@localhost 
> wrote:
> > Hi, I start music player daemon MPD via /etc/rc.d/mpd script, which I
> > pasted below. Sometimes when the CPU load is high, the music skips. What
> > I would like to do is start the daemon with the following command, so
> > that it has the highest scheduling priority
> >
> > schedctl -P63 -C SCHED_RR /opt/pkg/bin/mpd
>
> Be aware of the consequences of that. mpd will run as a realtime process
> and won't yield the CPU if it decides it has something important to do. I
> suggest trying 'nice' to give it the maximum timeshared priority first.
>
> Andrew

Why would this be a bad thing? I mean if mpd doesn't go into an infinite loop, 
it should be OK. I don't have any other time critical processes running, it's 
a desktop system and I'm the only person using it.


Home | Main Index | Thread Index | Old Index