rpms/qemu/F-12 ksmtuned, 1.1, 1.2 ksmtuned.init, 1.1, 1.2 qemu.spec, 1.138, 1.139
Mark McLoughlin
markmc at fedoraproject.org
Tue Oct 6 13:26:58 UTC 2009
Author: markmc
Update of /cvs/pkgs/rpms/qemu/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11693
Modified Files:
ksmtuned ksmtuned.init qemu.spec
Log Message:
* Tue Oct 6 2009 Mark McLoughlin <markmc at redhat.com> - 2:0.11.0-5
- Add 'retune' verb to ksmtuned init script
Index: ksmtuned
===================================================================
RCS file: /cvs/pkgs/rpms/qemu/F-12/ksmtuned,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- ksmtuned 16 Sep 2009 17:31:15 -0000 1.1
+++ ksmtuned 6 Oct 2009 13:26:58 -0000 1.2
@@ -12,6 +12,9 @@
# make ksm work harder and harder untill memory load falls below that
# 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 at redhat.com if something breaks.
if [ -f /etc/ksmtuned.conf ]; then
@@ -105,10 +108,16 @@ adjust () {
return 0
}
+function nothing () {
+ :
+}
+
loop () {
+ trap nothing SIGUSR1
while true
do
- sleep $KSM_MONITOR_INTERVAL
+ sleep $KSM_MONITOR_INTERVAL &
+ wait $!
adjust
done
}
Index: ksmtuned.init
===================================================================
RCS file: /cvs/pkgs/rpms/qemu/F-12/ksmtuned.init,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- ksmtuned.init 16 Sep 2009 17:31:15 -0000 1.1
+++ ksmtuned.init 6 Oct 2009 13:26:58 -0000 1.2
@@ -75,8 +75,11 @@ case "$1" in
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
esac
Index: qemu.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qemu/F-12/qemu.spec,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -p -r1.138 -r1.139
--- qemu.spec 5 Oct 2009 14:26:45 -0000 1.138
+++ qemu.spec 6 Oct 2009 13:26:58 -0000 1.139
@@ -1,7 +1,7 @@
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 0.11.0
-Release: 4%{?dist}
+Release: 5%{?dist}
# Epoch because we pushed a qemu-1.0 package
Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD
@@ -534,6 +534,9 @@ fi
%{_mandir}/man1/qemu-img.1*
%changelog
+* Tue Oct 6 2009 Mark McLoughlin <markmc at redhat.com> - 2:0.11.0-5
+- Add 'retune' verb to ksmtuned init script
+
* Mon Oct 5 2009 Mark McLoughlin <markmc at redhat.com> - 2:0.11.0-4
- Use rtl8029 PXE rom for ne2k_pci, not ne (#526777)
- Also, replace the gpxe-roms-qemu pkg requires with file-based requires
More information about the fedora-extras-commits
mailing list