tests/bench: set process affinity in throughput.py.

This commit is contained in:
David Wilson 2019-02-14 21:21:56 +00:00
parent c0db283ac7
commit ffdf31edd7
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import time
import mitogen
import mitogen.service
import ansible_mitogen.affinity
def prepare():
@ -45,6 +46,8 @@ def run_test(router, fp, s, context):
@mitogen.main()
def main(router):
ansible_mitogen.affinity.policy.assign_muxprocess()
bigfile = tempfile.NamedTemporaryFile()
fill_with_random(bigfile, 1048576*512)