Question: How to check to current values for these kernel parameters?

  • net.core.netdev_max_backlog
  • fs.file-max
  • net.ipv4.tcp_max_syn_backlog
  • net.core.somaxconn

The linux system could not support to method for directly check these values but we can check to using by below commands :

# netstat -an | grep -c SYN_RECV
# netstat -s

Also, those parameter can be checked from below paths:

net.core.netdev_max_backlog ----> /proc/sys/net/core/netdev_max_backlog
net.ipv4.tcp_max_syn_backlog ----> /proc/sys/net/ipv4/tcp_max_syn_backlog
net.core.somaxconn ----> /proc/sys/net/core/somaxconn

These commands help to calculate receiving packet in server.

file-max check:

# cat /proc/sys/fs/file-nr
672 0 175158
-- -- ------
| | +------ Max
| +------------ Available
+---------------- Current allocated