[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180621143140.GA14095@gmail.com>
Date: Thu, 21 Jun 2018 16:31:40 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Mike Snitzer <snitzer@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Mikulas Patocka <mpatocka@...hat.com>,
Dan Williams <dan.j.williams@...el.com>,
device-mapper development <dm-devel@...hat.com>,
X86 ML <x86@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 RESEND] x86: optimize memcpy_flushcache
* Mike Snitzer <snitzer@...hat.com> wrote:
> From: Mikulas Patocka <mpatocka@...hat.com>
> Subject: [PATCH v2] x86: optimize memcpy_flushcache
>
> In the context of constant short length stores to persistent memory,
> memcpy_flushcache suffers from a 2% performance degradation compared to
> explicitly using the "movnti" instruction.
>
> Optimize 4, 8, and 16 byte memcpy_flushcache calls to explicitly use the
> movnti instruction with inline assembler.
Linus requested asm optimizations to include actual benchmarks, so it would be
nice to describe how this was tested, on what hardware, and what the before/after
numbers are.
Thanks,
Ingo
Powered by blists - more mailing lists