1############### MOS configuration file ###############
2
3#######################
4# APPLICATION OPTIONS #
5#######################
6
7# application to run
8application {
9	type = end
10	run = __app
11	core_mask = __coremask
12}
13
14#######################
15# MOS-RELATED OPTIONS #
16#######################
17mos {
18	forward = 0
19
20	#######################
21	##### I/O OPTIONS #####
22	#######################
23	__num_memch
24	# devices used for MOS applications [mandatory]
25	netdev {__devicemask
26	}
27
28	#######################
29	### LOGGING OPTIONS ###
30	#######################
31	# NICs to print network statistics per second
32	# if enabled, mTCP will print xx Gbps and xx pps for RX and TX
33	stat_print =__devicelist
34
35	# A directory contains MOS system log files
36	mos_log = logs/
37
38	########################
39	## NETWORK PARAMETERS ##
40	########################
41	# This to configure static arp table
42	# (Destination IP address) (Destination MAC address)
43	arp_table {
44	}
45
46	# This is to configure static routing table
47	# (Destination address)/(Prefix) (Device name)
48	route_table {
49	}
50
51
52	##########################
53	## SINGLE/MULTI-PROCESS ##
54	##########################
55	# Leave this empty if you only want
56	# to run single-process mode
57	__multiprocess
58
59	### ADVANCED OPTIONS ###
60	########################
61	# if required, uncomment the following options and change them
62
63	# maximum concurrency per core [optional / default : 100000]
64	# (MOS-specific parameter for preallocation)
65	# max_concurrency = 100000
66
67	# disable the ring buffer [optional / default : 0]
68	# use disabled buffered managment only for standalone monitors.
69	# end host applications always need recv buffers for TCP!
70	# no_ring_buffers = 1
71
72	# receive buffer size of sockets [optional / default : 8192]
73	# rmem_size = 8192
74
75	# send buffer size of sockets [optional / default : 8192]
76	# wmem_size = 8192
77
78	# tcp timewait seconds [optional / default : 0]
79	# tcp_tw_interval = 30
80
81	# tcp timeout seconds [optional / default : 30]
82	# (set tcp_timeout = -1 to disable timeout checking)
83	# tcp_timeout = 30
84}
85