Switching mechanism for promotion policies

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2019-08-26 13:52:11 +02:00
parent e3a20c0da0
commit a1d3cf0c4d
12 changed files with 252 additions and 26 deletions

23
inc/promotion/nhit.h Normal file
View File

@@ -0,0 +1,23 @@
/*
* Copyright(c) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef __OCF_PROMOTION_NHIT_H__
#define __OCF_PROMOTION_NHIT_H__
enum nhit_param {
nhit_insertion_threshold,
nhit_trigger_threshold,
nhit_param_max
};
#define NHIT_MIN_THRESHOLD 2
#define NHIT_MAX_THRESHOLD 1000
#define NHIT_THRESHOLD_DEFAULT 3
#define NHIT_MIN_TRIGGER 0
#define NHIT_MAX_TRIGGER 100
#define NHIT_TRIGGER_DEFAULT 80
#endif /* __OCF_PROMOTION_NHIT_H__ */