GrabBag/App/ParkingSpaceGuide/ParkingSpaceGuideApp/deploy/99-parkingspaceguide-network.conf

15 lines
689 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 停机引导:相机 GigE + 雷达 UDP 同网卡时提高内核收包缓存,避免点云缺包。
# 雷达应用层 socketRecvBufBytes=32MB,rmem_max 必须不小于该值。
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.rmem_default = 4194304
net.core.wmem_default = 4194304
net.core.netdev_max_backlog = 5000
# udp_mem 单位是页(通常 4KB),不是字节。约 64MB / 128MB / 256MB。
net.ipv4.udp_mem = 16384 32768 65536
net.ipv4.udp_rmem_min = 262144
# 允许非 root 使用 ICMP 数据报套接字,进程内 ping 不必 fork /bin/ping。
net.ipv4.ping_group_range = 0 2147483647
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0