Sfoglia il codice sorgente

get rid of raw dump, note on todos

Grega Bremec 2 anni fa
parent
commit
a9aa5d1c5e
2 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 9 1
      images/entrypoint-psacct.sh
  2. 1 0
      images/entrypoint-sysstat.sh

+ 9 - 1
images/entrypoint-psacct.sh

@@ -67,8 +67,16 @@ while [ 1  ]; do
     sleep ${PERIOD}
 
     # Report after waking up.
+    #	Looks like the choice is between paging and I/O, can't have both.
+
+    # This one prints paging info...
     /usr/sbin/sa -ajlp > /var/account/psacct-dump-all
-    /usr/sbin/dump-acct /var/account/pacct > /var/account/psacct-dump-raw
+
+    # ...and this one prints total I/O operations (which seems to be unsupported).
+    #/usr/sbin/sa -ajlD > /var/account/psacct-dump-all
+
+    # This is less than very useful.
+    #/usr/sbin/dump-acct /var/account/pacct > /var/account/psacct-dump-raw
 
     # Could make a CSV out of the above "sa":
     #   | tr -s' ' | sed 's/^ //; s/ /,/g'

+ 1 - 0
images/entrypoint-sysstat.sh

@@ -64,6 +64,7 @@ while [ 1 ]; do
     if [ ${NEW_HOUR} -lt ${PREV_HOUR} ]; then
 	echo "Marking last saXX as rotated..."
 	/usr/lib64/sa/sa1 --rotate
+	# TODO: remove the old file
     fi
     PREV_HOUR=${NEW_HOUR}