Files
xen/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
T
Juergen Gross 9cfeb83cbe tools/xenstore: set open file descriptor limit for xenstored
Add a configuration item for the maximum number of open file
descriptors xenstored should be allowed to have.

The default should be "unlimited" in order not to restrict xenstored
in the number of domains it can support, but unfortunately the kernel
is normally limiting the maximum value via /proc/sys/fs/nr_open [1],
[2]. So check that file to exist and if it does, limit the maximum
value to the one specified by /proc/sys/fs/nr_open.

As an aid for the admin configuring the value add a comment specifying
the common needs of xenstored for the different domain types.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=60fd760fb9ff7034360bab7137c917c0330628c2
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0c2d64fb6cae9aae480f6a46cfe79f8d7d48b59f

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
2021-10-18 14:17:28 +01:00

110 lines
2.8 KiB
Plaintext

## Path: System/Virtualization
## Type: string
## Default: "none"
#
# Log xenconsoled messages (cf xl dmesg)
#XENCONSOLED_TRACE=[none|guest|hv|all]
## Type: string
## Default: daemon
#
# Select type of xentore service.
#
# This can be either of:
# * daemon
# * domain
#
# Changing this requires a reboot to take effect.
#
#XENSTORETYPE=daemon
## Type: string
## Default: xenstored
#
# Select xenstore implementation, this can be either
# of these below.
# Only evaluated if XENSTORETYPE is "daemon".
#
# This can be either of:
# * @sbindir@/oxenstored
# * @sbindir@/xenstored
#
# Changing this requires a reboot to take effect.
#XENSTORED=@XENSTORED@
## Type: string
## Default: unlimited
#
# Select maximum number of file descriptors xenstored is allowed to have
# opened at one time.
# For each HVM domain xenstored might need up to 5 open file descriptors,
# PVH and PV domains will require up to 3 open file descriptors. Additionally
# 20-30 file descriptors will be opened for internal uses.
# The specified value (including "unlimited") will be capped by the contents
# of /proc/sys/fs/nr_open if existing.
# Only evaluated if XENSTORETYPE is "daemon".
#XENSTORED_MAX_OPEN_FDS=unlimited
## Type: string
## Default: ""
#
# Additional commandline arguments to start xenstored,
# like "--trace-file @XEN_LOG_DIR@/xenstored-trace.log"
# See "@sbindir@/xenstored --help" for possible options.
# Only evaluated if XENSTORETYPE is "daemon".
XENSTORED_ARGS=
## Type: string
## Default: Not defined, tracing off
#
# Log xenstored messages
# Only evaluated if XENSTORETYPE is "daemon".
#XENSTORED_TRACE=[yes|on|1]
## Type: integer
## Default: 50
#
# Percentage of dom0 memory size the xenstore daemon can use before the
# OOM killer is allowed to kill it.
# The specified value is multiplied by -10 and echoed to
# /proc/PID/oom_score_adj.
#XENSTORED_OOM_MEM_THRESHOLD=50
## Type: string
## Default: @LIBEXEC@/boot/xenstore-stubdom.gz
#
# xenstore domain kernel.
# Only evaluated if XENSTORETYPE is "domain".
#XENSTORE_DOMAIN_KERNEL=@LIBEXEC@/boot/xenstore-stubdom.gz
## Type: integer
## Default: 8
#
# xenstore domain memory size in MiB.
# Only evaluated if XENSTORETYPE is "domain".
#XENSTORE_DOMAIN_SIZE=8
## Type: string
## Default: not set, no autoballooning of xenstore domain
#
# Maximum xenstore domain memory size. Can be specified as:
# - plain integer value for max size in MiB
# - fraction of host memory, e.g. 1/100
# - combination of both in form of <val>:<frac> (e.g. 8:1/100), resulting
# value will be the higher of both specifications
# Only evaluated if XENSTORETYPE is "domain".
#XENSTORE_MAX_DOMAIN_SIZE=
## Type: string
## Default: ""
#
# Additional arguments for starting the xenstore domain.
# Only evaluated if XENSTORETYPE is "domain".
XENSTORE_DOMAIN_ARGS=
# qemu path
#QEMU_XEN=@qemu_xen_path@
# Dom0 UUID
#XEN_DOM0_UUID=00000000-0000-0000-0000-000000000000