mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 09:54:23 -05:00
Fix process startup
escape the % that got added in 92168cb
so that the process starts up ok.
This commit is contained in:
parent
92168cbbc5
commit
d2352347cf
@ -1,5 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright 2014-2016 OpenMarket Ltd
|
# Copyright 2014-2016 OpenMarket Ltd
|
||||||
|
# Copyright 2017 New Vector Ltd
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@ -148,22 +149,24 @@ class ServerConfig(Config):
|
|||||||
# When running as a daemon, the file to store the pid in
|
# When running as a daemon, the file to store the pid in
|
||||||
pid_file: %(pid_file)s
|
pid_file: %(pid_file)s
|
||||||
|
|
||||||
# CPU affinity mask. Setting this restricts the CPUs on which the process
|
# CPU affinity mask. Setting this restricts the CPUs on which the
|
||||||
# will be scheduled. It is represented as a bitmask, with the lowest order
|
# process will be scheduled. It is represented as a bitmask, with the
|
||||||
# bit corresponding to the first logical CPU and the highest order bit
|
# lowest order bit corresponding to the first logical CPU and the
|
||||||
# corresponding to the last logical CPU. Not all CPUs may exist on a
|
# highest order bit corresponding to the last logical CPU. Not all CPUs
|
||||||
# given system but a mask may specify more CPUs than are present.
|
# may exist on a given system but a mask may specify more CPUs than are
|
||||||
|
# present.
|
||||||
#
|
#
|
||||||
# For example:
|
# For example:
|
||||||
# 0x00000001 is processor #0,
|
# 0x00000001 is processor #0,
|
||||||
# 0x00000003 is processors #0 and #1,
|
# 0x00000003 is processors #0 and #1,
|
||||||
# 0xFFFFFFFF is all processors (#0 through #31).
|
# 0xFFFFFFFF is all processors (#0 through #31).
|
||||||
#
|
#
|
||||||
# This is desirable for Synapse processes (especially workers), which are
|
# Pinning a Python process to a single CPU is desirable, because Python
|
||||||
# inherently single-threaded due to the GIL and can suffer a 30-40% slowdown
|
# is inherently single-threaded due to the GIL, and can suffer a
|
||||||
# due to cache blow-out and thread context switching if the scheduler happens
|
# 30-40%% slowdown due to cache blow-out and thread context switching
|
||||||
# to schedule the underlying threads across different cores.
|
# if the scheduler happens to schedule the underlying threads across
|
||||||
# See https://www.mirantis.com/blog/improve-performance-python-programs-restricting-single-cpu/
|
# different cores. See
|
||||||
|
# https://www.mirantis.com/blog/improve-performance-python-programs-restricting-single-cpu/.
|
||||||
#
|
#
|
||||||
# cpu_affinity: 0xFFFFFFFF
|
# cpu_affinity: 0xFFFFFFFF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user