-.TH SADC 8 "JULY 2012" Linux "Linux User's Manual" -*- nroff -*-
+.TH SADC 8 "JUNE 2013" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
sadc \- System activity data collector.
.SH SYNOPSIS
.B XDISK
keyword is an extension to the
.B DISK
-one and indicates that partition statistics should be collected by
+one and indicates that partitions and filesystems statistics should be collected by
.B sadc
in addition to disk statistics. This option works only with kernels 2.6.25
and later.
-.TH SAR 1 "MAY 2013" Linux "Linux User's Manual" -*- nroff -*-
+.TH SAR 1 "JUNE 2013" Linux "Linux User's Manual" -*- nroff -*-
.SH NAME
sar \- Collect, report, or save system activity information.
.SH SYNOPSIS
Display statistics for currently mounted filesystems. Pseudo-filesystems are
ignored. At the end of the report,
.B sar
-will display a summary of all those filesystems. The following values are
-displayed:
+will display a summary of all those filesystems.
+Note that filesystems statistics depend on sadc option "-S XDISK" to be collected.
+The following values are displayed:
.B MBfsfree
.RS
collect_group_activities(G_DISK, AO_F_NULL);
}
else if (!strcmp(p, K_XDISK)) {
- /* Select group of disk and partition activities */
- collect_group_activities(G_DISK, AO_F_DISK_PART);
+ /* Select group of disk and partition/filesystem activities */
+ collect_group_activities(G_DISK + G_XDISK, AO_F_DISK_PART);
}
else if (!strcmp(p, K_SNMP)) {
/* Select group of SNMP activities */
else if (!strcmp(p, K_ALL) || !strcmp(p, K_XALL)) {
/* Select all activities */
for (i = 0; i < NR_ACT; i++) {
+
+ if (!strcmp(p, K_ALL) && (act[i]->group & G_XDISK))
+ /*
+ * Don't select G_XDISK activities
+ * when option -S ALL is used.
+ */
+ continue;
+
act[i]->options |= AO_COLLECTED;
}
if (!strcmp(p, K_XALL)) {
/* Tell sadc to also collect partition statistics */
- collect_group_activities(G_DISK, AO_F_DISK_PART);
+ collect_group_activities(G_DISK + G_XDISK, AO_F_DISK_PART);
}
}
else if (strspn(argv[opt], DIGITS) == strlen(argv[opt])) {