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.
Add "prealloc" variable to configure script
sar (or sadc) allocates empty records in the data files it creates so that it can save statistics for devices (disks, network interfaces, etc.) that may be added to the system after the file was created. The drawback is that data files take more space on disk than actually strictly necessary. Using the "prealloc" variable with configure (before compiling sysstat), the user can tell how much space he wants to allocate. This variable will determine the size of data files created by sar/sadc. The default value is 1, meaning that some empty records will be allocated. A value of 0 means that data files will be the smallest possible.
- Loading branch information
Sebastien GODARD
committed
Sep 14, 2013
1 parent
2067d2f
commit 436f85f
Showing
8 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ sysstat | |
crontab | ||
version.h | ||
sysconfig.h | ||
prealloc.h | ||
sysstat.sysconfig | ||
sysstat.service | ||
sysstat.crond | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
sar (or sadc) allocates empty records in the data files it creates so that | ||
it can save statistics for devices (disks, network interfaces, etc.) that | ||
may be added to the system after the file was created. The drawback is that | ||
data files take more space on disk than actually strictly necessary. | ||
Answer here a positive integer number telling sar/sadc how much space they | ||
should allocate for such devices. The default value (1) means that a few | ||
records will be allocated. A greater value (e.g. 2 or 3) means that many | ||
more of them will be allocated. A value of 0 doesn't allocate any empty | ||
records. | ||
The default value should be OK for most of you. | ||
|
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* sysstat: System performance tools for Linux | ||
* (C) 1999-2013 by Sebastien Godard (sysstat <at> orange.fr) | ||
*/ | ||
|
||
#ifndef _PREALLOC_H | ||
#define _PREALLOC_H | ||
|
||
/* Preallocation constants for sar */ | ||
#define NR_IFACE_PREALLOC (2 * @PREALLOC_FACTOR@) | ||
#define NR_SERIAL_PREALLOC (2 * @PREALLOC_FACTOR@) | ||
#define NR_DISK_PREALLOC (3 * @PREALLOC_FACTOR@) | ||
#define NR_FREQ_PREALLOC (0 * @PREALLOC_FACTOR@) | ||
#define NR_USB_PREALLOC (5 * @PREALLOC_FACTOR@) | ||
#define NR_FILESYSTEM_PREALLOC (3 * @PREALLOC_FACTOR@) | ||
|
||
#endif /* _PREALLOC_H */ |
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