zoukankan      html  css  js  c++  java
  • tcp_notsent_lowat

     TCP_NOTSENT_LOWAT

    更改 tcp_notsent_lowat 为 16384(16K)可以优化 web 速度。

    #添加值
    echo "net.ipv4.tcp_notsent_lowat = 16384" >> /etc/sysctl.conf
    
    #查看是否成功
    sysctl net.ipv4.tcp_notsent_lowat
        TCP_NOTSENT_LOWAT      The send socket buffer of a TCP sender has unsent
                                and unacknowledged data. This option allows a TCP
                                sender to control the amount of unsent data kept
                                in the send socket buffer. The value of the option
                                should be the maximum amount of unsent data in
                                bytes. Kevent, poll and select will generate a
                                write notification when the unsent data falls
                                below the amount given by this option. This will
                                allow an application to generate just-in-time
                                fresh updates for real-time communication.
  • 相关阅读:
    读《暗时间》
    文献笔记8
    文献笔记4
    文献笔记2
    文献笔记5
    文献笔记6
    文献笔记1
    文献笔记3
    读《暗时间》2
    文献笔记7
  • 原文地址:https://www.cnblogs.com/dream397/p/14595694.html
Copyright © 2011-2022 走看看