All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] PPP: Optimize write buffer management
Date: Tue, 15 Mar 2011 14:28:30 -0500	[thread overview]
Message-ID: <4D7FBDDE.2010108@gmail.com> (raw)
In-Reply-To: <1299599897-2592-1-git-send-email-patrick.porlan@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]

Hi Patrick,

On 03/08/2011 09:58 AM, Patrick Porlan wrote:
> Extend the write buffer handling in gathdlc.c to minimize stalling and
> process switching during large PPP transfers. The single write buffer
> is replaced by a queue of buffers, allowing for much larger emission
> windows without hugely impacting memory consumption. This reduces the
> time required to send 50 MB between a couple of local PPP interfaces on
> my laptop from ~53s to ~3s.
> ---
>  gatchat/gathdlc.c |   95 ++++++++++++++++++++++++++++++++++++++++------------
>  1 files changed, 73 insertions(+), 22 deletions(-)
> 

So I was pretty happy with this patch and went ahead and applied it.  I
made a few simple style modifications beforehand though.

<snip>

>  
> -	if (avail < size)
> -		return FALSE;
> +	if (avail < size + HDLC_OVERHEAD) {
> +

So I'm still a little worried about this part.  In theory the
HDLC_OVERHEAD should have two factors:
	- Our transmit ACCM
	- The size of the frame

Since we're dealing with MTUs of ~1500, our frames don't really ever
exceed it.  So 256 byte overhead is probably ok, but might be worth
checking if making this dynamic buys us anything.

Also, what do you think of growing the overhead and performing the
framing again in case our estimate is too low?

Regards,
-Denis

  reply	other threads:[~2011-03-15 19:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 15:58 [PATCH] PPP: Optimize write buffer management Patrick Porlan
2011-03-15 19:28 ` Denis Kenzior [this message]
2011-03-16  9:00   ` Patrick Porlan
  -- strict thread matches above, loose matches on Subject: below --
2011-03-01 15:07 Patrick Porlan
2011-03-02  3:47 ` Denis Kenzior
2011-03-02  8:42   ` Patrick Porlan
2011-03-02 15:28     ` Denis Kenzior
2011-03-08 16:08       ` Patrick Porlan

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=4D7FBDDE.2010108@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.