Lines Matching +full:parallel +full:- +full:in

7 # Redistribution and use in source and binary forms, with or without
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
19 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
37 [ $# -eq 1 ] && runtime=$1
41 mycc -o burnin -Wall -Wextra -O0 -g burnin.c || exit 1
42 rm -f burnin.c
45 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
46 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
47 mdconfig -a -t swap -s 1g -u $mdstart || exit 1
48 newfs -n md$mdstart > /dev/null
52 mode=`pgrep -q cron && echo "Multi-user" || echo "Single-user"`
53 echo "# `uname -a` $mode mode `hostname`" > $log
55 /tmp/burnin -r 10 -d $mntpoint > /dev/null 2>&1
56 /tmp/burnin -r $runtime -d $mntpoint >> $log
58 ministat -A -C 2 -w 72 $log | tail -1 | awk '{if ($NF > .1) exit(1)}'
60 [ $s -ne 0 ] && ministat -C 2 -w 72 $log
62 while mount | grep "on $mntpoint " | grep -q /dev/md; do
65 mdconfig -d -u $mdstart
66 rm -rf /tmp/burnin $log
88 int bufsize, files, parallel, runtime;
94 fprintf(stderr, "Usage: %s [-b buf size] [-d directory] [-p parallel] "
95 "[-r runtime]\n",
108 while (share[SYNC] != (volatile u_int)parallel)
115 -1)
119 if (close(fd) == -1)
121 if (unlink(path) == -1)
141 parallel = 4;
144 while ((ch = getopt(argc, argv, "b:d:f:r:")) != -1)
157 case 'p': /* parallel */
158 if (sscanf(optarg, "%d", &parallel) != 1)
168 argc -= optind;
171 printf("# Options used: dir=%s, bufsize=%d, files=%d, parallel=%d, "
173 dir, bufsize, files, parallel, runtime);
176 if ((pids = malloc(sizeof(pid_t) * parallel)) == NULL)
177 err(1, "malloc(%d)", (int)(sizeof(pid_t) * parallel));
181 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
185 while ((time(NULL) - start) < runtime && e == 0) {
188 for (i = 0; i < parallel; i++) {
192 for (i = 0; i < parallel; i++) {