New Linux scheduler old Solaris one(s)

I find it interesting and slightly sad, given how low level a topic this really is, how much is being written about the new CFS scheduler being introduced into Linux. The sad part is how much flamage is flying around as a result of this from people not in the slightest bit involved in the desgin and development - this sadly is the ugly side of many open source groups.

OpenSolaris has multiple scheduling classes as well, actually Solaris had this and OpenSolaris inherited it when the source was opened up - but there is active work in this area going on, and the ability to realtively easily add more. You can also change the dispatch tables of the existing ones - even on a live running system (see dispadmin(1M) and ts_dptbl(4)

For some more info on how OpenSolaris does scheduling and how it is integrated into the rest of the resouce management system see this excellent intro to the topic by Eric Saxe.

As you hopefully see from Eric's presentation the scheduler is only a small part of the over all resource management issue and ensuring fairness. OpenSolaris builds on the scheduler by using things like processor pools. I particularly like the Fair Share Scheduler (FSS) class. The Sun Ray server that I use at work (and at home via VPN) uses FSS so that users can't dominate the server cpu resources.

I find it very cool that you can even use different scheduling classes for zones (actually you can do it per process but mixing FSS with TS/IA in a given processor pool isn't recommended). If all that wasn't cool enough all the policy for FSS (and much other projects stuff related to resource management) can be stored in LDAP so it is easy to implement a network wide policy.

Comments:

Yes there is a lot of things in solaris for the cpu use, although I am not sure they were really optimized for a desktop use (interactivity rather than throughput). On the other hand, there is not that much done on memory or i/o. I am particularly missing maxrss for memory, and priorities on access to disk. One thing that is very important to me and still impossible to do is run a batch application on a desktop without bothering the person using it interactively. The nice setting only acts on the cpu ressource, which is not always the most important one.

Posted by Marc on August 03, 2007 at 10:00 AM BST #

Hi Darren,

I use project to restrict memory usage. It is in my blog too. I got the idea from your article on `Limit users to one login' article. I use the rcap.max-rss. But you mentioned of using FSS on SunRAY. Do you have an article on the setup? I do use FSS as suggested by Brendan Gregg on http://www.solarisinternals.com/wiki/index.php/Zones_Resource_Controls#FSS.
But how do I do it for all sunray users? Did you create a zone per user or did you actually assigned a pool to each user. I am interested on how did you apply FSS to each sunray users' session.

Posted by Asif Iqbal on August 09, 2007 at 10:36 PM BST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

DarrenMoffat

Search

Categories
Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today