Demo for Solaris Resource Manager

Here's an example how to build such a live demo:



  1. Create two projects:
    add to /etc/project:

    srm-demo:100::demo::project.cpu-shares=(privileged,3,none)
    srm-loader:101::demo::project.cpu-shares=(privileged,1,none)


  2. Start your interactive demo:

    newtask -p srm-demo java -jar /usr/java/demo/jfc/Java2D/Java2Demo.jar &


  3. Now start as many background processes as you need:

    newtask -p srm-loader someload.sh &
    where someload.sh could be:


    #!/bin/sh
    while true
    do
    echo adflkjasdflkjasdflkjasdflkj > /dev/null
    done



  4. Now move your processes to the FSS class

    priocntl -s -c FSS -i projid 101
    priocntl -s -c FSS -i projid 100

    or back to the TS class to show the effect of resource management.

    priocntl -s -c TS -i projid 100
    priocntl -s -c TS -i projid 101


Kommentare:

Senden Sie einen Kommentar:
Kommentare sind ausgeschaltet.
About

Neuigkeiten, Tipps und Wissenswertes rund um SPARC, CMT, Performance und ihre Analyse sowie Erfahrungen mit Solaris auf dem Server und dem Laptop.

This is a bilingual blog (most of the time). Please select your prefered language:
.
The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

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