You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,15 +37,15 @@ A multiple-thread based Linux network throughput benchmark tool.
37
37
To measure the network performance between two multi-core serves running SLES 12, NODE1 (192.168.4.1) and NODE2 (192.168.4.2), connected via a 40 GigE connection.
38
38
39
39
On NODE1 (the receiver), run:
40
-
40
+
```
41
41
./ntttcp -r
42
-
42
+
```
43
43
(Translation: Run ntttcp as a receiver with default setting. The default setting includes: with 16 threads created and run across all CPUs, allocating 64K receiver buffer, and run for 60 seconds.)
44
44
45
45
And on NODE2 (the sender), run:
46
-
46
+
```
47
47
./ntttcp.exe -s192.168.4.1
48
-
48
+
```
49
49
(Translation: Run ntttcp as a sender, with default setting. The default setting includes: with 64 threads created and run across all CPUs, allocating 128KB sender buffer, and run for 60 seconds.)
50
50
51
51
Using the above parameters, the program returns results on both the sender and receiver nodes, correlating network communication to CPU utilization.
printf("\t\t Processor:\t\t*, or cpuid such as 0, 1, etc \n");
71
-
printf("\t e.g. -m 8,*,192.168.1.1\n \t\t8 threads running on all processors\n\t\tand listening on ports of network on 192.168.1.1\n");
72
-
73
-
printf("\t-n [sender only] number of connections per server port\n\t\t[default: %d]\n\t\t[max: %d]\n", DEFAULT_CONN_PER_THREAD, MAX_CONNECTIONS_PER_THREAD);
74
-
printf("\t-6 IPv6 mode [default: IPv4]\n");
75
-
//printf("\t-u UDP mode [default: TCP] NOT SUPPORTED YET\n");
76
-
printf("\t-p Port number, or starting port number [default: %d]\n", DEFAULT_BASE_PORT);
printf("\t\t Processor:\t\t*, or cpuid such as 0, 1, etc \n");
85
+
printf("\t\t e.g. -m 8,*,192.168.1.1\n");
86
+
printf("\t\t\t If receiver role: 8 threads running on all processors;\n\t\t\tand listening on 8 ports of network on 192.168.1.1.\n");
87
+
printf("\t\t\t If sender role: receiver has 8 threads running and listening on 8 ports of network on 192.168.1.1;\n\t\t\tand all sender threads will run on all processors.\n");
88
+
85
89
printf("Example:\n");
86
90
printf("\treceiver:\n");
87
91
printf("\t1) ./ntttcp -r\n");
@@ -218,6 +222,7 @@ int parse_arguments(struct ntttcp_test *test, int argc, char **argv)
218
222
{"daemon", no_argument, NULL, 'D'},
219
223
{"epoll", no_argument, NULL, 'e'},
220
224
{"mapping", required_argument, NULL, 'm'},
225
+
{"nports", required_argument, NULL, 'P'},
221
226
{"nconn", required_argument, NULL, 'n'},
222
227
{"ipv6", no_argument, NULL, '6'},
223
228
{"udp", no_argument, NULL, 'u'},
@@ -233,7 +238,7 @@ int parse_arguments(struct ntttcp_test *test, int argc, char **argv)
233
238
234
239
intflag;
235
240
236
-
while ((flag=getopt_long(argc, argv, "r::s::Dem:n:6up:b:B:t:NVh", longopts, NULL)) !=-1) {
241
+
while ((flag=getopt_long(argc, argv, "r::s::Dem:P:n:6up:b:B:t:NVh", longopts, NULL)) !=-1) {
237
242
switch (flag) {
238
243
case'r':
239
244
test->server_role= true;
@@ -260,6 +265,10 @@ int parse_arguments(struct ntttcp_test *test, int argc, char **argv)
0 commit comments