Friday, May 7, 2010

scaling factor for calculating application portion of window


$cat /proc/sys/net/ipv4/tcp_adv_win_scale
2
$



Scaling factor for calculating application portion of window. Count buffering overhead as bytes / 2 ^ tcp_adv_win_scale (if tcp_adv_win_scale > 0) or bytes - bytes / 2 ^ (-tcp_adv_win_scale), if it is <= 0. The default value is 2.


Copyright © 2002 by Oskar Andreasson Under GNU FDL.




linux kernel source 2.6.32
{
.ctl_name = NET_TCP_ADV_WIN_SCALE,
.procname = "tcp_adv_win_scale",
.data = &sysctl_tcp_adv_win_scale,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = proc_dointvec
},



linux kernel source 2.6.32
int sysctl_tcp_adv_win_scale __read_mostly = 2;