From: Matthew Wilcox <willy@infradead.org>
To: Nico Pache <npache@redhat.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
muchun.song@linux.dev, mike.kravetz@oracle.com,
akpm@linux-foundation.org, gerald.schaefer@linux.ibm.com,
Waiman Long <llong@redhat.com>
Subject: Re: [RFC V2] mm: add the zero case to page[1].compound_nr in set_compound_order
Date: Thu, 15 Dec 2022 21:47:10 +0000 [thread overview]
Message-ID: <Y5uV3sS/nb+J+Akx@casper.infradead.org> (raw)
In-Reply-To: <CAA1CXcCboCaVNgLv56Pc9ju95Yc9cK4XHCQObGPA_fbVZGxtTg@mail.gmail.com>
On Thu, Dec 15, 2022 at 02:38:28PM -0700, Nico Pache wrote:
> To expand a little more on the analysis:
> I computed the latency/throughput between <+24> and <+27> using
> intel's manual (APPENDIX D):
>
> The bitmath solutions shows a total latency of 2.5 with a Throughput of 0.5.
> The branch solution show a total latency of 4 and throughput of 1.5.
>
> Given this is not a tight loop, and the next instruction is requiring
> the data computed, better (lower) latency is the more ideal situation.
>
> Just wanted to add that little piece :)
I appreciate how hard you're working on this, but it really is straining
at gnats ;-) For a modern cpu, the most important thing is cache misses
and avoiding dirtying cachelines. Cycle counting isn't that important
when an L3 cache miss takes 2000 (or more) cycles.
next prev parent reply other threads:[~2022-12-15 21:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 23:45 Nico Pache
2022-12-13 23:47 ` Mike Kravetz
2022-12-13 23:53 ` Nico Pache
2022-12-14 0:27 ` Nico Pache
2022-12-14 1:02 ` Mike Kravetz
2022-12-14 6:38 ` Sidhartha Kumar
2022-12-15 1:05 ` Nico Pache
2022-12-14 17:04 ` Matthew Wilcox
2022-12-15 2:48 ` Nico Pache
2022-12-15 21:38 ` Nico Pache
2022-12-15 21:47 ` Matthew Wilcox [this message]
2022-12-15 22:02 ` Nico Pache
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=Y5uV3sS/nb+J+Akx@casper.infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=gerald.schaefer@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llong@redhat.com \
--cc=mike.kravetz@oracle.com \
--cc=muchun.song@linux.dev \
--cc=npache@redhat.com \
--cc=sidhartha.kumar@oracle.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®