On Fri, 2008-11-21 at 17:25 +0530, [EMAIL PROTECTED] wrote: > plain text document attachment > (change-share-values-to-some-practical-values-in-test9-10.patch) > This patch changes the shares values for the groups in test num 9 to some > practical values. (instead of 2,3,4,5...100,200,300,400.... ) > > Signed-off-by: Sudhir Kumar <[EMAIL PROTECTED]>
Thanks. Regards-- Subrata > > Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test04.c > =================================================================== > --- ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/cpuctl_test04.c > +++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test04.c > @@ -136,7 +136,13 @@ int main(int argc, char* argv[]) > tst_brkm (TBROK, cleanup, "Invalid test number passed\n"); > } > > - mygroup_shares = mygroup_num + 1; /* Min shares value currently > is 2 */ > + /* > + * Let us give the default group 100 shares, as other groups will have > + * a multiple of 100 shares. > + * WARN: For large num of groups this may hit MAX_SHARES > + */ > + mygroup_shares = mygroup_num * 100; > + > sprintf(mytaskfile, "%s", mygroup); > strcat (mytaskfile,"/tasks"); > sprintf(mysharesfile, "%s", mygroup); > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
