From: Eric Dumazet <eric.dumazet@gmail.com>
To: Syed Obaid Amin <obaidasyed@gmail.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
netdev@vger.kernel.org, Michael Kerrisk <mtk.manpages@gmail.com>
Subject: Re: About disabling congestion control
Date: Fri, 07 Jan 2011 11:33:44 +0100 [thread overview]
Message-ID: <1294396424.3306.7.camel@edumazet-laptop> (raw)
In-Reply-To: <AANLkTi=FLGM1z0VLH+WZXvF=7TZHtMhxLe+KRF3ojWR1@mail.gmail.com>
Le vendredi 07 janvier 2011 à 05:04 -0500, Syed Obaid Amin a écrit :
> Thanks for the reply. Yes I also thought to create a sort of NULL
> congestion control type that does nothing. But this way the changes
> would be system wide. BTW, would some one share the insight that why
> linux uses sysctl to select a congestion control algorithm instead of
> socket options.
Hmm, maybe "man 7 tcp" is not up2date.
It mentions TCP_CONGESTION once but doesnt describe it.
CC Michael Kerrisk <mtk.manpages@gmail.com> ;)
http://www.kernel.org/doc/man-pages/online/pages/man7/tcp.7.html
Lets say you have a kernel with support for two congestion controls :
# cat /proc/sys/net/ipv4/tcp_allowed_congestion_control
cubic reno
# cat /proc/sys/net/ipv4/tcp_congestion_control
cubic
Therefore, default is cubic, but you can change to reno if you want.
setsockopt(sock, SOL_TCP, TCP_CONGESTION, "reno", strlen("reno"));
prev parent reply other threads:[~2011-01-07 10:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 1:25 About disabling congestion control Syed Obaid Amin
2011-01-07 1:37 ` Stephen Hemminger
2011-01-07 10:04 ` Syed Obaid Amin
2011-01-07 10:33 ` Eric Dumazet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294396424.3306.7.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=mtk.manpages@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=obaidasyed@gmail.com \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox