From: Subrata M. <su...@li...> - 2008-11-25 16:13:52
|
On Fri, 2008-11-21 at 17:25 +0530, sk...@li... wrote: > plain text document attachment > (reflect-kernel-share-changes-in-tests.patch) > The tests takes too long if we keep the time interval 60 seconds. > Hence changing to 30 seconds. Also the kernel has now the max linit > on shares values (1UL <<18). So taking readings upto 7th set will > reach the max limit very soon(specialy on high end machines). > Therefore we keep the multiplier to multiply at max 4 times. > Hence we will reach till GROUP_NUM * 10^4 > > Signed-off-by: Sudhir Kumar <sk...@li...> Thanks. Regards-- Subrata > > Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test01.c > =================================================================== > --- ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/cpuctl_test01.c > +++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test01.c > @@ -64,9 +64,9 @@ > #include "../libcontrollers/libcontrollers.h" > #include "test.h" /* LTP harness APIs*/ > > -#define TIME_INTERVAL 60 /* Time interval in seconds*/ > +#define TIME_INTERVAL 30 /* Time interval in seconds*/ > #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */ > -#define NUM_SETS 7 /* How many share values (with same ratio)*/ > +#define NUM_SETS 4 /* How many share values (with same ratio)*/ > #define MULTIPLIER 10 /* decides the rate at which share value gets multiplied*/ > #define GRANULARITY 5 /* % value by which shares of a group changes */ > extern int Tst_count; > Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test02.c > =================================================================== > --- ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/cpuctl_test02.c > +++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test02.c > @@ -63,7 +63,7 @@ > #include "../libcontrollers/libcontrollers.h" > #include "test.h" /* LTP harness APIs*/ > > -#define TIME_INTERVAL 60 /* Time interval in seconds*/ > +#define TIME_INTERVAL 30 /* Time interval in seconds*/ > #define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */ > > extern int Tst_count; > Index: ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test03.c > =================================================================== > --- ltp-full-20081031.orig/testcases/kernel/controllers/cpuctl/cpuctl_test03.c > +++ ltp-full-20081031/testcases/kernel/controllers/cpuctl/cpuctl_test03.c > @@ -64,7 +64,7 @@ > #include "../libcontrollers/libcontrollers.h" > #include "test.h" /* LTP harness APIs*/ > > -#define TIME_INTERVAL 60 /* Time interval in seconds*/ > +#define TIME_INTERVAL 30 /* Time interval in seconds*/ > #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */ > > extern int Tst_count; > 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 > @@ -63,7 +63,7 @@ > #include "../libcontrollers/libcontrollers.h" > #include "test.h" /* LTP harness APIs*/ > > -#define TIME_INTERVAL 200 /* Time interval in seconds*/ > +#define TIME_INTERVAL 100 /* Time interval in seconds*/ > #define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */ > > extern int Tst_count; > > |