[Pkg-xen-devel] Bug#961511: xen-utils-common: Protect xenstored/xenconsoled against OOM
Samuel Thibault
sthibault at debian.org
Mon May 25 14:18:03 BST 2020
Samuel Thibault, le lun. 25 mai 2020 15:11:44 +0200, a ecrit:
> I'm currently using a hack such as
>
> for i in $(pgrep xenconsoled) ; do
> echo -1000 > /proc/$i/oom_score_adj
> done
>
> in /etc/init.d/xen, but there are cleaner ways to do this :)
For instance, using choom:
start-stop-daemon --start --quiet --pidfile "$XENCONSOLED_PIDFILE" --exec /usr/bin/choom -- \
-n -1000 "$XENCONSOLED" $XENCONSOLED_ARGS --pid-file "$XENCONSOLED_PIDFILE" \
Samuel
More information about the Pkg-xen-devel
mailing list