Hi Shailabh, Thanks for the documentation.
As an exercise, I took the ckrm_cpu_class.c controller and tried to strip it down to its minimum internal functionality. This took about 30 minutes and worked pretty much the first time I tried it, which was quite nice. My hope is that combined with the num_task conroller, we can come up with even better descriptions and examples for building a controllers. One bug is left in the ckrm_null_class.c controller. When I mkdir /rcfs/taskclass/foo and then do rmdir /rcfs/taskclass/foo I get the following warning message: Invalid parent 00000000 in ckrm_get_next_child. Apparently the parres->core is null. Not sure why I get this with the null controller and not with the cpu controller that is also loaded in my system. Any clues. The patch for the above null controller is attached to this message. MArc > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Shailabh > Nagar > Sent: Tuesday, March 01, 2005 12:09 PM > To: ckrm-tech > Subject: [ckrm-tech] CKRM Controller Howto > > > Documentation on how to write a controller for CKRM is now available from > http://ckrm.sourceforge.net/ckrm-controller-howto.txt > > The document's focus is on the interface between a controller and CKRM, > not the actual regulation done by the controller (which will vary widely > depending on what it is controlling). The numtasks controller is > dissected to make the description concrete. > > Please give feedback on portions that are not clear. > > Thanks, > Shailabh > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > ckrm-tech mailing list > https://lists.sourceforge.net/lists/listinfo/ckrm-tech
ckrm_null.patch
Description: Binary data
