mtcp.conf 1.37 KB
Newer Older
1
 ############## mtcp configuration file ###############
Antoine Kaufmann's avatar
Antoine Kaufmann committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# The underlying I/O module you want to use. Please
# enable only one out of the two.
#io = psio
#io = netmap
io = dpdk

# No. of cores setting (enabling this option will override
# the `cpu' config for those applications that accept
# num_cores as command line arguments)
# 
# e.g. in case ./epserver is executed with `-N 4', the
# mtcp core will still invoke 8 mTCP threads if the
# following line is uncommented.
num_cores = 1

# Number of memory channels per processor socket (dpdk-only)
num_mem_ch = 4

# Used port (please adjust accordingly)
port = dpdk0

# Maximum concurrency per core
25
max_concurrency = 4096
Antoine Kaufmann's avatar
Antoine Kaufmann committed
26
27
28

# Maximum number of socket buffers per core
# Set this to small value if there are many idle connections
29
max_num_buffers = 4096
Antoine Kaufmann's avatar
Antoine Kaufmann committed
30
31
32
33
34
35
36
37
38
39
40

# Receive buffer size of sockets
rcvbuf = 8192
#rcvbuf = 1048576

# Send buffer size of sockets
sndbuf = 8192
#sndbuf = 1048576

# TCP timeout seconds
# (tcp_timeout = -1 can disable the timeout check)
41
tcp_timeout = 10
Antoine Kaufmann's avatar
Antoine Kaufmann committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

# TCP timewait seconds
tcp_timewait = 0

# Interface to print stats (please adjust accordingly)
# You can enable multiple ports in separate lines
#------ PSIO ports -------#
#stat_print = xge0
#stat_print = xge1
#------ DPDK ports -------#
stat_print = dpdk0
#stat_print = dpdk0:0
#stat_print = dpdk0:1
#stat_print = dpdk1

#######################################################