summaryrefslogtreecommitdiffstats
path: root/src/spdk/ocf/inc/cleaning/acp.h
blob: 9ca121a844b9d08e81ebb4578f401ecc2edb9301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright(c) 2012-2018 Intel Corporation
 * SPDX-License-Identifier: BSD-3-Clause-Clear
 */
#ifndef __OCF_CLEANING_ACP_H__
#define __OCF_CLEANING_ACP_H__

/**
 * @file
 * @brief ACP cleaning policy API
 */

enum ocf_cleaning_acp_parameters {
	ocf_acp_wake_up_time,
	ocf_acp_flush_max_buffers,
};

/**
 * @name ACP cleaning policy parameters
 * @{
 */

/**
 * ACP cleaning policy time between flushing cycles (in ms)
 */

/**< Wake up time minimum value */
#define OCF_ACP_MIN_WAKE_UP			0
/**< Wake up time maximum value */
#define OCF_ACP_MAX_WAKE_UP			10000
/**< Wake up time default value */
#define OCF_ACP_DEFAULT_WAKE_UP			10

/**
 * ACP cleaning thread number of dirty cache lines to be flushed in one cycle
 */

/** Dirty cache lines to be flushed in one cycle minimum value */
#define OCF_ACP_MIN_FLUSH_MAX_BUFFERS		1
/** Dirty cache lines to be flushed in one cycle maximum value */
#define OCF_ACP_MAX_FLUSH_MAX_BUFFERS		10000
/** Dirty cache lines to be flushed in one cycle default value */
#define OCF_ACP_DEFAULT_FLUSH_MAX_BUFFERS	128

/**
 * @}
 */

#endif /* __OCF_CLEANING_ACP_H__ */