|
|
Re: [PATCH] [RFC] tcp: TSQ - do not always throttle. |
On Tue, 2012-07-17 at 17:33 +0530, Krishna Kumar wrote:
> Do not throttle if sysctl_tcp_limit_output_bytes==0.
>
> Maybe it is better to throttle earlier in the loop, after
> calling tcp_init_tso_segs().
>
I wonder why, and why you put this question in a changelog instead of
outside of it...
Idea was to avoid setting TSQ_THROTTLED if we break out the loop.
About disabling TSQ, my initial intent was to instead use a negative
sysctl_tcp_limit_output_bytes value.
Thats why I have in tcp_transmit_skb() :
skb->destructor = (sysctl_tcp_limit_output_bytes > 0) ?
tcp_wfree : sock_wfree;
So I suggest you change the tcp_write_xmit(() test to a single unsigned
compare :
if (atomic_read(&sk->sk_wmem_alloc) >=
(unsigned) sysctl_tcp_limit_output_bytes) {
Also use :
skb->destructor = (sysctl_tcp_limit_output_bytes >= 0) ?
tcp_wfree : sock_wfree;
and document the 'negative value disables TSQ' in
Documentation/networking/ip-sysctl.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |