[option intervals]
summary = Fine tuning the number of snapshots per time unit
flag ignored
- [help]
- Snapshot aging is implemented in terms of intervals. There are two
- command line options related to intervals: the duration u of a unit
- interval and the number of unit intervals, denoted n below.
-
- dss removes snapshots older than n times u and tries to keep 2^(n -
- k - 1) snapshots in interval k, where the interval number k counts
- from zero to n - 1, with zero being the most recent unit interval.
-
- Hence the oldest snapshot will at most be u * n days old (4 days *
- 5 intervals = 20 days, if default values are used). Moreover, there
- are at most 2^n - 1 snapshots in total (2^5 - 1 = 31 by default). Note
- that for this to work out your system must be fast enough to create at
- least 2^(n - 1) snapshots per unit interval (16 snapshots in 4 days =
- one snapshot in 6 hours), because this is the number of snapshots in
- interval zero.
- [/help]
[option unit-interval]
short_opt = u
summary = the duration of a unit interval
.RE
[/section]
+[section snapshot distribution]
+ The age of a snapshot is measured in terms of unit
+ intervals. Given
+ the duration
+ .I u
+ of a unit
+ interval and the number
+ .I n
+ of unit intervals to consider, dss tries to keep
+ .I 2^(n-k-1)
+ snapshots in interval
+ .IR k ,
+ where the interval number
+ .I k
+ counts
+ from zero to
+ .IR n-1 ,
+ with zero being the most recent unit interval. Snapshots older than
+ .I n
+ unit intervals are regarded as outdated and are removed. There are
+ .I 2^n-1
+ snapshots in total.
+
+ For example, with four unit intervals, the 2^4 - 1 = 15 snapshots
+ are distributed as follows.
+
+ .TS
+ allbox;
+ lb r r r r
+ lb r r r r.
+ Interval 3 2 1 0
+ Snapshots \~\~\~\~*\~\~\~ \~\~*\~\~*\~\~ \~*\~*\~*\~* ********
+ .TE
+
+ Note that for this to work out the system must be fast enough to
+ create at least
+ .I 2^(n-1)
+ snapshots per unit interval because this is the number of snapshots
+ in interval zero.
+[/section]
+
[section copyright]
Written by AUTHOR()
.br