Lines Matching +full:parallel +full:- +full:in
4 # SPDX-License-Identifier: BSD-2-Clause
8 # Redistribution and use in source and binary forms, with or without
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
20 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55 # --- syscall (563, FreeBSD ELF64, sys_getrandom), rip = 0x80041899a, rsp = 0x7ffffffc3cb8, rbp = 0…
60 # version: FreeBSD 13.0-CURRENT #0 r358094: Wed Feb 19 06:25:16 CET 2020\012 pho@t2.osted…
69 mycc -o getrandom2 -Wall -Wextra -O0 -g getrandom2.c || exit 1
70 rm -f getrandom2.c
76 [ -f getrandom2.core -a $s -eq 0 ] &&
77 { ls -l getrandom2.core; s=1; }
80 rm -rf $dir/getrandom2
103 static int parallel;
106 #define PARALLEL 40000 /* Arbitrary cap */
116 while (atomic_load(&share[SYNC]) != parallel)
138 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
143 parallel = rlp.rlim_cur / 100 * 80;
144 if (parallel > PARALLEL)
145 parallel = PARALLEL;
146 pids = calloc(parallel, sizeof(pid_t));
157 if (mx > f / parallel)
158 mx = f / parallel;
159 if ((bp = mmap(NULL, mx, PROT_READ | PROT_WRITE, MAP_ANON, -1,
163 if (getrandom(bp, mx, 0) != -1)
168 parallel);
169 for (i = 0; i < parallel; i++) {
172 if (pids[i] == -1)
175 for (i = 0; i < parallel; i++) {
176 if (waitpid(pids[i], &status, 0) == -1)