Re: Choppy TCP send performance

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ivan Novick
Date: Friday, May 28, 2010 - 3:28 pm

On Fri, May 28, 2010 at 3:08 PM, Rick Jones <rick.jones2@hp.com> wrote:

I am not sure i understand your historgram output.  But what i am
getting from your message is that my buffer may be too big.  If i
reduce the buffer like you are saying down to 256K send buffer than
the code that checks if select or send should block:

 if ((atomic_read(&sk->sk_wmem_alloc) << 1) <=
sk->sk_sndbuf

Would only block waiting for space of 128 KB free as compared to 1 Meg
free in my example.

Therefore reducing the max time for send calls (in theory).

Is this what you are getting at?

Cheers,
Ivan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Choppy TCP send performance, Ivan Novick, (Fri May 28, 1:38 pm)
Re: Choppy TCP send performance, Eric Dumazet, (Fri May 28, 2:16 pm)
Re: Choppy TCP send performance, Ivan Novick, (Fri May 28, 2:35 pm)
Re: Choppy TCP send performance, Eric Dumazet, (Fri May 28, 3:00 pm)
Re: Choppy TCP send performance, Rick Jones, (Fri May 28, 3:08 pm)
Re: Choppy TCP send performance, Ivan Novick, (Fri May 28, 3:23 pm)
Re: Choppy TCP send performance, Ivan Novick, (Fri May 28, 3:28 pm)
Re: Choppy TCP send performance, Rick Jones, (Fri May 28, 3:57 pm)