mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Xenstored is absolutely mandatory for a Xen host and it can't be restarted, so being killed by OOM-killer in case of memory shortage is to be avoided. Set /proc/$pid/oom_score_adj (if available) per default to -500 (this translates to 50% of dom0 memory size) in order to allow xenstored to use large amounts of memory without being killed. The percentage of dom0 memory above which the oom killer is allowed to kill xenstored can be set via XENSTORED_OOM_MEM_THRESHOLD in xencommons. Make sure the pid file isn't a left-over from a previous run delete it before starting xenstored. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Ian Jackson <iwj@xenproject.org> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
97 lines
2.3 KiB
Plaintext
97 lines
2.3 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: ""
|
|
#
|
|
# 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
|