NetBSD-Users archive

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

Re: /etc/rd.d/ script execution



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


Home | Main Index | Thread Index | Old Index