diff options
author | 2016-12-16 00:06:14 +0200 | |
---|---|---|
committer | 2016-12-16 00:06:14 +0200 | |
commit | 4d72a3d4a5ac615791538fabdb7f11fa5c0523f6 (patch) | |
tree | 46b16b6a2679d5b139f0c311802f9020c8f37e42 /scripts | |
parent | 1602ab2067f1752b0c72c2cd1335d210260b3b04 (diff) |
master_daemon: taskset to 0
Change-Id: I74ef8bdf8b0be9f29e0dfc2bae68c1cb451e1a7a
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/master_daemon.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/master_daemon.py b/scripts/master_daemon.py index c3c9c2d8..855358ff 100755 --- a/scripts/master_daemon.py +++ b/scripts/master_daemon.py @@ -162,6 +162,11 @@ def _check_path_under_current_or_temp(path): if getpass.getuser() != 'root': fail('Please run this program as root/with sudo') +pid = os.getpid() +ret = os.system('taskset -pc 0 %s' % pid) +if ret: + fail('Could not set self affinity to core zero.') + daemon_actions = OrderedDict([('start', 'start the daemon'), ('stop', 'exit the daemon process'), ('show', 'prompt the status of daemon process (running / not running)'), |