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

