Eric Saxe wrote:
> Ian Murdock wrote:
> >
> >Desktop responsiveness could use some work. There was a lot of
> >work done in the Linux kernel a few years ago to improve this on
> >Linux, and it made a world of difference there.. I computed an
> >md5sum last night on an ISO image, which degraded desktop
> >responsiveness pretty badly. And while audio works beautifully compared
> >to Linux in how it multiplexes multiple streams, it's pretty jittery
> >from time to time, presumably due to scheduler prioritization
> >(not prioritizing interactive tasks ahead of non-interactive tasks).
> 
> The timeshare scheduling class should be doing the right thing here. The
> more CPU bound md5sum should tend to have it's priority drop, while the
> more transient interactive tasks should have their priorities increase.

I use "mpd" (Music Play Daemon) and put this one in the RT (RealTime)
class. All Problems with playing back mp3s witch high sysload went away. 
The same great results when playing videos with "mplayer" in the RT
scheduling class. 

The Interactive Class should give low latencies for e.g. shells, but
I think not necessarily give the best results for graphical desktops
consuming high CPU times.

We should try out putting the desktop software into a TimeSharing class
with a bit higher priority then the rest of the System. Maybe the current
settings come from the Server-World, where the Desktop is nice, but 
has to completely stay in the background.
But the X- and GNOME people should know better, what to do here.

Would it be possible to sort the different software into the right 
sheduling classes and priorities? Solaris is very good in controlling
resources today. (Idea: use profiles/user_attr to grant special 
scheduling classes to daemons/users/..., or use context-ids)

Just try this out for your music/palyer player:
 ps -cafe | head -1           
 ps -cafe | grep yourdaemon    (or player)
 
your daemon/player will be in the "TS" or "IA" class, depending on 
from where it was started. 

If your music/video player should go into "RT", then do this: (example PID=5432)

 priocntl -s -c RT -i pid 5432


Thomas

--

_______________________________________________
indiana-discuss mailing list
[email protected]
http://opensolaris.org/mailman/listinfo/indiana-discuss


--
This message posted from opensolaris.org
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to