From: Bill Hartner <hartner@austin.ibm.com>
To: Mala Anand <manand@us.ibm.com>
Cc: Benjamin LaHaise <bcrl@redhat.com>,
alan@lxorguk.ukuu.org.uk, Bill Hartner <bhartner@us.ibm.com>,
davem@redhat.com, linux-kernel@vger.kernel.org,
lse-tech@lists.sourceforge.net,
lse-tech-admin@lists.sourceforge.net
Subject: Re: [Lse-tech] Re: (RFC): SKB Initialization
Date: Fri, 23 Aug 2002 14:09:04 -0500 [thread overview]
Message-ID: <3D668850.468184FC@austin.ibm.com> (raw)
In-Reply-To: OF126E7130.D54285DD-ON87256C1C.0077A747@boulder.ibm.com
Mala Anand wrote:
>
> Baseline 2.5.25
> ----------------
> alloc/free average cycles
> -------------------------
> Runs: 1st 2nd 3rd
>
> CPU0: 337/1163 336/1132 304/1100
> CPU1: 318/1164 309/1153 311/1127
>
> 2.5.25+skbinit patch
> --------------------
>
> alloc/free average cycles
> -------------------------
> Runs: 1st 2nd 3rd
>
> CPU0: 447/1015 580/846 402/905
> CPU1: 419/1003 383/915 547/856
>
> The above figures indicate that the cycles spent in alloc_skb and
> __kfree_skb have gained 5% in the patch case. However if you
> take the absolute cycles and average them for the three runs it
> comes around 145 cycles saving that is close to what I posted earlier
> by measuring just the changed code. As the scope of the code measured
> widens the percentage improvement comes down.
Measuring just the initialization code yielded a reduction of 156 cycles.
Measuring alloc_skb and __kfree_skb yielded a reduction of 145 cycles.
This was on a 2 CPU system.
The worst case scenario would be allocating the skb header on one
CPU then freeing it on another CPU. The best case would be doing
all of the allocs and frees on one CPU.
You can use process/irq affinity to create both of these cases.
Can you measure these ?
Bill
next prev parent reply other threads:[~2002-08-23 19:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-22 17:22 [Lse-tech] Re: (RFC): SKB Initialization Mala Anand
2002-08-22 18:32 ` Benjamin LaHaise
2002-08-22 19:02 ` Dave Hansen
2002-08-22 20:58 ` [Ibm-specweb99] " Nivedita Singhvi
2002-08-22 22:05 ` William Lee Irwin III
2002-08-23 19:09 ` Bill Hartner [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-23 14:44 Mala Anand
2002-08-23 16:39 ` Dave Hansen
2002-08-23 20:12 ` Bill Hartner
2002-08-23 20:30 ` Dave Hansen
2002-08-23 23:36 ` Troy Wilson
2002-08-23 20:51 ` Rick Lindsley
2002-08-23 22:41 ` David S. Miller
2002-08-23 23:14 Mala Anand
2002-08-23 23:38 Mala Anand
2002-08-23 23:55 ` David S. Miller
2002-08-25 16:17 jamal
2002-08-25 22:51 ` David S. Miller
2002-08-25 20:12 Mala Anand
2002-08-26 1:02 ` jamal
2002-08-26 13:04 Mala Anand
2002-08-26 19:28 ` Robert Olsson
2002-08-27 10:17 ` jamal
2002-08-27 2:53 Mala Anand
2002-08-27 13:18 Mala Anand
2002-08-27 15:49 ` jamal
2002-09-03 3:47 Mala Anand
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=3D668850.468184FC@austin.ibm.com \
--to=hartner@austin.ibm.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=bcrl@redhat.com \
--cc=bhartner@us.ibm.com \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lse-tech-admin@lists.sourceforge.net \
--cc=lse-tech@lists.sourceforge.net \
--cc=manand@us.ibm.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