shishir randive wrote:
Hi ,

I am using a planet-lab kernel2.6.8-1.521.2.4,
having ckrm enabled in it ,which has a slightly
different version of the CPU scheduler than what's
currently available. I had some problem while testing
it for the cpu shares.
I create a class C1 and change its share using following commands


    mkdir /rcfs/taskclass/c1
    echo "res=cpu,limit=20,max_limit=20" >
/rcfs/taskcalass/c1/shares

then I write a c program , which has a
infinite loop , and which consumes 99.5 % of resource
CPU. I reclassify that program having pid 2720 to
class c1 using following command


    echo "2720" > /rcfs/taskclass/c1/target

          then I check the system status using command

top .

          though I reclassify the task to class c1
having max_cpu_limit 20 , the program uses 99.5 % of
the CPU.

          Why this program is not utilizing the 20 %
CPU resource.

Could you try by setting "res=cpu, guarantee=20" > /rcfs/taskcalass/c1/shares ?

Also, what does /rcfs/taskclass/config show ?

-- Shailabh


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ ckrm-tech mailing list https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to