From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B49BC433F5 for ; Mon, 11 Oct 2021 07:21:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3BDF460C4A for ; Mon, 11 Oct 2021 07:21:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234465AbhJKHXS (ORCPT ); Mon, 11 Oct 2021 03:23:18 -0400 Received: from vmi485042.contaboserver.net ([161.97.139.209]:45454 "EHLO gentwo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234526AbhJKHWh (ORCPT ); Mon, 11 Oct 2021 03:22:37 -0400 Received: by gentwo.de (Postfix, from userid 1001) id 44B44B00691; Mon, 11 Oct 2021 09:20:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 42397B0025F; Mon, 11 Oct 2021 09:20:36 +0200 (CEST) Date: Mon, 11 Oct 2021 09:20:36 +0200 (CEST) From: Christoph Lameter To: Hyeonggon Yoo <42.hyeyoo@gmail.com> cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka Subject: Re: [PATCH] mm, slub: Use prefetchw instead of prefetch In-Reply-To: <20211008133602.4963-1-42.hyeyoo@gmail.com> Message-ID: References: <20211008133602.4963-1-42.hyeyoo@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Oct 2021, Hyeonggon Yoo wrote: > It's certain that an object will be not only read, but also > written after allocation. get_freepointer is used in multiple code path not only in allocation. It is for example used when scanning through a freelist. With this change all objects get needlessly dirtied and the cross cpu cache contention is increased.