forked from ColinIanKing/stress-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetwork.job
179 lines (161 loc) · 5.86 KB
/
network.job
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#
# network class stressors:
# various options have been commented out, one can remove the
# proceeding comment to enable these options if required.
#
# run the following tests in parallel or sequentially
#
run sequential
# run parallel
#
# aggressive:
# enables more file, cache and memory aggressive options. This may
# slow tests down, increase latencies and reduce the number of
# bogo ops as well as changing the balance of user time vs system
# time used depending on the type of stressor being used.
#
# aggressive
#
# ignite-cpu:
# alter kernel controls to try and maximize the CPU. This requires
# root privilege to alter various /sys interface controls. Cur‐
# rently this only works for Intel P-State enabled x86 systems on
# Linux.
#
# ignite-cpu
#
# keep-name:
# by default, stress-ng will attempt to change the name of the
# stress processes according to their functionality; this option
# disables this and keeps the process names to be the name of the
# parent process, that is, stress-ng.
#
# keep-name
#
# metrics-brief:
# enable metrics and only output metrics that are non-zero.
#
metrics-brief
#
# verbose
# show all debug, warnings and normal information output.
#
verbose
#
# run each of the tests for 60 seconds
# stop stress test after N seconds. One can also specify the units
# of time in seconds, minutes, hours, days or years with the suf‐
# fix s, m, h, d or y.
#
timeout 10s
#
# per stressor options start here
#
#
# fifo stressor options:
# start N workers that exercise a named pipe by transmitting 64
# bit integers.
#
fifo 0 # 0 means 1 stressor per CPU
# fifo-ops 1000000 # stop after 1000000 bogo ops
#
# dccp stressor options:
# start N workers that send and receive data using the Datagram
# Congestion Control Protocol (DCCP) (RFC4340). This involves a
# pair of client/server processes performing rapid connect, send
# and receives and disconnects on the local host.
#
dccp 0 # 0 means 1 stressor per CPU
# dccp-ops 1000000 # stop after 1000000 bogo ops
# dccp-domain ipv6 # domains, ipv4 or ipv6
# dccp-port 12000 # port to use
# dccp-opts send # use send, sendmsg or sendmmsg to send data
#
# epoll stressor options:
# start N workers that perform various related socket stress
# activity using epoll_wait(2) to monitor and handle new connec‐
# tions. This involves client/server processes performing rapid
# connect, send/receives and disconnects on the local host. Using
# epoll allows a large number of connections to be efficiently
# handled, however, this can lead to the connection table filling
# up and blocking further socket connections, hence impacting on
# the epoll bogo op stats. For ipv4 and ipv6 domains, multiple
# servers are spawned on multiple ports. The epoll stressor is for
# Linux only.
#
epoll 0 # 0 means 1 stressor per CPU
# epoll-ops 1000000 # stop after 1000000 bogo ops
# epoll-domain ipv6 # domains, ipv4, ipv6 or unix
# epoll-port 11000 # port to use
#
# icmp-flood stressor options:
# start N workers that flood localhost with randonly sized ICMP
# ping packets. This option can only be run as root.
#
icmp-flood 0 # 0 means 1 stressor per CPU
# icmp-flood-ops 1000000 # stop after 1000000 bogo ops
#
# sctp stressor options:
# start N workers that perform network sctp stress activity using
# the Stream Control Transmission Protocol (SCTP). This involves
# client/server processes performing rapid connect, send/receives
# and disconnects on the local host.
#
sctp 0 # 0 means 1 stressor per CPU
# sctp-ops 1000000 # stop after 1000000 bogo ops
# sctp-domain ipv6 # domains, ipv4 or ipv6
# sctp-port 14000 # port to use
#
# sock stressor options:
# start N workers that perform various socket stress activity.
# This involves a pair of client/server processes performing rapid
# connect, send and receives and disconnects on the local host.
#
sock 0 # 0 means 1 stressor per CPU
# sock-ops 1000000 # stop after 1000000 bogo ops
# sock-domain ipv6 # domains, ipv4, ipv6 or unix
# sock-nodelay # disable TCP Nangle algorithm
# sock-opts send # use send, sendmsg or sendmmsg to send data
# sock-port 15000 # port to use
# sock-type stream # use stream or seqpacket
#
# sockfd stressor options:
# start N workers that pass file descriptors over a UNIX domain
# socket using the CMSG(3) ancillary data mechanism. For each
# worker, pair of client/server processes are created, the server
# opens as many file descriptors on /dev/null as possible and
# passing these over the socket to a client that reads these from
# the CMSG data and immediately closes the files.
#
sockfd 0 # 0 means 1 stressor per CPU
# sockfd-ops 1000000 # stop after 1000000 bogo ops
# sockfd-port 16000 # port to use
#
# sockpair stressor options:
# start N workers that perform socket pair I/O read/writes. This
# involves a pair of client/server processes performing randomly
# sized socket I/O operations.
#
sockpair 0 # 0 means 1 stressor per CPU
# sockpair-ops 1000000 # stop after 1000000 bogo ops
#
# udp stressor options:
# start N workers that transmit data using UDP. This involves a
# pair of client/server processes performing rapid connect, send
# and receives and disconnects on the local host.
#
udp 0 # 0 means 1 stressor per CPU
# udp-ops 1000000 # stop after 1000000 bogo ops
# udp-domain ipv6 # domains, ipv4, ipv6 or unix
# udp-lite # use the UDP-Lite (RFC3828) protocol
# udp-port 17000 # port to use
#
# udp-flood stressor options:
# start N workers that attempt to flood the host with UDP packets
# to random ports. The IP address of the packets are currently not
# spoofed. This is only available on systems that support
# AF_PACKET.
#
udp-flood 0 # 0 means 1 stressor per CPU
# udp-flood-ops 1000000 # stop after 1000000 bogo ops
# udp-domain ipv6 # domains, ipv4 or ipv6