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 ? 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.
kernbench-results1
Description: kernbench-results1
kernbench-results2
Description: kernbench-results2