On Mon, Feb 21, 2005 at 08:37:14PM -0800, mehta kiran wrote: > Hi Chandra , > Your reply was definitely helpful. > 1.From your reply what i concluded is that > *if* after fork child belongs to the same class > as parent(in accordance with CE rules) , then > both parent and child will respect attribute > values(ex: amount of cpu or mem pages). yes.
> 2.But is there any way to specify a rule , so > that all the descendents of a process belong > to same class. Inheriting tags would provide this functionality. Currently, it is disabled.. I don't exactly remember why we disabled it. will try to remember. > 3.From other mails on this mailing list , I > inferred that tag(application tag) cannot be > used for this purpose. > 4.I can not find any info on "tag". > If i start a new process what will be its > tag.Is it inherited by child? Tag gets associated with a process only when you write the "pid tag" to the rbce_tag file. currently it is not inherited, so there is no tag for a process at fork. Also, tags come into picture only if you have RBCE. > > Example: > > I have bash running. If i do > # su - abc > then new process created goes in > a different class. > I could not find any rule which can hold both > parent and child in same class if child pid, > child gid change.(child is diffrent command then > parent nad hence cmd and args will not always > prove useful) > > 5. If whatever i told above is not wrong, > any plans to provide such a facility? > > thanks & regards, > --kiran > > > --- Chandra Seetharaman <[EMAIL PROTECTED]> wrote: > > > On Mon, Feb 21, 2005 at 02:12:10AM -0800, mehta > > kiran wrote: > > > Hi , > > > If CKRM is being used , is it always > > guaranteed > > > that child inherits parents attribute values. > > > > In the absence of CE, at fork(), parent's class _is_ > > inherited > > by the child. > > > > If you have a CE, then the CE determines where the > > new task ends, CE > > could decide the classification at fork(), exec() or > > any other kernel > > classification points. For example, in RBCE if you > > have a rule > > "cmd=sleep,class=/rcfs/taskclass/sleep_class", and > > bash belongs to > > /rcfs/taskclass, then when sleep is invoked from > > bask, at fork(), the new > > task will belong to /rcfs/taskclass, and after exec > > it will be moved to > > /rcfs/taskclass/sleep_class. > > > > > > > Ex: parent uses 10% of cpu then will child > > > also use 10% of avaible cpu > > > > They both will belong to the same class, and the > > class will be entitled to > > 10% of available cpu. > > > > > > thanks, > > > --kiran > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > -- > > > > > ---------------------------------------------------------------------- > > Chandra Seetharaman | Be careful > > what you choose.... > > - [EMAIL PROTECTED] | > > .......you may get it. > > > ---------------------------------------------------------------------- > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail -- ---------------------------------------------------------------------- Chandra Seetharaman | Be careful what you choose.... - [EMAIL PROTECTED] | .......you may get it. ---------------------------------------------------------------------- ------------------------------------------------------- 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
