From: "Van Haaren, Harry" <harry.van.haaren@intel.com>
To: Sara Gittlin <sara.gittlin@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] HW cache utilisation w OVS-DPDK
Date: Tue, 30 Apr 2019 18:33:22 +0000 [thread overview]
Message-ID: <E923DB57A917B54B9182A2E928D00FA67582DE8B@IRSMSX102.ger.corp.intel.com> (raw)
In-Reply-To: <CAA_4wjbNkSfSVZ9uPKTougTq23MV0CR64RNbZvsoKsV+Pcns0g@mail.gmail.com>
> -----Original Message-----
> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Sara Gittlin
> Sent: Tuesday, April 30, 2019 6:15 PM
> To: users@dpdk.org
> Subject: [dpdk-users] HW cache utilisation w OVS-DPDK
>
> Hello All
Hi Sara,
> It is a naive and maybe a stupid question , but do we use HW cache L1/L2
> etc with OVS-DPDK?
The hardware CPU caches (L1, L2 and LLC) are transparent to software.
Another way to say that is that When writing code, the software doesn't
have to explicitly use L1 or L2, the memory being used (from libc malloc() or stack memory)
is cached by the CPU without any software involvement.
In short, software uses L1/L2/etc without "knowing" it as such...
However, just because we (as C software developers) cannot directly access cache,
does not mean that we should ignore it! In particular designing cache-conscious
data-structures can have a *huge* impact on runtime performance.
I recommend some of the CPP Con talks on software performance, particularly
the one titled "Efficiency with Algorithms, Performance with Data Structures".
> for example where the flow-table is stored ? in HW-cache or in RAM?
This is a good question - and the answer is like so many engineering questions - it depends :)
If the part of the flow-table has been recently accessed, it is likely to be in the HW-cache.
If the flow-table has been initialized, but not used recently it is likely to be in ordinary RAM.
From a performance point of view, this is quite interesting, as certain flow-table accesses
are expected to be cheap (in cache) while others might take longer (RAM).
> Thank you
> -Sara
Hope that helps! Regards, -Harry
next prev parent reply other threads:[~2019-04-30 18:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-30 17:15 Sara Gittlin
2019-04-30 18:33 ` Van Haaren, Harry [this message]
2019-04-30 20:08 ` Avi Cohen
2019-05-01 10:35 ` Van Haaren, Harry
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=E923DB57A917B54B9182A2E928D00FA67582DE8B@IRSMSX102.ger.corp.intel.com \
--to=harry.van.haaren@intel.com \
--cc=sara.gittlin@gmail.com \
--cc=users@dpdk.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).