From: Dave Hansen <haveblue@us.ibm.com>
To: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
Cc: "David S. Miller" <davem@redhat.com>,
hadi@cyberus.ca, tcw@tempest.prismnet.com,
linux-kernel@vger.kernel.org, netdev@oss.sgi.com,
Nivedita Singhvi <niv@us.ibm.com>
Subject: Re: Early SPECWeb99 results on 2.5.33 with TSO on e1000
Date: Fri, 06 Sep 2002 10:36:37 -0700 [thread overview]
Message-ID: <3D78E7A5.7050306@us.ibm.com> (raw)
In-Reply-To: 53430559.1031304588@[10.10.2.3]
Martin J. Bligh wrote:
>>Something strange happens to the clients when NAPI is enabled on
>>the Specweb clients. Somehow the start using a lot more CPU.
>>The increased idle time on the server is because the _clients_ are
>>CPU maxed. I have some preliminary oprofile data for the clients,
>>but it appears that this is another case of Specweb code just
>>really sucking.
>
> Hmmm ... if you change something on the server, and all the clients
> go wild, I'm suspicious of whatever you did to the server.
Me too :) All that was changed was adding the new e1000 driver. NAPI was
disabled.
> You need
> to have a lot more data before leaping to the conclusion that it's
> because the specweb client code is crap.
I'll let the profile speak for itself...
oprofile summary:op_time -d
1 0.0000 0.0000 /bin/sleep
2 0.0001 0.0000 /lib/ld-2.2.5.so.dpkg-new (deleted)
2 0.0001 0.0000 /lib/libpthread-0.9.so
2 0.0001 0.0000 /usr/bin/expr
3 0.0001 0.0000 /sbin/init
4 0.0001 0.0000 /lib/libproc.so.2.0.7
12 0.0004 0.0000 /lib/libc-2.2.5.so.dpkg-new (deleted)
17 0.0005 0.0000 /usr/lib/libcrypto.so.0.9.6.dpkg-new (deleted)
20 0.0006 0.0000 /bin/bash
30 0.0010 0.0000 /usr/sbin/sshd
151 0.0048 0.0000 /usr/bin/vmstat
169 0.0054 0.0000 /lib/ld-2.2.5.so
300 0.0095 0.0000 /lib/modules/2.4.18+O1/oprofile/oprofile.o
1115 0.0354 0.0000 /usr/local/bin/oprofiled
3738 0.1186 0.0000 /lib/libnss_files-2.2.5.so
58181 1.8458 0.0000 /lib/modules/2.4.18+O1/kernel/drivers/net/acenic.o
249186 7.9056 0.0000 /home/dave/specweb99/build/client
582281 18.4733 0.0000 /lib/libc-2.2.5.so
2256792 71.5986 0.0000 /usr/src/linux/vmlinux
top of oprofile from the client:
08051b3c 2260 0.948938 check_for_timeliness
08051cfc 2716 1.14041 ascii_cat
08050f24 4547 1.90921 HTTPGetReply
0804f138 4682 1.9659 workload_op
08050890 6111 2.56591 HTTPDoConnect
08049a30 7330 3.07775 SHMmalloc
08052244 7433 3.121 HTParse
08052628 8482 3.56146 HTSACopy
08051d88 10288 4.31977 get_some_line
08052150 13070 5.48788 scan
08051a10 65314 27.4243 assign_port_number
0804bd30 83789 35.1817 LOG
#define LOG(x) do {} while(0)
Voila! 35% more CPU!
Top of Kernel profile:
c022c850 33085 1.46602 number
c0106e59 42693 1.89176 restore_all
c01dfe68 42787 1.89592 sys_socketcall
c01df39c 54185 2.40097 sys_bind
c01de698 62740 2.78005 sockfd_lookup
c01372c8 97886 4.3374 fput
c022c110 125306 5.55239 __generic_copy_to_user
c01373b0 181922 8.06109 fget
c020958c 199054 8.82022 tcp_v4_get_port
c0106e10 199934 8.85921 system_call
c022c158 214014 9.48311 __generic_copy_from_user
c0216ecc 257768 11.4219 inet_bind
"oprofpp -k -dl -i /lib/libc-2.2.5.so"
just gives:
vma samples %-age symbol name linenr info image name
00000000 582281 100 (no symbol) (no location information)
/lib/libc-2.2.5.so
I've never really tried to profile anything but the kernel before. Any ideas?
> Troy - I think your UP clients weren't anywhere near maxed out on
> CPU power, right? Can you take a peek at the clients under NAPI load?
Make sure you wait a minute or two. The client tends to ramp up.
"vmstat 2" after the client has told the master that it is running:
U S I
----------
4 15 81
5 17 79
7 16 77
7 17 76
7 21 72
11 25 64
3 16 82
2 14 84
7 23 70
16 50 34
24 75 0
27 73 0
28 72 0
24 76 0
...
> Dave - did you ever try running 4 specweb clients bound to each of
> the 4 CPUs in an attempt to make the clients scale better? I'm
> suspicious that you're maxing out 4 4-way machines, and Troy's
> 16 UPs are cruising along just fine.
No, but I'm not sure it will do any good. They don't run often enough and
I have the feeling that there are very few cache locality benefits to be had.
--
Dave Hansen
haveblue@us.ibm.com
next prev parent reply other threads:[~2002-09-06 17:36 UTC|newest]
Thread overview: 101+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 18:30 Early SPECWeb99 results on 2.5.33 with TSO on e1000 Troy Wilson
2002-09-05 20:59 ` jamal
2002-09-05 22:11 ` Troy Wilson
2002-09-05 22:39 ` Nivedita Singhvi
2002-09-05 23:01 ` Dave Hansen
2002-09-05 22:48 ` Nivedita Singhvi
2002-09-06 1:47 ` jamal
2002-09-06 3:38 ` Nivedita Singhvi
2002-09-06 3:58 ` David S. Miller
2002-09-06 4:20 ` Nivedita Singhvi
2002-09-06 4:17 ` David S. Miller
2002-09-07 0:05 ` Troy Wilson
2002-09-06 3:56 ` David S. Miller
2002-09-06 3:47 ` David S. Miller
2002-09-06 6:48 ` Martin J. Bligh
2002-09-06 6:51 ` David S. Miller
2002-09-06 7:36 ` Andrew Morton
2002-09-06 7:22 ` David S. Miller
2002-09-06 9:54 ` jamal
2002-09-06 14:29 ` Martin J. Bligh
2002-09-06 15:38 ` Dave Hansen
2002-09-06 16:11 ` Martin J. Bligh
2002-09-06 16:21 ` Nivedita Singhvi
2002-09-06 15:29 ` Dave Hansen
2002-09-06 16:29 ` Martin J. Bligh
2002-09-06 17:36 ` Dave Hansen [this message]
2002-09-06 18:26 ` Andi Kleen
2002-09-06 18:33 ` Dave Hansen
2002-09-06 18:36 ` David S. Miller
2002-09-06 18:45 ` Martin J. Bligh
2002-09-06 18:43 ` David S. Miller
2002-09-06 19:19 ` Nivedita Singhvi
2002-09-06 19:21 ` David S. Miller
2002-09-06 19:45 ` Nivedita Singhvi
2002-09-06 19:26 ` Andi Kleen
2002-09-06 19:24 ` David S. Miller
2002-09-06 19:45 ` Martin J. Bligh
2002-09-06 17:26 ` Gerrit Huizenga
2002-09-06 17:37 ` David S. Miller
2002-09-06 18:19 ` Gerrit Huizenga
2002-09-06 18:26 ` Martin J. Bligh
2002-09-06 18:36 ` David S. Miller
2002-09-06 18:51 ` Martin J. Bligh
2002-09-06 18:48 ` David S. Miller
2002-09-06 19:05 ` Gerrit Huizenga
2002-09-06 19:01 ` David S. Miller
2002-09-06 20:29 ` Alan Cox
2002-09-06 18:34 ` David S. Miller
2002-09-06 18:57 ` Gerrit Huizenga
2002-09-06 18:58 ` David S. Miller
2002-09-06 19:52 ` Gerrit Huizenga
2002-09-06 19:49 ` David S. Miller
2002-09-06 20:03 ` Gerrit Huizenga
2002-09-06 23:48 ` Troy Wilson
2002-09-11 9:11 ` Eric W. Biederman
2002-09-11 14:10 ` Martin J. Bligh
2002-09-11 15:06 ` Eric W. Biederman
2002-09-11 15:15 ` David S. Miller
2002-09-11 15:31 ` Eric W. Biederman
2002-09-11 15:27 ` Martin J. Bligh
2002-09-12 7:28 ` Todd Underwood
2002-09-12 12:30 ` jamal
2002-09-12 13:57 ` Todd Underwood
2002-09-12 14:11 ` Alan Cox
2002-09-12 14:41 ` todd-lkml
2002-09-12 23:12 ` David S. Miller
2002-09-13 21:59 ` todd-lkml
2002-09-13 22:04 ` David S. Miller
2002-09-15 20:16 ` jamal
2002-09-16 4:23 ` David S. Miller
2002-09-16 14:16 ` todd-lkml
2002-09-16 19:52 ` David S. Miller
2002-09-16 21:32 ` todd-lkml
2002-09-16 21:29 ` David S. Miller
2002-09-16 22:53 ` David Woodhouse
2002-09-16 22:46 ` David S. Miller
2002-09-16 23:03 ` David Woodhouse
2002-09-16 23:08 ` Jeff Garzik
2002-09-16 23:02 ` David S. Miller
2002-09-16 23:48 ` Jeff Garzik
2002-09-16 23:43 ` David S. Miller
2002-09-17 0:01 ` Jeff Garzik
2002-09-17 10:31 ` jamal
2002-09-13 22:12 ` Nivedita Singhvi
2002-09-12 17:18 ` Nivedita Singhvi
2002-09-06 23:56 ` Troy Wilson
2002-09-06 23:52 ` David S. Miller
2002-09-07 0:18 ` Nivedita Singhvi
2002-09-07 0:27 ` Troy Wilson
-- strict thread matches above, loose matches on Subject: below --
2002-09-05 20:47 Feldman, Scott
2002-09-06 11:44 Robert Olsson
2002-09-06 14:37 ` Martin J. Bligh
2002-09-06 15:38 ` Robert Olsson
2002-09-06 18:35 Manfred Spraul
2002-09-06 18:38 ` David S. Miller
2002-09-06 19:40 ` Manfred Spraul
2002-09-06 19:34 ` David S. Miller
2002-09-10 12:02 ` Robert Olsson
2002-09-10 16:55 ` Manfred Spraul
2002-09-11 7:46 ` Robert Olsson
2002-09-10 14:59 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=3D78E7A5.7050306@us.ibm.com \
--to=haveblue@us.ibm.com \
--cc=Martin.Bligh@us.ibm.com \
--cc=davem@redhat.com \
--cc=hadi@cyberus.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=niv@us.ibm.com \
--cc=tcw@tempest.prismnet.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).