From: Rick Jones <rick.jones2@hp.com>
To: Krishna Kumar2 <krkumar2@in.ibm.com>
Cc: David Miller <davem@davemloft.net>,
ian.mcdonald@jandi.co.nz, ilpo.jarvinen@helsinki.fi,
netdev@vger.kernel.org, netdev-owner@vger.kernel.org
Subject: Re: [PATCH] make _minimum_ TCP retransmission timeout configurable
Date: Thu, 30 Aug 2007 10:10:28 -0700 [thread overview]
Message-ID: <46D6FA04.5050808@hp.com> (raw)
In-Reply-To: <OFD89921DD.675E7B9A-ON65257347.001C5D22-65257347.001D84A0@in.ibm.com>
Krishna Kumar2 wrote:
> Hi Rick,
>
>
>>>From: Rick Jones <rick.jones2@hp.com>
>>>
>>>>The trace I've been sent shows clean RTTs ranging from ~200
>
> milliseconds
>
>>>>to ~7000 milliseconds.
>>>
>>>
>>>Thanks for the info.
>>>
>>>It's pretty easy to generate examples where we might have some sockets
>>>talking over interfaces on such a network and others which are not.
>>>Therefore, if we do this, a per-route metric is probably the best bet.
>>
>>FWIW, the places where I've seen this come-up thusfar are where we have
>>a sort of "gateway" or front-end system which is connected on one side
>>to the cellphone network with the bad delays, and on the other side is
>>connected to an internal network where actual losses leading to RTO's
>>are epsilon. Certainly something which could make a per-route decision
>>would work there and probably quite well, though a simple sysctl does
>>seem to be sufficient and would touch fewer places.
>>
>>Do you think it is still worthwhile for me to rework the initial patch
>>to use CTL_UNNUMBERED?
>
>
> You could add following cleanup:
>
> static int proc_tcp_rto_min(ctl_table *ctl, int write, struct file *filp,
> void __user *buffer, size_t *lenp,
> loff_t *ppos)
> {
> int *valp = ctl->data;
> int oldval = *valp;
> int ret;
>
> ret = proc_dointvec_ms_jiffies(ctl, write, filp, buffer, lenp, ppos);
> if (ret)
> return ret;
>
> /* some bounds checking would be in order */
> if (write && *valp != oldval) {
> if (*valp < (int)TCP_RTO_MIN || *valp > (int)TCP_RTO_MAX) {
> *valp = oldval;
> ret = -EINVAL;
> }
> }
> return ret;
> }
Sure.
> Also, isn't it enough to use u32 for valp/oldval and remove the "(int)"
> typecasts?
I suppose, that was some mimicing of code I'd seen elsewhere but I'll
give it a shot.
rick
next prev parent reply other threads:[~2007-08-30 17:11 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 20:52 [PATCH] make _minimum_ TCP retransmission timeout configurable Rick Jones
2007-08-29 21:13 ` Eric Dumazet
2007-08-29 22:11 ` Rick Jones
2007-08-29 21:32 ` Ian McDonald
2007-08-29 21:46 ` David Miller
2007-08-29 22:10 ` Ian McDonald
2007-08-29 22:23 ` David Miller
2007-08-29 22:13 ` Stephen Hemminger
2007-08-29 22:28 ` David Miller
2007-08-29 22:51 ` Stephen Hemminger
2007-08-29 22:58 ` NCR, was " John Heffner
2007-08-29 22:59 ` David Miller
2007-08-29 22:32 ` Rick Jones
2007-08-29 22:29 ` Rick Jones
2007-08-29 22:35 ` David Miller
2007-08-29 22:48 ` John Heffner
2007-08-29 22:52 ` John Heffner
2007-08-29 22:53 ` Edgar E. Iglesias
2007-08-29 23:06 ` Rick Jones
2007-08-29 23:15 ` David Miller
2007-08-29 23:31 ` Rick Jones
2007-08-30 5:22 ` Krishna Kumar2
2007-08-30 17:10 ` Rick Jones [this message]
2007-08-29 23:44 ` John Heffner
2007-09-05 19:04 ` Ilpo Järvinen
2007-09-06 20:39 ` David Miller
2007-08-29 22:09 ` Rick Jones
2007-08-29 22:20 ` David Miller
2007-08-29 22:33 ` Ian McDonald
2007-08-29 22:37 ` David Miller
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=46D6FA04.5050808@hp.com \
--to=rick.jones2@hp.com \
--cc=davem@davemloft.net \
--cc=ian.mcdonald@jandi.co.nz \
--cc=ilpo.jarvinen@helsinki.fi \
--cc=krkumar2@in.ibm.com \
--cc=netdev-owner@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).