xref: /f-stack/config.ini (revision 0c971bcf)
1[dpdk]
2# Hexadecimal bitmask of cores to run on.
3lcore_mask=1
4
5# Number of memory channels.
6channel=4
7
8# Specify base virtual address to map.
9#base_virtaddr=0x7f0000000000
10
11# Promiscuous mode of nic, defualt: enabled.
12promiscuous=1
13numa_on=1
14
15# TCP segment offload, default: disabled.
16tso=0
17
18# HW vlan strip, default: enabled.
19vlan_strip=1
20
21# sleep when no pkts incomming
22# unit: microseconds
23idle_sleep=0
24
25# sent packet delay time(0-100) while send less than 32 pkts.
26# default 100 us.
27# if set 0, means send pkts immediately.
28# if set >100, will dealy 100 us.
29# unit: microseconds
30pkt_tx_delay=100
31
32# enabled port list
33#
34# EBNF grammar:
35#
36#    exp      ::= num_list {"," num_list}
37#    num_list ::= <num> | <range>
38#    range    ::= <num>"-"<num>
39#    num      ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
40#
41# examples
42#    0-3       ports 0, 1,2,3 are enabled
43#    1-3,4,7   ports 1,2,3,4,7 are enabled
44port_list=0
45
46# Number of vdev.
47nb_vdev=0
48
49# Port config section
50# Correspond to dpdk.port_list's index: port0, port1...
51[port0]
52addr=192.168.1.2
53netmask=255.255.225.0
54broadcast=192.168.1.255
55gateway=192.168.1.1
56
57# lcore list used to handle this port
58# the format is same as port_list
59# lcore_list= 0
60
61# Packet capture path, this will hurt performance
62#pcap=./a.pcap
63
64# Vdev config section
65# orrespond to dpdk.nb_vdev's index: vdev0, vdev1...
66#    iface : Shouldn't set always.
67#    path : The vuser device path in container. Required.
68#    queues : The max queues of vuser. Optional, default 1, greater or equal to the number of processes.
69#    queue_size : Queue size.Optional, default 256.
70#    mac : The mac address of vuser. Optional, default random, if vhost use phy NIC, it should be set to the phy NIC's mac.
71#    cq : Optional, if queues = 1, default 0; if queues > 1 default 1.
72#[vdev0]
73##iface=/usr/local/var/run/openvswitch/vhost-user0
74#path=/var/run/openvswitch/vhost-user0
75#queues=1
76#queue_size=256
77#mac=00:00:00:00:00:01
78#cq=0
79
80# Kni config: if enabled and method=reject,
81# all packets that do not belong to the following tcp_port and udp_port
82# will transmit to kernel; if method=accept, all packets that belong to
83# the following tcp_port and udp_port will transmit to kernel.
84#[kni]
85#enable=1
86#method=reject
87# The format is same as port_list
88#tcp_port=80,443
89#udp_port=53
90
91# FreeBSD network performance tuning configurations.
92# Most native FreeBSD configurations are supported.
93[freebsd.boot]
94hz=100
95
96# Block out a range of descriptors to avoid overlap
97# with the kernel's descriptor space.
98# You can increase this value according to your app.
99fd_reserve=1024
100
101kern.ipc.maxsockets=262144
102
103net.inet.tcp.syncache.hashsize=4096
104net.inet.tcp.syncache.bucketlimit=100
105
106net.inet.tcp.tcbhashsize=65536
107
108kern.ncallout=262144
109
110kern.features.inet6=1
111net.inet6.ip6.auto_linklocal=1
112net.inet6.ip6.accept_rtadv=2
113net.inet6.icmp6.rediraccept=1
114net.inet6.ip6.forwarding=0
115
116[freebsd.sysctl]
117kern.ipc.somaxconn=32768
118kern.ipc.maxsockbuf=16777216
119
120net.link.ether.inet.maxhold=5
121
122net.inet.tcp.fast_finwait2_recycle=1
123net.inet.tcp.sendspace=16384
124net.inet.tcp.recvspace=8192
125net.inet.tcp.nolocaltimewait=1
126net.inet.tcp.cc.algorithm=cubic
127net.inet.tcp.sendbuf_max=16777216
128net.inet.tcp.recvbuf_max=16777216
129net.inet.tcp.sendbuf_auto=1
130net.inet.tcp.recvbuf_auto=1
131net.inet.tcp.sendbuf_inc=16384
132net.inet.tcp.recvbuf_inc=524288
133net.inet.tcp.sack.enable=1
134net.inet.tcp.blackhole=1
135net.inet.tcp.msl=2000
136net.inet.tcp.delayed_ack=0
137
138net.inet.udp.blackhole=1
139net.inet.ip.redirect=0
140