Hi,
Thank you very much , as I run the two
instances of the same program having the infinite loop
, and reassign one of them to the class c1 , having
cpu limit=20,guarantee=20.
The scheduler works well as it assigns the
16-20% of resource to the reclassified program and
remaining 80% to the other program.
Now if I want to enable the hard limits ,
how should I go for it .
Thanking you ,
Regards ,
Shishir.
--- Shailabh Nagar <[EMAIL PROTECTED]> wrote:
> Oops- my bad.
> Both guarantees and limits are enforced in the CPU
> controller using a
> work-preserving strategy i.e. if there is no
> "competition" for the CPU,
> a process/class is allowed to exceed its guarantee
> and limit. i.e the
> limits are "soft".
>
> The code for hard limit enforcement is there but not
> enabled yet.
> So for now, could you try running two instances of
> your infinite loop
> process (one in the class with 20% limit but not the
> other) ? That
> should make the 20% one limit itself.
>
>
> -- Shailabh
>
>
> shishir randive wrote:
> > Hi ,
> >
> > As per your instructions I tried with
> >
> > "res=cpu, guarantee=20" >
> /rcfs/taskcalass/c1/shares
> >
> > but it is not working ....
> >
> > the /rcfs/taskclass/config contains
> following
> >
> > res=numtasks,parameter=somevalue
> > cls=ckrm_cpu class , parameter-somevalue
> >
> >
> > Regards ,
> > Shishir.
> >
> > --- Shailabh Nagar <[EMAIL PROTECTED]> wrote:
> >
> >
> >>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
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The all-new My Yahoo! - What will yours do?
> > http://my.yahoo.com
> >
>
>
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
-------------------------------------------------------
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