Debian Codegraph @

nfsometerlib/workloads/dd_100m_1k.nfsometer

raw
1 #
2 # RUNDIR - a newly created directory on the nfs share.
3 # will exist only when running COMMAND.
4 #
5 # LOCALDIR - a directory on the local fs meant to serve as storage space for
6 # the fetch stage and setup() call
7 # will exist for setup, fetch stages and when COMMAND is run, but
8 # not durning check().
9 #
10
11 COMMAND="dd if=/dev/zero of=./dd_file.100m_1k bs=1024 count=102400"
12 DESCRIPTION="A run of dd(1) writing a 100MB file of zeros in 1k blocks"
13
14 # workload_check()
15 # - no arguments
16 # - any output to stdout means the check failed
17 # - use need_* functions from workloads.sh
18 workload_check()
19 {
20 need_bin dd
21 }
22
23 # workload_setup()
24 # - no arguments
25 # - non-zero return indicates a problem
26 workload_setup()
27 {
28 return 0
29 }