Increase the number of simultaneous connections from the server
fs.nr_open = 33554432
fs.file-max = 33554432
net.core.somaxconn = 65535
net.core.netdev_max_backlog = 4096
net.ipv4.tcp_mem=100000000 100000000 100000000
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_fin_timeout = 5
net.ipv4.tcp_syncookies = 0
net.ipv4.tcp_max_syn_backlog = 32768
net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 1024 65535
= = = =
* hard nofile 33554432
* soft nofile 33554432
root hard nofile 33554432
root soft nofile 33554432
= = =
the server works in 1000 streams - at the output we get only 1000 guads, first goes normal - then the number of performance is reduced, in 2 times
the server works in 700 streams - at the output we get about 1300 guads, So and should be
From 1000 connections, 1800-2000 guads are expected.But this does not happen.
= = =
Look at current statistics.
netstat -n♰ awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
This is 700.
Statistical 3460
FIN_WAIT2 10
by SYN_SENT 3
time_wait 1699
= = = =
1000 of the streams:
Statistical 5002
FIN_WAIT1 1
FIN_WAIT2 1
by SYN_SENT 3
time_wait 663
= = =
I know there are no open ports.
What restrictions or anything else.
= =====
with time
It is 4768
FIN_WAIT1 1
FIN_WAIT2 5
by SYN_SENT 1
time_wait 1421
Time_wait increases and the number of performance decreases
This problem must be solved.
at 700 streams performs more than 1000
ernel.threads-max = 3261780
fs.nr_open = 33554432
fs.file-max= 33554432
net.core.somaxconn=65535
net.core.netdev_max_backlog = 4096
net.ipv4.tcp_mem=100000000 100000000 100000000
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_fin_timeout = 5
net.ipv4.tcp_syncookies = 0
net.ipv4.tcp_max_syn_backlog = 32768
net.ipv4.tcp_tw_reuse = 1
net.ipv4.ip_local_port_range = 1024 65535
====
* hard nofile 33554432
* soft nofile 33554432
root hard nofile 33554432
root soft nofile 33554432
===
сервер работает в 1000 потоков - на выходе получаем всего 1000 гудов, сначала идет нормально - потом уменьшается количество выполнений, в 2 раза
сервер работает в 700 потоков - на выходе получаем примерно 1300 гудов, Так и должно быть
от 1000 соединений ожидается 1800-2000 гудов. Но этого не происходит
===
смотрю текущую статистику
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
вот на 700
ESTABLISHED 3460
FIN_WAIT2 10
SYN_SENT 3
TIME_WAIT 1699
====
на 1000 потоков:
ESTABLISHED 5002
FIN_WAIT1 1
FIN_WAIT2 1
SYN_SENT 3
TIME_WAIT 663
===
как понимаю - не хватает открытых портов
какие то ограничения или еще что то
=====
со временем
ESTABLISHED 4768
FIN_WAIT1 1
FIN_WAIT2 5
SYN_SENT 1
TIME_WAIT 1421
Time_wait растет и количество выполнений падает
нужно решить данную проблему
на 700 потоках выполняется больше чем на 1000
Client's feedback on cooperation with freelancer
Increase the number of simultaneous connections from the serverThank you for work. The quality of the server
Freelancer's feedback on cooperation with Sergey Semnonov
Increase the number of simultaneous connections from the serverA good customer. pleasant in communication.
Current freelance projects in the category Linux & Unix
Нужна помощь с отбитием флуд атаки на веб-сервер nginx+php
48 USD
Нужна помощь/консультация с отбитием флуд атаки на веб-сервер nginx+php+cloudflare.com Бьют GET запросами по типу: ***.111.xxx.255 - - [16/Feb/2025:11:22:58 +0000] "GET /styles/css HTTP/1.1" 444 0 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_2_1 like Mac OS X)… Linux & Unix, System & Network Administration ∙ 1 hour 9 minutes ago ∙ 5 proposals |
Setting up frigate and nextcloud on ubuntu server 24.04
72 USD
There is a server based on xeon e3-1220v3 + gtx1050 It is necessary to install frigate so that recording from the cameras is done and there is an opportunity to view the stream and the main thing is that frigate should use the gpu for detection and video processing and nextcloud… Linux & Unix, Software & Server Configuration ∙ 1 day 2 hours ago ∙ 4 proposals |
VPS server setup
48 USD
We are looking for an experienced specialist for full configuration of a VPS server. What needs to be done?✅ Installation and optimization of Linux (Ubuntu/Debian/CentOS)✅ Configuration of security (firewall, SSL, Fail2Ban, UFW)✅ Installation and configuration of Nginx/Apache,… Linux & Unix ∙ 1 day 21 hours ago ∙ 15 proposals |
Development of an auth server for War Thunder
104 USD
The task is to log in and create a session in Tundra through the terminal on Linux, without the game client. The goal is to create and maintain a 24/7 user session and collect session logs in the database. There is source code from the developer that maintains such a session.… Linux & Unix, Python ∙ 2 days 3 hours ago ∙ 1 proposal |
1. Configuration of the Yocto operating system for embedded systems.Operating system for single-board computers (hereinafter SBC) based on the Rockchip RK3399 microprocessor – Rock Pi 4B Plus computer. The technical specification is in the attached file. Linux & Unix, Embedded Systems & Microcontrollers ∙ 6 days 3 hours ago |