summaryrefslogtreecommitdiffstats
path: root/data/systemd
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2011-05-10 09:24:26 -0400
committerChris Lumens <clumens@redhat.com>2011-05-16 14:07:48 -0400
commit4e5940ffc640f10d6901f6582db50899d58bc6c2 (patch)
tree10b42eba77625adc5920331df86bfbbd00f14e16 /data/systemd
parentf159bd6b1be7e2baef3b20633b38863817d7f410 (diff)
downloadanaconda-4e5940ffc640f10d6901f6582db50899d58bc6c2.tar.gz
anaconda-4e5940ffc640f10d6901f6582db50899d58bc6c2.tar.xz
anaconda-4e5940ffc640f10d6901f6582db50899d58bc6c2.zip
Add a python program to record memory usage during installation.
This program only runs during installation if the "debug" command line option is provided. It writes out a /tmp/memory.dat file which can be copied off the system and processed with the provided gnuplot script to display a graph.
Diffstat (limited to 'data/systemd')
-rw-r--r--data/systemd/Makefile.am2
-rw-r--r--data/systemd/instperf.service8
-rw-r--r--data/systemd/loader.service4
3 files changed, 11 insertions, 3 deletions
diff --git a/data/systemd/Makefile.am b/data/systemd/Makefile.am
index cebbd2ca5..465469518 100644
--- a/data/systemd/Makefile.am
+++ b/data/systemd/Makefile.am
@@ -18,7 +18,7 @@
# Author: Chris Lumens <clumens@redhat.com>
systemddir = /lib/systemd/system
-dist_systemd_DATA = anaconda-shell.service anaconda.target loader.service tmp.mount
+dist_systemd_DATA = anaconda-shell.service anaconda.target loader.service instperf.service tmp.mount
MAINTAINERCLEANFILES = Makefile.in
diff --git a/data/systemd/instperf.service b/data/systemd/instperf.service
new file mode 100644
index 000000000..b843872e3
--- /dev/null
+++ b/data/systemd/instperf.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=anaconda performance monitor
+Before=loader.service
+
+[Service]
+WorkingDirectory=/
+ExecStart=/usr/bin/instperf
+ConditionKernelCommandLine=debug
diff --git a/data/systemd/loader.service b/data/systemd/loader.service
index d80806781..5d2b0ac0d 100644
--- a/data/systemd/loader.service
+++ b/data/systemd/loader.service
@@ -1,7 +1,7 @@
[Unit]
Description=The anaconda loader
-Requires=dbus.service udev.service rsyslog.service tmp.mount
-After=dbus.service udev.service rsyslog.service tmp.mount
+Requires=dbus.service udev.service rsyslog.service tmp.mount instperf.service
+After=dbus.service udev.service rsyslog.service tmp.mount instperf.service
[Service]
Environment=HOME=/root MALLOC_CHECK_=2 MALLOC_PERTURB_=204 PATH=/usr/bin:/bin:/sbin:/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin:/mnt/sysimage/usr/sbin:/mnt/sysimage/sbin PYTHONPATH=/tmp/updates TERM=linux