From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Hans Schillstrom <hans.schillstrom@ericsson.com>,
Daniel Lezcano <daniel.lezcano@free.fr>,
"lvs-devel@vger.kernel.org" <lvs-devel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"netfilter-devel@vger.kernel.org"
<netfilter-devel@vger.kernel.org>,
"horms@verge.net.au" <horms@verge.net.au>,
"ja@ssi.bg" <ja@ssi.bg>,
"wensong@linux-vs.org" <wensong@linux-vs.org>
Subject: Re: [RFC PATCH 1/9] ipvs network name space aware
Date: Thu, 21 Oct 2010 08:18:06 -0700 [thread overview]
Message-ID: <20101021151806.GC2363@linux.vnet.ibm.com> (raw)
In-Reply-To: <1287648072.6871.15.camel@edumazet-laptop>
On Thu, Oct 21, 2010 at 10:01:12AM +0200, Eric Dumazet wrote:
> Le jeudi 21 octobre 2010 à 09:45 +0200, Hans Schillstrom a écrit :
> > I do have this (and some debuging)
> > __rcu_read_lock()
> > => 0xffffffff8108bcf3 <+0>: push %rbp
> > 0xffffffff8108bcf4 <+1>: mov %rsp,%rbp
> > 0xffffffff8108bcf7 <+4>: nopl 0x0(%rax,%rax,1)
> > 0xffffffff8108bcfc <+9>: mov %gs:0xb540,%rax
> > 0xffffffff8108bd05 <+18>: mov 0x108(%rax),%edx
> > 0xffffffff8108bd0b <+24>: inc %edx
> > 0xffffffff8108bd0d <+26>: mov %edx,0x108(%rax)
> > 0xffffffff8108bd13 <+32>: leaveq
> > 0xffffffff8108bd14 <+33>: retq
> >
> > which is not that many, actually imprerssing few instructions :-)
>
> nopl 0x0(%rax,%rax,1) is a filler because of extra instrumentation in
> your kernel.
>
> Maybe you could find out why your compiler dont use
>
> incl 0x108(%rax)
>
> instead of
>
> mov 0x108(%rax),%edx
> inc %edx
> mov %edx,0x108(%rax)
>
>
> So rcu_read_lock() is really _two_ instructions.
>
> I agree with Paul with the "few" qualification... :-)
Thank you! ;-)
And the reason for the three-instruction shuffle is that Hans's kernel
does not yet contain commit 80dcf60e. That commit is on its way upstream,
and will hopefully make the current merge window.
Thanx, Paul
next prev parent reply other threads:[~2010-10-21 15:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 11:16 [RFC PATCH 1/9] ipvs network name space aware Hans Schillstrom
2010-10-18 8:59 ` Daniel Lezcano
2010-10-18 9:54 ` Hans Schillstrom
2010-10-18 11:37 ` Daniel Lezcano
2010-10-18 13:23 ` Hans Schillstrom
2010-10-18 14:26 ` Daniel Lezcano
2010-10-19 18:44 ` Paul E. McKenney
2010-10-20 8:25 ` Hans Schillstrom
2010-10-20 16:02 ` Paul E. McKenney
2010-10-21 7:45 ` Hans Schillstrom
2010-10-21 8:01 ` Eric Dumazet
2010-10-21 15:18 ` Paul E. McKenney [this message]
2010-10-21 8:58 ` Eric Dumazet
2010-10-21 15:16 ` Paul E. McKenney
2010-10-21 15:24 ` Eric Dumazet
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=20101021151806.GC2363@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=daniel.lezcano@free.fr \
--cc=eric.dumazet@gmail.com \
--cc=hans.schillstrom@ericsson.com \
--cc=horms@verge.net.au \
--cc=ja@ssi.bg \
--cc=lvs-devel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=wensong@linux-vs.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).