stress-ng  0.13.05
About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.
  Fossies Dox: stress-ng-0.13.05.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stress-iomix.c File Reference
#include "stress-ng.h"
Include dependency graph for stress-iomix.c:

Go to the source code of this file.

Typedefs

typedef void(* stress_iomix_func) (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 

Functions

static int stress_set_iomix_bytes (const char *opt)
 
static off_t stress_iomix_rnd_offset (const off_t max)
 
static void stress_iomix_fsync_min_1Hz (const int fd)
 
static void stress_iomix_wr_seq_bursts (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_wr_rnd_bursts (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_wr_seq_slow (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_rd_seq_bursts (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_rd_rnd_bursts (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_rd_seq_slow (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_sync (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_rd_wr_mmap (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_wr_bytes (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_wr_rev_bytes (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static void stress_iomix_rd_bytes (const stress_args_t *args, const int fd, const off_t iomix_bytes)
 
static int stress_iomix (const stress_args_t *args)
 

Variables

static const stress_help_t help []
 
static stress_iomix_func iomix_funcs []
 
static const stress_opt_set_func_t opt_set_funcs []
 
stressor_info_t stress_iomix_info
 

Typedef Documentation

◆ stress_iomix_func

typedef void(* stress_iomix_func) (const stress_args_t *args, const int fd, const off_t iomix_bytes)

Definition at line 27 of file stress-iomix.c.

Function Documentation

◆ stress_iomix()

◆ stress_iomix_fsync_min_1Hz()

◆ stress_iomix_rd_bytes()

static void stress_iomix_rd_bytes ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_rd_rnd_bursts()

static void stress_iomix_rd_rnd_bursts ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_rd_seq_bursts()

static void stress_iomix_rd_seq_bursts ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_rd_seq_slow()

static void stress_iomix_rd_seq_slow ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_rd_wr_mmap()

static void stress_iomix_rd_wr_mmap ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_rnd_offset()

static off_t stress_iomix_rnd_offset ( const off_t  max)
static

◆ stress_iomix_sync()

static void stress_iomix_sync ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_wr_bytes()

static void stress_iomix_wr_bytes ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_wr_rev_bytes()

static void stress_iomix_wr_rev_bytes ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_wr_rnd_bursts()

static void stress_iomix_wr_rnd_bursts ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_wr_seq_bursts()

static void stress_iomix_wr_seq_bursts ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_iomix_wr_seq_slow()

static void stress_iomix_wr_seq_slow ( const stress_args_t args,
const int  fd,
const off_t  iomix_bytes 
)
static

◆ stress_set_iomix_bytes()

static int stress_set_iomix_bytes ( const char *  opt)
static

Variable Documentation

◆ help

const stress_help_t help[]
static
Initial value:
= {
{ NULL, "iomix N", "start N workers that have a mix of I/O operations" },
{ NULL, "iomix-bytes N", "write N bytes per iomix worker (default is 1GB)" },
{ NULL, "iomix-ops N", "stop iomix workers after N iomix bogo operations" },
{ NULL, NULL, NULL }
}

Definition at line 29 of file stress-iomix.c.

◆ iomix_funcs

stress_iomix_func iomix_funcs[]
static
Initial value:
= {
}
static void stress_iomix_rd_seq_slow(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:353
static void stress_iomix_wr_rnd_bursts(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:154
static void stress_iomix_sync(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:397
static void stress_iomix_wr_seq_slow(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:207
static void stress_iomix_rd_bytes(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:595
static void stress_iomix_wr_rev_bytes(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:556
static void stress_iomix_wr_bytes(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:517
static void stress_iomix_rd_wr_mmap(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:468
static void stress_iomix_wr_seq_bursts(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:100
static void stress_iomix_rd_seq_bursts(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:255
static void stress_iomix_rd_rnd_bursts(const stress_args_t *args, const int fd, const off_t iomix_bytes)
Definition: stress-iomix.c:305

Definition at line 768 of file stress-iomix.c.

Referenced by stress_iomix().

◆ opt_set_funcs

const stress_opt_set_func_t opt_set_funcs[]
static
Initial value:
= {
{ 0, NULL }
}
static int stress_set_iomix_bytes(const char *opt)
Definition: stress-iomix.c:36
@ OPT_iomix_bytes
Definition: stress-ng.h:3077

Definition at line 924 of file stress-iomix.c.

◆ stress_iomix_info

stressor_info_t stress_iomix_info
Initial value:
= {
.stressor = stress_iomix,
.class = (1UL << 10 ) | (1UL << 8 ) ,
.opt_set_funcs = opt_set_funcs,
.help = help
}
static int stress_iomix(const stress_args_t *args)
Definition: stress-iomix.c:797
static const stress_opt_set_func_t opt_set_funcs[]
Definition: stress-iomix.c:924
static const stress_help_t help[]
Definition: stress-iomix.c:29

Definition at line 929 of file stress-iomix.c.