From: Patrick Porlan <patrick.porlan@linux.intel.com>
To: ofono@ofono.org
Subject: Re: [PATCH] PPP: Optimize write buffer management
Date: Wed, 16 Mar 2011 10:00:33 +0100 [thread overview]
Message-ID: <1300266033.1921.24.camel@pporlan-linux> (raw)
In-Reply-To: <4D7FBDDE.2010108@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]
Hi Denis,
On Tue, 2011-03-15 at 14:28 -0500, Denis Kenzior wrote:
> 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.
Sounds like a good idea. We can expect to save a hundred of bytes or so
per 4 KB buffer in average: I witnessed overhead in the 100~150 bytes
but indeed it may be consistently lower than that, or higher than 256,
depending on the traffic.
> Also, what do you think of growing the overhead and performing the
> framing again in case our estimate is too low?
That becomes even more necessary if we start with a margin we expect to
bump into.
For the record, I tried the g_slice allocator in ringbuffer.c, and can't
really see a performance gain - or loss -, with the downside that there
is no "try" version, and that an allocation failure will therefore fault
the process. As for why it's so, I suppose that even a few thousand
allocations/deallocations only take a few ms. I'm also starting to think
that there is thread aware code in the glib that is not really needed
inside the ofono machinery. I'll send that patch to the list
nonetheless.
Regards,
-- Patrick
next prev parent reply other threads:[~2011-03-16 9:00 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
2011-03-16 9:00 ` Patrick Porlan [this message]
-- 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=1300266033.1921.24.camel@pporlan-linux \
--to=patrick.porlan@linux.intel.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.