@@ -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'
@@ -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}