From 0f2652ebe62db9f826ee15ec3f0e40c6eb37c01b Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Fri, 19 Jan 2018 09:25:59 +0100 Subject: [PATCH] Update sysstat's FAQ Explain how to collect and save in data file only the desired activities. Signed-off-by: Sebastien GODARD --- FAQ.md | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/FAQ.md b/FAQ.md index 695a410..681ea6c 100644 --- a/FAQ.md +++ b/FAQ.md @@ -33,7 +33,7 @@ 2.21. What happened to sar's options -h, -H, -x and -X? 2.22. What is the exact meaning of the `count` parameter for sar and sadc? 2.23. Why doesn't sar deal with sub-second sampling/monitoring? -2.24. Is it possible to save only some specific activities in my daily data files? It would help to make `saXX` files take less space on disk... +2.24. Is it possible to make sadc save only some specific activities in my binary daily data files? **3. Questions related to iostat** @@ -532,28 +532,35 @@ more prone to have an influence on the data you are retrieving as the interval of time is small. --- -2.24. Is it possible to save only some specific activities in my -daily data files? It would help to make saXX files take less space -on disk... +2.24. Is it possible to make sadc save only some specific activities +in my binary daily data files? A: sadc's option -S followed by a keyword (DISK, SNMP...) can already be used to specify which optional activities are to be collected. Without this option, sadc collects a default set of activities (CPU -activity, memory activity, etc.) +activity, memory activity, network activity, etc.) Yet it is actually possible to specify explicitly which activities should be collected by sadc! You have to use sadc's option -S -followed by a numerical value corresponding to the activity you want -to collect (the values are those displayed by sadf -H and preceding -the activity name in the list of activities). The only limitation -is CPU activity which is always collected for internal purpose. -Example: To tell sadc to not collect any activities but CPU, enter: +followed by the report name corresponding to the activity you want +to collect (enter "sar --help" to know the formal report names +used by sadc). +Example: To tell sadc to collect only temperature sensors activity +in addition to the default set of activities, enter: + +``` +sadc -S A_PWR_TEMP +``` + +followed by the other classic options (interval, count, filename...) +Now assume you want to collect temperature sensors activity **without** +the other activities collected by default, +add the special report name A_NULL to the list passed to sadc, e.g.: ``` -$ sadc -S 0 +sadc -S A_NULL,A_PWR_TEMP ``` -followed by the other classic options (interval, count, filename...) -To tell sadc to collect only CPU and network activities, replace -`-S 0` with `-S 0 -S 12` (the value 12 corresponds to network activity). +Of course you can enter as many report names as you want to collect +different activities. This way you can tell sadc to collect only the desired activities. --- -- 2.49.0