如何找到Linux的套接字缓冲区大小 [英] How to find the socket buffer size of linux
本文介绍了如何找到Linux的套接字缓冲区大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Linux的默认套接字缓冲区大小是多少?有什么命令可以看到吗?
What's the default socket buffer size of linux? Is there any command to see it?
推荐答案
如果要在终端中查看缓冲区大小,可以查看:
If you want see your buffer size in terminal, you can take a look at:
-
/proc/sys/net/ipv4/tcp_rmem
(供读取) -
/proc/sys/net/ipv4/tcp_wmem
(用于写入)
/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.
这篇关于如何找到Linux的套接字缓冲区大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文