"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.09.56/example-jobs/io.job" (15 Mar 2019, 4489 Bytes) of package /linux/privat/stress-ng-0.09.56.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # io class stressors:
    3 #   various options have been commented out, one can remove the
    4 #   proceeding comment to enable these options if required.
    5 
    6 #
    7 # run the following tests in parallel or sequentially
    8 #
    9 run sequential
   10 # run parallel
   11 
   12 #
   13 # aggressive:
   14 #   enables more file, cache and memory aggressive options. This may
   15 #   slow tests down, increase latencies and  reduce  the  number  of
   16 #   bogo  ops as well as changing the balance of user time vs system
   17 #   time used depending on the type of stressor being used.
   18 #
   19 # aggressive
   20 
   21 #
   22 # ignite-cpu:
   23 #   alter kernel controls to try and maximize the CPU. This requires
   24 #   root  privilege  to alter various /sys interface controls.  Cur‐
   25 #   rently this only works for Intel P-State enabled x86 systems  on
   26 #   Linux.
   27 #
   28 # ignite-cpu
   29 
   30 #
   31 # keep-name:
   32 #   by  default,  stress-ng  will  attempt to change the name of the
   33 #   stress processes according to their functionality;  this  option
   34 #   disables  this and keeps the process names to be the name of the
   35 #   parent process, that is, stress-ng.
   36 #
   37 # keep-name
   38 
   39 #
   40 # metrics-brief:
   41 #   enable metrics and only output metrics that are non-zero.
   42 #
   43 metrics-brief
   44 
   45 #
   46 # verbose
   47 #   show all debug, warnings and normal information output.
   48 #
   49 verbose
   50 
   51 #
   52 # run each of the tests for 60 seconds
   53 #  stop stress test after N seconds. One can also specify the units
   54 #  of time in seconds, minutes, hours, days or years with the  suf‐
   55 #  fix s, m, h, d or y.
   56 #
   57 timeout 60s
   58 
   59 #
   60 # per stressor options start here
   61 #
   62 
   63 #
   64 # aio stressor options:
   65 #   start  N  workers  that  issue  multiple  small asynchronous I/O
   66 #   writes and reads on a relatively small temporary file using  the
   67 #   POSIX  aio  interface.  This will just hit the file system cache
   68 #   and soak up a lot of user and kernel time in  issuing  and  han‐
   69 #   dling I/O requests.  By default, each worker process will handle
   70 #   16 concurrent I/O requests.
   71 #
   72 aio 0			# 0 means 1 stressor per CPU
   73 # aio-ops 1000000	# stop after 1000000 bogo ops
   74 # aio-requests 16	# I/O requests per aio operation
   75 
   76 #
   77 # aiol stressor options:
   78 #   start N workers that issue multiple 4K random  asynchronous  I/O
   79 #   writes  using  the  Linux  aio system calls io_setup(2), io_sub‐
   80 #   mit(2), io_getevents(2) and  io_destroy(2).   By  default,  each
   81 #   worker process will handle 16 concurrent I/O requests.
   82 #
   83 aiol 0			# 0 means 1 stressor per CPU
   84 # aiol-ops 1000000	# stop after 1000000 bogo ops
   85 # aiol-requests 16	# I/O requests per aio operation
   86 
   87 #
   88 # hdd stressor options:
   89 #   start N workers continually writing, reading and removing tempo‐
   90 #   rary files. The default mode is to stress test sequential writes
   91 #   and  reads.   With  the  --ggressive  option enabled without any
   92 #   --hdd-opts options the hdd stressor will work  through  all  the
   93 #   --hdd-opt options one by one to cover a range of I/O options.
   94 #
   95 hdd 0			# 0 means 1 stressor per CPU
   96 # hdd-ops 1000000	# stop after 1000000 bogo ops
   97 # hdd-bytes 1G		# use a 1GB file
   98 # hdd-opts direct,dsync,fadv-normal,fadv-rnd,fsync,noatime,rd-rnd,wr-rnd,syncfs,utims
   99 			# various hdd options
  100 # hdd-write-size 4K	# write size
  101 
  102 #
  103 # readahead stressor options:
  104 #   start  N  workers  that  randomly  seeks  and  performs 512 byte
  105 #   read/write I/O operations on a file with readahead. The  default
  106 #   file  size  is  1  GB.  Readaheads and reads are batched into 16
  107 #   readaheads and then 16 reads.
  108 #
  109 readahead 0		# 0 means 1 stressor per CPU
  110 # readahead-ops 1000000	# stop after 1000000 bogo ops
  111 # readahead-bytes 1M	# readahead size
  112 
  113 #
  114 # seek stressor options:
  115 #   start  N  workers  that  randomly  seeks  and  performs 512 byte
  116 #   read/write I/O operations on a file. The default file size is 16
  117 #   GB.
  118 #
  119 seek 0			# 0 means 1 stressor per CPU
  120 # seek-ops 1000000	# stop after 1000000 bogo ops
  121 # seek-punch		# punch randomly located 8K holes into the file
  122 # seek-size 16GB	# file size
  123 
  124 #
  125 # sync-file stressor options:
  126 #   start N workers that perform a range of data syncs across a file
  127 #   using sync_file_range(2).  Three mixes of syncs  are  performed,
  128 #   from  start to the end of the file,  from end of the file to the
  129 #   start, and a random mix. A random selection of valid sync  types
  130 #   are     used,    covering    the    SYNC_FILE_RANGE_WAIT_BEFORE,
  131 #   SYNC_FILE_RANGE_WRITE and SYNC_FILE_RANGE_WAIT_AFTER flag bits.
  132 #
  133 sync-file 0		# 0 means 1 stressor per CPU
  134 # sync-file-ops 1000000	# stop after 1000000 bogo ops
  135 # sync-file-bytes 10%	# use 50% of the available file system
  136