From: jamal <hadi@cyberus.ca>
To: Andrew Morton <andrewm@uow.edu.au>
Cc: lkml <linux-kernel@vger.kernel.org>,
"netdev@oss.sgi.com" <netdev@oss.sgi.com>
Subject: Re: sendfile+zerocopy: fairly sexy (nothing to do with ECN)
Date: Sat, 27 Jan 2001 09:15:28 -0500 (EST) [thread overview]
Message-ID: <Pine.GSO.4.30.0101270900230.24088-100000@shell.cyberus.ca> (raw)
In-Reply-To: <3A72CD1E.32BB523F@uow.edu.au>
On Sun, 28 Jan 2001, Andrew Morton wrote:
> jamal wrote:
> >
> > ..
> > It is also useful to have both client and server stats.
> > BTW, since the laptop (with the 3C card) is the client, the SG
> > shouldnt kick in at all.
>
> The `client' here is doing the sendfiling, so yes, the
> gathering occurs on the client.
>
OK, semantics. Maybe we should stick to sender and receiver.
(server normally will translate to "serve" files)
> > I'll give this a shot later. Can you try with the sendfiled-ttcp?
> > http://www.cyberus.ca/~hadi/ttcp-sf.tar.gz
>
> hmm.. I didn't bother with TCP_CORK because the files being
> sent are "much" larger than a frame. Guess I should.
It doesnt make much sense to use sendfile without TCP_CORK.
> The problem with things like ttcp is the measurement of CPU load.
> If your network is so fast that your machine can't keep up then
> fine, raw throughput is a good measure. But if the link is saturated
> then normal process accounting doesn't cut it.
ttcp's CPU measure is not the best. Part of my plan was to change that.
It uses times(). So the measurement is not good. It is infact not
very reflective on SMP. The way to do it there is to break it down
by CPU.
Throughput: 100Mbps is really nothing. Linux never had a problem with
4-500Mbps file serving. So throughput is an important number. so is
end to end latency, but in file serving case, latency might not be a big
deal so ignore it.
> For example, at 100 mbps, `top' says ttcp is chewing 4% CPU. But guess
> what? A low-priority process running on the same machine is in fact
> slowed down by 30%. top lies. Most of the cost of the networking layer
> is being accounted to swapper, and lost. And who accounts for cache
> eviction, bus utilisation, etc. We're better off measuring what's
> left behind, rather than measuring what is consumed.
>
> You can in fact do this with ttcp: run it with a super-high priority
> and run a little task in the background (dummyload.c in the above
> tarball does this). See how much the dummy task is slowed down
> wrt an unloaded system. It gets tricky on SMP though.
>
The best way to do CPU measurement is via /proc. The way top
does it. You measure it from within your nettest program. This does
measure what is "left behind" since your proggie is in user space.
Actually, it shouldnt matter whether you do it from your test program or
from dummyload.c. With dummyload you might have to sigkill the program
every time a test terminates.
You also should break down utilization by CPU.
cheers,
jamal
PS:- can you try it out with the ttcp testcode i posted?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-27 14:16 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-27 5:45 Andrew Morton
2001-01-27 6:20 ` Aaron Lehmann
2001-01-27 8:19 ` Andrew Morton
2001-01-27 10:09 ` Ion Badulescu
2001-01-27 10:45 ` Andrew Morton
2001-01-30 6:00 ` David S. Miller
2001-01-30 12:44 ` Andrew Morton
2001-01-30 12:52 ` David S. Miller
2001-01-30 14:58 ` Andrew Morton
2001-01-30 17:49 ` Chris Wedgwood
2001-01-30 22:17 ` David S. Miller
2001-01-31 0:31 ` Chris Wedgwood
2001-01-31 0:45 ` David S. Miller
2001-01-30 22:28 ` David S. Miller
2001-01-30 23:34 ` Andrew Morton
2001-02-02 10:12 ` Andrew Morton
2001-02-02 12:14 ` Trond Myklebust
2001-02-02 17:51 ` David Lang
2001-02-02 22:46 ` David S. Miller
2001-02-02 22:57 ` David Lang
2001-02-03 2:27 ` James Sutherland
2001-02-02 23:09 ` David S. Miller
2001-02-02 23:13 ` David Lang
2001-02-02 23:28 ` Jeff Barrow
2001-02-02 23:31 ` David S. Miller
2001-01-27 10:05 ` Ion Badulescu
2001-01-27 10:39 ` Andrew Morton
2001-01-27 12:49 ` jamal
2001-01-30 1:06 ` Ion Badulescu
2001-01-30 2:48 ` jamal
2001-01-30 3:26 ` Ion Badulescu
2001-01-31 0:53 ` Still not sexy! (Re: " jamal
2001-01-31 0:59 ` Ingo Molnar
2001-01-31 1:04 ` jamal
2001-01-31 1:14 ` Ingo Molnar
2001-01-31 1:39 ` jamal
2001-01-31 11:21 ` Malcolm Beattie
2001-01-31 11:24 ` Ingo Molnar
2001-01-31 1:10 ` Still not sexy! (Re: sendfile+zerocopy: fairly sexy (nothing to dowith ECN) Rick Jones
2001-01-31 1:45 ` jamal
2001-01-31 2:25 ` Still not sexy! (Re: sendfile+zerocopy: fairly sexy (nothing todowith ECN) Rick Jones
2001-02-04 19:48 ` jamal
2001-02-05 18:51 ` Rick Jones
2001-02-05 5:13 ` David S. Miller
2001-01-27 12:43 ` sendfile+zerocopy: fairly sexy (nothing to do with ECN) jamal
2001-01-27 13:29 ` Andrew Morton
2001-01-27 14:15 ` jamal [this message]
2001-01-28 16:05 ` Andrew Morton
2001-01-29 18:50 ` Rick Jones
[not found] ` <200101271854.VAA02845@ms2.inr.ac.ru>
2001-01-28 5:34 ` Andrew Morton
2001-01-28 13:37 ` Felix von Leitner
2001-01-28 14:11 ` Dan Hollis
2001-01-28 14:27 ` Andi Kleen
2001-01-29 21:50 ` Pavel Machek
2001-01-28 19:43 ` Gregory Maxwell
2001-01-28 19:48 ` Choosing Linux NICs (was: Re: sendfile+zerocopy: fairly sexy (nothing to do with ECN)) Felix von Leitner
2001-01-29 16:16 sendfile+zerocopy: fairly sexy (nothing to do with ECN) Jonathan Earle
2001-01-29 16:34 ` Antonin Kral
2001-01-31 1:49 Bernd Eckenfels
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=Pine.GSO.4.30.0101270900230.24088-100000@shell.cyberus.ca \
--to=hadi@cyberus.ca \
--cc=andrewm@uow.edu.au \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.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
all inboxes | Powered by JetHome®