From: Eric Dumazet <dada1@cosmosbay.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, shemminger@vyatta.com,
Alexey Dobriyan <adobriyan@gmail.com>,
"Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Subject: Re: [PATCH] net: speedup dst_release()
Date: Fri, 14 Nov 2008 10:04:24 +0100 [thread overview]
Message-ID: <491D3F18.5030505@cosmosbay.com> (raw)
In-Reply-To: <20081114.005437.09284570.davem@davemloft.net>
David Miller a écrit :
> From: Eric Dumazet <dada1@cosmosbay.com>
> Date: Fri, 14 Nov 2008 09:09:31 +0100
>
>> During tbench/oprofile sessions, I found that dst_release() was in third position.
> ...
>> Instead of first checking the refcount value, then decrement it,
>> we use atomic_dec_return() to help CPU to make the right memory transaction
>> (ie getting the cache line in exclusive mode)
> ...
>> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
>
> This looks great, applied, thanks Eric.
>
Thanks David
I think I understood some regressions here on 32bits
offsetof(struct dst_entry, __refcnt) is 0x7c again !!!
This is really really bad for performance
I believe this comes from a patch from Alexey Dobriyan
(commit def8b4faff5ca349beafbbfeb2c51f3602a6ef3a
net: reduce structures when XFRM=n)
This kills effort from Zhang Yanmin (and me...)
(commit f1dd9c379cac7d5a76259e7dffcd5f8edc697d17
[NET]: Fix tbench regression in 2.6.25-rc1)
Really we must find something so that this damned __refcnt is starting at 0x80
next prev parent reply other threads:[~2008-11-14 9:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-14 8:09 [PATCH] net: speedup dst_release() Eric Dumazet
2008-11-14 8:54 ` David Miller
2008-11-14 9:04 ` Eric Dumazet [this message]
2008-11-14 9:36 ` Alexey Dobriyan
2008-11-14 10:47 ` [PATCH] net: make sure struct dst_entry refcount is aligned on 64 bytes Eric Dumazet
2008-11-14 11:35 ` Alexey Dobriyan
2008-11-14 11:43 ` Eric Dumazet
2008-11-14 13:22 ` Alexey Dobriyan
2008-11-14 13:37 ` Eric Dumazet
2008-11-17 3:46 ` 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=491D3F18.5030505@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=adobriyan@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
--cc=yanmin_zhang@linux.intel.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;
as well as URLs for NNTP newsgroup(s).