xref: /f-stack/config.ini (revision ac6d8f46)
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# enabled port list
26#
27# EBNF grammar:
28#
29#    exp      ::= num_list {"," num_list}
30#    num_list ::= <num> | <range>
31#    range    ::= <num>"-"<num>
32#    num      ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
33#
34# examples
35#    0-3       ports 0, 1,2,3 are enabled
36#    1-3,4,7   ports 1,2,3,4,7 are enabled
37port_list=0
38
39# Number of vdev.
40nb_vdev=0
41
42# Port config section
43# Correspond to dpdk.port_list's index: port0, port1...
44[port0]
45addr=192.168.1.2
46netmask=255.255.225.0
47broadcast=192.168.1.255
48gateway=192.168.1.1
49
50# lcore list used to handle this port
51# the format is same as port_list
52# lcore_list= 0
53
54# Packet capture path, this will hurt performance
55#pcap=./a.pcap
56
57# Vdev config section
58# orrespond to dpdk.nb_vdev's index: vdev0, vdev1...
59#    iface : Shouldn't set always.
60#    path : The vuser device path in container. Required.
61#    queues : The max queues of vuser. Optional, default 1, greater or equal to the number of processes.
62#    queue_size : Queue size.Optional, default 256.
63#    mac : The mac address of vuser. Optional, default random, if vhost use phy NIC, it should be set to the phy NIC's mac.
64#    cq : Optional, if queues = 1, default 0; if queues > 1 default 1.
65#[vdev0]
66##iface=/usr/local/var/run/openvswitch/vhost-user0
67#path=/var/run/openvswitch/vhost-user0
68#queues=1
69#queue_size=256
70#mac=00:00:00:00:00:01
71#cq=0
72
73# Kni config: if enabled and method=reject,
74# all packets that do not belong to the following tcp_port and udp_port
75# will transmit to kernel; if method=accept, all packets that belong to
76# the following tcp_port and udp_port will transmit to kernel.
77#[kni]
78#enable=1
79#method=reject
80# The format is same as port_list
81#tcp_port=80,443
82#udp_port=53
83
84# FreeBSD network performance tuning configurations.
85# Most native FreeBSD configurations are supported.
86[freebsd.boot]
87hz=100
88
89# Block out a range of descriptors to avoid overlap
90# with the kernel's descriptor space.
91# You can increase this value according to your app.
92fd_reserve=1024
93
94kern.ipc.maxsockets=262144
95
96net.inet.tcp.syncache.hashsize=4096
97net.inet.tcp.syncache.bucketlimit=100
98
99net.inet.tcp.tcbhashsize=65536
100
101kern.ncallout=262144
102
103[freebsd.sysctl]
104kern.ipc.somaxconn=32768
105kern.ipc.maxsockbuf=16777216
106
107net.link.ether.inet.maxhold=5
108
109net.inet.tcp.fast_finwait2_recycle=1
110net.inet.tcp.sendspace=16384
111net.inet.tcp.recvspace=8192
112net.inet.tcp.nolocaltimewait=1
113net.inet.tcp.cc.algorithm=cubic
114net.inet.tcp.sendbuf_max=16777216
115net.inet.tcp.recvbuf_max=16777216
116net.inet.tcp.sendbuf_auto=1
117net.inet.tcp.recvbuf_auto=1
118net.inet.tcp.sendbuf_inc=16384
119net.inet.tcp.recvbuf_inc=524288
120net.inet.tcp.sack.enable=1
121net.inet.tcp.blackhole=1
122net.inet.tcp.msl=2000
123net.inet.tcp.delayed_ack=0
124
125net.inet.udp.blackhole=1
126net.inet.ip.redirect=0
127