Hi Rajaram,

> Hi,
> 
> I am trying to use the kernbench tool for trying out the difference the CPU 
> resource controller makes in terms of allocating CPU time.
> 
> I am using a one CPU machine with nearly 0.99 GB RAM.
> 
> I ran kernbench tool twice and compared the results.
> 
> First time, without creating any new class except the default root class 
> automatically created. Please find the results attached as kernbench-results1.
> 
> During the second time, I created a class C1 and allocated shares as follows.
> 
> [EMAIL PROTECTED] ckrm]# cat shares
> res=numtasks,guarantee=-2,limit=-2,total_guarantee=100,max_limit=100
> res=cpu,guarantee=-2,limit=-2,total_guarantee=100,max_limit=-2
> [EMAIL PROTECTED] ckrm]#
> 
> [EMAIL PROTECTED] ckrm]# cat c1/shares
> res=numtasks,guarantee=-2,limit=-2,total_guarantee=100,max_limit=100
> res=cpu,guarantee=20,limit=-2,total_guarantee=100,max_limit=-2
> [EMAIL PROTECTED] ckrm]#
> 
> My idea was to give only 20% share of total CPU time to the class C1. So that 
> if I move the "make" processes created by kernbench to C1, they will run 
> slower because of 20% CPU. ( I am not sure if I am correct in configuring 
> this in the share file )
> 
> Then I ran kernbench for 2 runs and 4 jobs in each run. Whenever each run 
> started, I wrote the make process ID ( corresponding to that run ) to 
> C1/members. ( to move them to C1 )
> 
> Please find the second result in kernbench-results2. 
> 
> I find that Percent CPU is 98.5 in the first file and 97.5 in the second 
> file. Just 1% decrease for configuring 20% share of the CPU ?

Another CPU hog process, such as an infinite loop must be run on the other
class. Otherwise kernbench can consume whole CPU time regardless of its share.

Please not that it is a guarantee, not limit. Even though other class try to
consume over 80% of CPU, 20% is guaranteed for C1. It is the function. 

> I am not sure if I am using the kernbench tool in correct manner or 
> configuring shares of the classes correctly. Please let me know.
> 
> My aim is to somehow see that when I change the shares for a class, the 
> process belonging to the class gets slowed down or speeds up. In short, 
> seeing the CPU controller working :)
> 
> Thanks,
> Rajaram.

Thanks,
MAEDA Naoaki


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to