From: Eric Dumazet <eric.dumazet@gmail.com>
To: cold cold <nedkonedev@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: 0% cpu usasge after fresh boot or net restart but 10% CPU if kernel flush route cache
Date: Thu, 28 Jan 2010 22:16:27 +0100 [thread overview]
Message-ID: <1264713387.3380.17.camel@edumazet-laptop> (raw)
In-Reply-To: <41ac0f9e1001281049g119d5b1bgbc47f78150cac6ee@mail.gmail.com>
Le jeudi 28 janvier 2010 à 20:49 +0200, cold cold a écrit :
> what you mean drop packets ?
>
> i test 2 different things and shearing results with you
> first test with high CPU is with garbage collection function
> second results represent CPU usage with totally disabled garbage collection
ell, you didnt describe your benchmark method.
1) your results were on different rx/tx workload, and describing your
workload is very important to be able to compare results. Then it should
be exactly same workload.
For example, when tx/tx load is high enough, less cpu overhead is spent
on irq processing, since each IRQ delivers more packets per round.
2) you didnt sent "perf top" results for the second/last one.
But the first "perf top" results showed less than 1% of cpu time was
used by cache cleanup. I guess you dont want to focus on this, since
its already very good.
Usually, when we want to bench a router, we study how it deals with DDOS
workload. Feeding lot of packets to the device and study what percentage
of them are actually transmitted. Goal being 100% of legit packets of
course.
Route cache settings matter in DDOS situations, and the flush operation
can have a big impact on dropped frames because of cpu/ram congestion.
Because of 600 seconds oscillations, its pretty hard to study exact cpu
use of a router, unless taking samples on long periods.
next prev parent reply other threads:[~2010-01-28 21:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 16:58 0% cpu usasge after fresh boot or net restart but 10% CPU if kernel flush route cache cold cold
2010-01-27 15:26 ` Eric Dumazet
2010-01-27 19:53 ` cold cold
2010-01-27 21:18 ` Eric Dumazet
2010-01-28 9:14 ` cold cold
2010-01-28 16:09 ` Eric Dumazet
2010-01-28 16:26 ` cold cold
2010-01-28 17:06 ` Eric Dumazet
2010-01-28 18:49 ` cold cold
2010-01-28 21:16 ` Eric Dumazet [this message]
2010-01-29 7:38 ` cold cold
2010-01-29 9:06 ` 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=1264713387.3380.17.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=nedkonedev@gmail.com \
--cc=netdev@vger.kernel.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