Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1363512pxb; Mon, 11 Oct 2021 04:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVNGFkRqiV6qG40DDVNUtgplQvu1ofcRBfRnzWr7iA6+anRhlmFZygRpws8xq2OK4tXPz9 X-Received: by 2002:a17:90a:b112:: with SMTP id z18mr10798872pjq.198.1633951981555; Mon, 11 Oct 2021 04:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633951981; cv=none; d=google.com; s=arc-20160816; b=ikyvo+KqwuJ4lyb59YkXhcJk6pkn7BLIMBGn51UQ2ITamz92WtPTgWFAEHIXsV8Bj4 5RQaMA+zuYjKcWiWuJF/+UlYGb9MxtlFg410iv/0nASMDoZa75jG11TGs/Yv1cS/Utm0 ntFSVbg+YKJfufKFC80iWmJRxJ7eN9gbjswbfaXxcQfwVTRDal6J91Y/8LOAt5EJTpc0 /K+d048A5kq8hy2+Jcd58Uw+fhmQdawgpDkXRbbTXWN180S98bStqsOjYp0VPlI2YZTM yy6TLE97S8tjGBsOr0hy4mVcQEksKSwsfgDniyfQSQwRFWPzssJMdjt+GtjbXcQoTJG8 8S0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=oAEo0K5u/N6AHJBmYuQORsqAKDPhUbS0Gl5wQOpALUo=; b=e4iP6Zqk+h+ECs4gaXV0J9y8Ji/m099SoUgSyIU+djvjNZfLVXMudhpu/sN2gKEqHp ToWBfn8MoZxzZOgfyiZVqH9q0jmQREUyn1aZPQbVA6dT96xO0rwFXKn0lNMPo6FJe2iQ cjxm6wW//4wo7iSv0XPb8HocRc8ToA7u7rM52D+LnT+dTDDj9RBw8jsJxr7eJTrLUEUD Fsk4OcMKLUbXmMo7iiN+W9bAcI8L2/lQRMlOqI9kp6eXXQ/nT+74CG1d7268BNdVUZju ndKfGU4ytlFDZeBkJrwTaYTRyf0hQoCfPvouZU9Oi0oCReV45iOoWHrGxrE5iHKyA1uW YZDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f130si10611950pgc.87.2021.10.11.04.32.49; Mon, 11 Oct 2021 04:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233650AbhJKHXR (ORCPT + 99 others); Mon, 11 Oct 2021 03:23:17 -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.