projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
solaris: add os_phys_mem() implementation
[fio.git]
/
steadystate.h
diff --git
a/steadystate.h
b/steadystate.h
index 3829ee412e95ae763a65b83ac6729b87f57ce661..bbc3945ceb93e0bf89d89e7d2accdd6c34dd31dd 100644
(file)
--- a/
steadystate.h
+++ b/
steadystate.h
@@
-1,45
+1,43
@@
#ifndef FIO_STEADYSTATE_H
#define FIO_STEADYSTATE_H
#ifndef FIO_STEADYSTATE_H
#define FIO_STEADYSTATE_H
+#include "stat.h"
#include "thread_options.h"
#include "thread_options.h"
+#include "lib/ieee754.h"
extern void steadystate_check(void);
extern void steadystate_setup(void);
extern void steadystate_check(void);
extern void steadystate_setup(void);
-extern void td_steadystate_init(struct thread_data *);
+extern int td_steadystate_init(struct thread_data *);
+extern uint64_t steadystate_bw_mean(struct thread_stat *);
+extern uint64_t steadystate_iops_mean(struct thread_stat *);
extern bool steadystate_enabled;
extern bool steadystate_enabled;
-/*
- * For steady state detection
- */
struct steadystate_data {
double limit;
unsigned long long dur;
unsigned long long ramp_time;
struct steadystate_data {
double limit;
unsigned long long dur;
unsigned long long ramp_time;
- bool pct;
- unsigned int mode;
- int last_in_group;
- int ramp_time_over;
+ uint32_t state;
unsigned int head;
unsigned int tail;
unsigned int head;
unsigned int tail;
- u
nsigned long
*iops_data;
- u
nsigned long
*bw_data;
+ u
int64_t
*iops_data;
+ u
int64_t
*bw_data;
double slope;
double slope;
- double criterion;
double deviation;
double deviation;
+ double criterion;
- u
nsigned long long
sum_y;
- u
nsigned long long
sum_x;
- u
nsigned long long
sum_x_sq;
- u
nsigned long long
sum_xy;
- u
nsigned long long
oldest_y;
+ u
int64_t
sum_y;
+ u
int64_t
sum_x;
+ u
int64_t
sum_x_sq;
+ u
int64_t
sum_xy;
+ u
int64_t
oldest_y;
- struct time
val
prev_time;
- u
nsigned long long
prev_iops;
- u
nsigned long long
prev_bytes;
+ struct time
spec
prev_time;
+ u
int64_t
prev_iops;
+ u
int64_t
prev_bytes;
};
enum {
};
enum {
@@
-47,6
+45,10
@@
enum {
__FIO_SS_BW = 2,
__FIO_SS_SLOPE = 4,
__FIO_SS_ATTAINED = 8,
__FIO_SS_BW = 2,
__FIO_SS_SLOPE = 4,
__FIO_SS_ATTAINED = 8,
+ __FIO_SS_RAMP_OVER = 16,
+ __FIO_SS_DATA = 32,
+ __FIO_SS_PCT = 64,
+ __FIO_SS_BUFFER_FULL = 128,
FIO_SS_IOPS = __FIO_SS_IOPS,
FIO_SS_IOPS_SLOPE = __FIO_SS_IOPS | __FIO_SS_SLOPE,
FIO_SS_IOPS = __FIO_SS_IOPS,
FIO_SS_IOPS_SLOPE = __FIO_SS_IOPS | __FIO_SS_SLOPE,