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
33 [ `id -u` -ne 0 ] && echo "Must be root!" && exit 1
39 mycc -o freepages -Wall -Wextra -O0 -g freepages.c || exit 1
40 rm -f freepages.c
43 $dir/freepages `sysctl -n hw.usermem`
45 [ -f freepages.core -a $s -eq 0 ] &&
46 { ls -l freepages.core; mv freepages.core /tmp; s=1; }
48 rm -rf $dir/freepages
68 #define PARALLEL 6
80 while (share[SYNC] != PARALLEL)
83 while ((time(NULL) - start) < RUNTIME) {
84 len = atol(s) / PARALLEL;
87 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
91 if (munmap(cp, len) == -1)
101 pid_t pids[PARALLEL];
108 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
111 for (i = 0; i < PARALLEL; i++) {
114 if (pids[i] == -1)
117 for (i = 0; i < PARALLEL; i++) {
118 if (waitpid(pids[i], &status, 0) == -1)