How to find the socket buffer size of linux

后端 未结 4 545
情歌与酒
情歌与酒 2020-11-28 22:00

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 22:27

    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.

提交回复
热议问题