imweijh / dailywork

1 stars 0 forks source link

udp buffer size #5

Open imweijh opened 2 years ago

imweijh commented 2 years ago
#------------------------------------------------------------------------------
# Copyright (C)2020 Robert Cowart
# 
# The contents of this file and/or repository are subject to the Robert Cowart
# Public License (the "License") and may not be used or distributed except in
# compliance with the License. You may obtain a copy of the License at:
# 
# http://www.koiossian.com/public/robert_cowart_public_license.txt
# 
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
# the specific language governing rights and limitations under the License.
# 
# The Original Source Code was developed by Robert Cowart. Portions created by
# Robert Cowart are Copyright (C)2020 Robert Cowart. All Rights Reserved.
#------------------------------------------------------------------------------

# These settings are necessary to minimize the chance of packets being dropped during high event rates.
net.core.somaxconn=2048
net.core.netdev_max_backlog=8192
net.core.rmem_max=33554432
net.core.rmem_default=26214400
net.ipv4.udp_rmem_min=131072
net.ipv4.udp_mem=2097152 4194304 8388608