On Wed, 2008-10-29 at 21:22 +0530, Subrata Modak wrote:
> Hi,
> 
> The following patch Integrates the remaining MMAPSTRESS into runltp.
> 
> Signed-Off-By: Subrata Modak <[EMAIL PROTECTED]>

These has also been integrated. I would like you to test this and come
up with issues if any. There will be such integration of tests which are
existent in LTP, but do not run. We will fix those if required, and,
make them to run either with runltp, or, with runalltests.sh.

I have played with the parameters to reduce the degree of stressness
here, as i intend to run them with runltp. I would like all of you to
experiment with them as well and come up with the best parameter
combination for these tests.

Regards--
Subrata

> 
> --
> 
> diff -uprN
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress01.c
> ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress01.c
> ---
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress01.c
> 2008-10-29 20:16:53.000000000 +0530
> +++ ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress01.c
> 2008-10-29 19:22:24.000000000 +0530
> @@ -148,7 +148,7 @@ main(int argc, char *argv[])
>       uchar_t *buf=NULL;
>       unsigned int seed;
>       int pagesize = sysconf(_SC_PAGE_SIZE);
> -     int alarmtime = 0;
> +     float alarmtime = 0;
>       struct sigaction sa;
>       unsigned i;
>       int write_cnt;
> @@ -175,7 +175,7 @@ main(int argc, char *argv[])
>                       debug = 1;
>                       break;
>               case 't':
> -                     alarmtime = atoi(optarg) * 60;
> +                     alarmtime = atof(optarg) * 60;
>                       break;
>               case 'p':
>                       nprocs = atoi(optarg);
> @@ -244,7 +244,7 @@ main(int argc, char *argv[])
>                       filename, filesize, pattern);
>  #endif /* LARGE_FILE */
>               if (alarmtime)
> -                     (void)printf("running for %d minutes\n", alarmtime/60);
> +                     (void)printf("running for %f minutes\n", alarmtime/60);
>               else
>                       (void)printf("running with no time limit\n");
>       }
> diff -uprN
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress09.c
> ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress09.c
> ---
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress09.c
> 2008-10-29 20:16:53.000000000 +0530
> +++ ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress09.c
> 2008-10-29 19:55:47.000000000 +0530
> @@ -123,7 +123,7 @@ main(int argc, char *argv[])
>       pid_t pid;
>       uchar_t *buf, *ptr;
>       unsigned int seed;
> -     int alarmtime = 0;
> +     float alarmtime = 0;
>       struct sigaction sa;
>       unsigned i, j;
>       uchar_t data;
> @@ -145,7 +145,7 @@ main(int argc, char *argv[])
>                       debug = 1;
>                       break;
>               case 't':
> -                     alarmtime = atoi(optarg) * 60;
> +                     alarmtime = atof(optarg) * 60;
>                       break;
>               case 'p':
>                       nprocs = atoi(optarg);
> @@ -187,7 +187,7 @@ main(int argc, char *argv[])
>               (void)printf("%s mapsize %d bytes, pattern %d\n", 
>                       progname, mapsize, pattern);
>               if (alarmtime)
> -                     (void)printf("running for %d minutes\n", alarmtime/60);
> +                     (void)printf("running for %f minutes\n", alarmtime/60);
>               else
>                       (void)printf("running with no time limit\n");
>       }
> diff -uprN
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress10.c
> ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress10.c
> ---
> ltp-full-20081023/testcases/kernel/mem/mmapstress.orig/mmapstress10.c
> 2008-10-29 20:16:53.000000000 +0530
> +++ ltp-full-20081023/testcases/kernel/mem/mmapstress/mmapstress10.c
> 2008-10-29 19:58:08.000000000 +0530
> @@ -169,7 +169,7 @@ main(int argc, char *argv[])
>       uchar_t *buf=NULL;
>       unsigned int seed;
>       int pagesize = sysconf(_SC_PAGE_SIZE);
> -     int alarmtime = 0;
> +     float alarmtime = 0;
>       struct sigaction sa;
>       unsigned i;
>       int write_cnt;
> @@ -196,7 +196,7 @@ main(int argc, char *argv[])
>                       debug = 1;
>                       break;
>               case 't':
> -                     alarmtime = atoi(optarg) * 60;
> +                     alarmtime = atof(optarg) * 60;
>                       break;
>               case 'p':
>                       nprocs = atoi(optarg);
> @@ -281,7 +281,7 @@ main(int argc, char *argv[])
>                       filename, filesize, pattern);
>  #endif /* LARGE_FILE */
>               if (alarmtime)
> -                     (void)printf("running for %d minutes\n", alarmtime/60);
> +                     (void)printf("running for %f minutes\n", alarmtime/60);
>               else
>                       (void)printf("running with no time limit\n");
>       }
> --- ltp-full-20081023/runtest/mm.orig 2008-10-29 19:05:05.000000000
> +0530
> +++ ltp-full-20081023/runtest/mm      2008-10-29 20:18:14.000000000 +0530
> @@ -41,3 +41,15 @@ shmt10 shmt10
> 
>  shm_test01   shm_test -l 10 -t 2
>  mallocstress01       mallocstress
> +
> +mmapstress01 -p 20 -t 0.2
> +mmapstress02
> +mmapstress03
> +TMPFILE=`mktemp /tmp/example.XXXXXXXXXX`; ls -lR /usr/include/ >
> $TMPFILE; mmapstress04 $TMPFILE 4096
> +mmapstress05
> +mmapstress06 20
> +TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE 4096
> 1 8192
> +mmapstress08
> +mmapstress09 -p 20 -t 0.2
> +mmapstress10 -p 20 -t 0.2
> +
> 
> 
> Regards--
> Subrata
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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

Reply via email to