Saturday, October 22, 2022

[FIXED] How to find the socket buffer size of linux

Issue

What's the default socket buffer size of linux? Is there any command to see it?


Solution

If you want see your buffer size in terminal, you can take a look at:

  • /proc/sys/net/ipv4/tcp_rmem (for read)
  • /proc/sys/net/ipv4/tcp_wmem (for write)

They contain three numbers, which are minimum, default and maximum memory size values (in byte), respectively.



Answered By - saeedn
Answer Checked By - Mary Flores (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.