diff options
author | Jan Kara <jack@suse.cz> | 2012-05-24 18:59:10 +0200 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2012-06-09 01:37:55 +0200 |
commit | f3109a51f8dc88e8a94f620240b7474b91bed37a (patch) | |
tree | 5a8d0c36787f775bd552cc00ff17571e38deda9e /lib/bch.c | |
parent | writeback: Fix lock imbalance in writeback_sb_inodes() (diff) | |
download | linux-f3109a51f8dc88e8a94f620240b7474b91bed37a.tar.xz linux-f3109a51f8dc88e8a94f620240b7474b91bed37a.zip |
lib: Proportions with flexible period
Implement code computing proportions of events of different type (like code in
lib/proportions.c) but allowing periods to have different lengths. This allows
us to have aging periods of fixed wallclock time which gives better proportion
estimates given the hugely varying throughput of different devices - previous
measuring of aging period by number of events has the problem that a reasonable
period length for a system with low-end USB stick is not a reasonable period
length for a system with high-end storage array resulting either in too slow
proportion updates or too fluctuating proportion updates.
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions