Follow-on to pull-request #665...update manpage and comments.
These reflect support for -A on Windows.
Этот коммит содержится в:
родитель
5b27ea39a7
Коммит
222da46ba9
@ -127,7 +127,7 @@ The length, attributes, and in some cases contents of the received
|
|||||||
file may not match those of the original file.
|
file may not match those of the original file.
|
||||||
.TP
|
.TP
|
||||||
.BR -A ", " --affinity " \fIn/n,m\fR"
|
.BR -A ", " --affinity " \fIn/n,m\fR"
|
||||||
Set the CPU affinity, if possible (Linux and FreeBSD only).
|
Set the CPU affinity, if possible (Linux, FreeBSD, and Windows only).
|
||||||
On both the client and server you can set the local affinity by using
|
On both the client and server you can set the local affinity by using
|
||||||
the \fIn\fR form of this argument (where \fIn\fR is a CPU number).
|
the \fIn\fR form of this argument (where \fIn\fR is a CPU number).
|
||||||
In addition, on the client side you can override the server's
|
In addition, on the client side you can override the server's
|
||||||
|
@ -3547,7 +3547,7 @@ iperf_json_finish(struct iperf_test *test)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* CPU affinity stuff - Linux and FreeBSD only. */
|
/* CPU affinity stuff - Linux, FreeBSD, and Windows only. */
|
||||||
|
|
||||||
int
|
int
|
||||||
iperf_setaffinity(struct iperf_test *test, int affinity)
|
iperf_setaffinity(struct iperf_test *test, int affinity)
|
||||||
@ -3589,10 +3589,10 @@ iperf_setaffinity(struct iperf_test *test, int affinity)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
|
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
|
||||||
i_errno = IEAFFINITY;
|
i_errno = IEAFFINITY;
|
||||||
return -1;
|
return -1;
|
||||||
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
|
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -3628,10 +3628,10 @@ iperf_clearaffinity(struct iperf_test *test)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
|
#else /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
|
||||||
i_errno = IEAFFINITY;
|
i_errno = IEAFFINITY;
|
||||||
return -1;
|
return -1;
|
||||||
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY */
|
#endif /* neither HAVE_SCHED_SETAFFINITY nor HAVE_CPUSET_SETAFFINITY nor HAVE_SETPROCESSAFFINITYMASK */
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user