tests/bench: set process affinity in throughput.py.
This commit is contained in:
parent
c0db283ac7
commit
ffdf31edd7
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue