New submission from Florin Papa:
Hi all,
This is Florin Papa from the Dynamic Scripting Languages Optimizations Team
from Intel Corporation.
The patch submitted adds an affinity feature to the Grand Unified Python
Benchmarks suite to allow running benchmarks on a given CPU/set of CPUs. It is
implemented for Linux and uses the taskset command to bond a command to the
CPUs specified. This minimizes run to run variation, as we can get considerable
differences in measured performance from running a benchmark on different
cores. The taskset command receives a CPU mask that specifies which cores in
the system will be used for the command.
Example:
python perf.py –-affinity=0x1
will use processor #0
python perf.py –-affinity=0x3
will use processors #0 and #1
Thank you,
Florin
----------
components: Benchmarks
files: affinity.patch
keywords: patch
messages: 259464
nosy: brett.cannon, florin.papa, pitrou
priority: normal
severity: normal
status: open
title: Add CPU affinity to perf.py
versions: Python 2.7, Python 3.6
Added file: http://bugs.python.org/file41788/affinity.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue26274>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com