Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6714365ioo; Thu, 2 Jun 2022 12:05:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx59/sfr/B+arh2J1D+GIY79TznVAY8BnzTCu/Wyz+fphuY5cBDih9GzegqSgrPWTqaoj8j X-Received: by 2002:a17:906:9b92:b0:6fd:e4ce:e416 with SMTP id dd18-20020a1709069b9200b006fde4cee416mr5575628ejc.394.1654196749081; Thu, 02 Jun 2022 12:05:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654196749; cv=none; d=google.com; s=arc-20160816; b=V7Vrz0xH4iWDey5SZTXaJTEhcuE7aIxWTjYVITM2otC3GNGf189InRnb1HuEu0RJa7 S+fSERkNY+ZbajVbbKp248S3DwPMqrkKHorJhA2CZ1bqTVXp5PVyXDqcNu7i50aHoGOV djVMOOOgJfeD8xIRwtxuUK7IfZ1mSI5jTMDQAqMR7Fu7hIUsiKWp3n0xmdqhjiHE7zr3 V3IvZ6pKItGc2yKxK/1oshJC7hyKNMU4LgdDrv1JgxLuebZBFyPY6FljPZ7oAHfPtkYU q9rK5ZOOiFxUo9aInUuGn0Hu+cgo3lFsaPO3Wlku0z+aGvr5GvtElFPehVv+y12Mav9f eb1A== 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:dkim-signature; bh=hvAa6ofYWFV4vL+MuhdmzPAGvRtWimk/1jDhChMw+d0=; b=a7iwVan918bog2zHD31dVnNi3BybCXglcp6lFLNIPx58whRP1tx3MykzovGKVbEBIu bkXBBA6UeULNd93vlfYT3gvLaw8OLKrlQdNTaH8Ur8Wmob9YD6Q+qF6hE7RKzGpGtTgb Rkq33MMfWj/IiQ5wHjeWFeummMT8iaDvSVHIG4O5XnoMzZjz4kvrnTSPS2vnFjWYhg6k eFlF8FxYI3b8NIaSMkhor0DFQz8hGiPiQsiffXaWq/iPi1KnxYrcyNhrDPG1BDByuf3+ ljT9LoPz9g58CUtidHp8w/vHQJxRFLY1+dDLBnb0VWSD0lMw/XkNH7tFUS1M2vEhmV9q LYdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=JZykwXFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb13-20020a0564020b6d00b0042d930aa536si5182487edb.429.2022.06.02.12.05.23; Thu, 02 Jun 2022 12:05:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gentwo.de header.s=default header.b=JZykwXFz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235142AbiFBPOt (ORCPT + 99 others); Thu, 2 Jun 2022 11:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230114AbiFBPOq (ORCPT ); Thu, 2 Jun 2022 11:14:46 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF574156447 for ; Thu, 2 Jun 2022 08:14:43 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id E7CB4B00142; Thu, 2 Jun 2022 17:14:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.de; s=default; t=1654182881; bh=hvAa6ofYWFV4vL+MuhdmzPAGvRtWimk/1jDhChMw+d0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=JZykwXFzjruFfTKkX3UXi5/LSC3/9+ffdOnwVbFsJ5PT+5Rma/6SAwgxKYF253WD/ o4GQZBvAK2C2YH8NCmGUWCb0LHCVVeAIIulr9Ok0cx7UKLeL3GfWf+j4KLvlRATjzX pJJMnP/PLp3qFQdduh1gPI1o+52T8rkhnQY+E1p4K7ixZiIhATFOhxxXQQMbsIYV/G JfCCIDTJXyxTYbcnVY3Tgj2NRbIFb+lzsEaDvcUaOR26sdoyoOhLMx8n7qRav+mror Nlm2lKYYjDzmGU+cyP0kIEnGS7xg323pzbsZRtQ/XAVWTpqnuSl52LrdNT0Iq764WB j3n8cekSReFhw== Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id E6966B0013B; Thu, 2 Jun 2022 17:14:41 +0200 (CEST) Date: Thu, 2 Jun 2022 17:14:41 +0200 (CEST) From: Christoph Lameter To: David Rientjes cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, Rongwei Wang , akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, iamjoonsoo.kim@lge.com, penberg@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm/slub: fix the race between validate_slab and slab_free In-Reply-To: Message-ID: References: <20220529081535.69275-1-rongwei.wang@linux.alibaba.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 May 2022, David Rientjes wrote: > > Unconditionally taking n->list_lock will degrade performance. > > This is a good point, it would be useful to gather some benchmarks for > workloads that are known to thrash some caches and would hit this path > such as netperf TCP_RR. Its obvious that adding new spinlocks to some of the hottest functions in the kernel will degrade performance. This goes against the basic design of these functions to be as efficient as possible.