forked from sysstat/sysstat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default sa2 now generates summary for YESTERDAY
This can be overriden by setting YESTERDAY=no in the configuration. The compile time option was removed to make it clear that this is controlled in one place, which also led to to logic simplification and code removal. This change fixes the following issues: * Previously summary was being generated at 23:53, which caused up to 7 datapoints lost if sa1 logging was set to 1 or 5 minute intervals. * To amend the previous problem, some distributions were compiling with YESTERDAY set as a compile-time option, but shipped the cron jobs as-is. This caused the additional issue that the report of a day was being delayed up to 23:53 of the next day. * Finally there is a subtle race condition that might happen if sadc tries to write to the file while sar is reading it to generate the summary, which might cause corrupted sar summaries. This does not occur when reading yesterday's files, since they are not written any more.
- Loading branch information
Showing
9 changed files
with
23 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Run system activity accounting tool every @CRON_INTERVAL@ minutes | ||
*/@CRON_INTERVAL@ * * * * @CRON_OWNER@ @SA_LIB_DIR@/sa1 1 1 | ||
# 0 * * * * @CRON_OWNER@ @SA_LIB_DIR@/sa1 @CRON_INTERVAL_SEC@ @CRON_COUNT@ & | ||
# Generate a daily summary of process accounting at 23:53 | ||
53 23 * * * @CRON_OWNER@ @SA_LIB_DIR@/sa2 -A | ||
# Generate a text summary of previous day process accounting at 00:07 | ||
7 0 * * * @CRON_OWNER@ @SA_LIB_DIR@/sa2 -A | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters