Skip to content

Instantly share code, notes, and snippets.

@elmotec
Last active November 15, 2019 10:32
Show Gist options
  • Save elmotec/44a67e1f3c92d25b056df02856d723b5 to your computer and use it in GitHub Desktop.
Save elmotec/44a67e1f3c92d25b056df02856d723b5 to your computer and use it in GitHub Desktop.
Simulate clients writing log files to a drive
; Simulate clients writing log files to a drive with fio (see https://bsdio.com/fio/)
;
; numbjobs: number of clients
; rate_iops: number of writes per seconds
; bs: size of the log entry
; size: total size of the log file
;
; Normally, the iops reported by fio should be rate_iops x numbjobs
[global]
rw=write
bs=256b
size=128kb
buffer_pattern="textdata: 012345689012345689012345689012345689012345689012345689012345689012345689012345689012345689012345689012345689
"
rate_iops=10
rate_process=poisson
filename_format=$jobname.$jobnum.$filenum.log
numjobs=20
[client]
name=logfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment