- Add 'retune' verb to ksmtuned init script
This commit is contained in:
parent
252dbd0999
commit
7cc048b3d4
11
ksmtuned
11
ksmtuned
@ -12,6 +12,9 @@
|
|||||||
# make ksm work harder and harder untill memory load falls below that
|
# make ksm work harder and harder untill memory load falls below that
|
||||||
# threshold.
|
# threshold.
|
||||||
#
|
#
|
||||||
|
# send SIGUSR1 to this process right after a new qemu process is started, or
|
||||||
|
# following its death, to retune ksm accordingly
|
||||||
|
#
|
||||||
# needs testing and ironing. contact danken@redhat.com if something breaks.
|
# needs testing and ironing. contact danken@redhat.com if something breaks.
|
||||||
|
|
||||||
if [ -f /etc/ksmtuned.conf ]; then
|
if [ -f /etc/ksmtuned.conf ]; then
|
||||||
@ -105,10 +108,16 @@ adjust () {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nothing () {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
loop () {
|
loop () {
|
||||||
|
trap nothing SIGUSR1
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
sleep $KSM_MONITOR_INTERVAL
|
sleep $KSM_MONITOR_INTERVAL &
|
||||||
|
wait $!
|
||||||
adjust
|
adjust
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -75,8 +75,11 @@ case "$1" in
|
|||||||
condrestart)
|
condrestart)
|
||||||
condrestart
|
condrestart
|
||||||
;;
|
;;
|
||||||
|
retune)
|
||||||
|
kill -SIGUSR1 `cat ${pidfile}`
|
||||||
|
RETVAL=$?
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $prog {start|stop|restart|condrestart|status|help}"
|
echo $"Usage: $prog {start|stop|restart|condrestart|status|retune|help}"
|
||||||
RETVAL=3
|
RETVAL=3
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: QEMU is a FAST! processor emulator
|
Summary: QEMU is a FAST! processor emulator
|
||||||
Name: qemu
|
Name: qemu
|
||||||
Version: 0.11.0
|
Version: 0.11.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
# Epoch because we pushed a qemu-1.0 package
|
# Epoch because we pushed a qemu-1.0 package
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: GPLv2+ and LGPLv2+ and BSD
|
License: GPLv2+ and LGPLv2+ and BSD
|
||||||
@ -534,6 +534,9 @@ fi
|
|||||||
%{_mandir}/man1/qemu-img.1*
|
%{_mandir}/man1/qemu-img.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 6 2009 Mark McLoughlin <markmc@redhat.com> - 2:0.11.0-5
|
||||||
|
- Add 'retune' verb to ksmtuned init script
|
||||||
|
|
||||||
* Mon Oct 5 2009 Mark McLoughlin <markmc@redhat.com> - 2:0.11.0-4
|
* Mon Oct 5 2009 Mark McLoughlin <markmc@redhat.com> - 2:0.11.0-4
|
||||||
- Use rtl8029 PXE rom for ne2k_pci, not ne (#526777)
|
- Use rtl8029 PXE rom for ne2k_pci, not ne (#526777)
|
||||||
- Also, replace the gpxe-roms-qemu pkg requires with file-based requires
|
- Also, replace the gpxe-roms-qemu pkg requires with file-based requires
|
||||||
|
Loading…
Reference in New Issue
Block a user