Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148564832
D7766.id20002.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
500 B
Referenced Files
None
Subscribers
None
D7766.id20002.diff
View Options
Index: tools/tools/crypto/cryptotest.c
===================================================================
--- tools/tools/crypto/cryptotest.c
+++ tools/tools/crypto/cryptotest.c
@@ -468,6 +468,11 @@
if (threads > 1) {
for (i = 0; i < threads; i++)
if (fork() == 0) {
+ cpuset_t mask;
+ CPU_ZERO(&mask);
+ CPU_SET(i, &mask);
+ cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
+ -1, sizeof(mask), &mask);
runtest(alg, count, size, cmd, &tvp[i]);
exit(0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 7:21 PM (3 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29975562
Default Alt Text
D7766.id20002.diff (500 B)
Attached To
Mode
D7766: Add cpuset(2) support to sepearate forked processes.
Attached
Detach File
Event Timeline
Log In to Comment