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 <[EMAIL PROTECTED]> 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; ------------------------------------------------------------------------- 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
