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
29 # Parallel write test.
57 mycc -o write -Wall -Wextra -O2 -g write.c || exit 1
58 rm -f write.c
62 [ `df -k $(dirname $diskimage) | tail -1 | awk '{print int($4 / 1024)}'` \
63 -lt $need ] &&
67 rm -rf $wd
68 mkdir -p $wd
73 rm -rf /tmp/write $wd
100 int parallel;
113 return (arc4random() % (ma - mi + 1) + mi);
125 while (share[SYNC] != (unsigned int)parallel)
133 while (share[DONE] != (unsigned int)parallel) {
136 == -1)
142 SEEK_SET) == -1)
155 if (time(NULL) - start >= RUNTIME / 4) {
174 parallel = arc4random() % MAXPROC + 1;
175 for (i = 0; i < parallel; i++) {
206 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
211 while ((time(NULL) - start) < RUNTIME && e == 0) {
214 pids = malloc(sizeof(pid_t) * parallel);
216 for (i = 0; i < parallel; i++) {
220 for (i = 0; i < parallel; i++) {