Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3980448pxj; Tue, 8 Jun 2021 03:40:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOtVeRPoMp48upGL6U/oVLv6+3yU3WJ13cdd1M9+3fT0hXnS/wv+C5yfZB5bbfj82riq9T X-Received: by 2002:a17:907:1b1b:: with SMTP id mp27mr22196431ejc.538.1623148825574; Tue, 08 Jun 2021 03:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623148825; cv=none; d=google.com; s=arc-20160816; b=VnJlVXKE1QYiTX7zAXp2a97akF+MYA+mrMY6ztc/YqkKj0PmMd86M55vXD6I8mgJLf XJULF/3tqc8mfcIlLw0VvqGowhfYUx8fT/CIIV7CII11O5U9/ofZ3SueiGfyKVQ6UIUu iwH2qHH2rTbWvI9/mxw0NOgURZjEN9jT1fRDhIa29GllsaKXzoQy4HGlpjftB/A3GRYf ipXV9jtvxcm21WCR23CckV2RVpKbn2aXq8w9L4CVMwRlVzPC8IBxP+WgqeJcLGEEJ1c3 Zz480cm4HqBBGW5dwYf+Zjuad1cFIAYZe3i0Ou5t+fEs0DgyB/hmYza1iwDddBAK5sgH nLgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=UDmE6QuhdTyP2nHpIsv6JodtlTnXMn4pqbcTnULJo+U=; b=YO6Y4wvWOUd1ZIJMC/TSkV7EF9vG2OZd7Oq0b+k562mqLOfKedstXyIkZt4X57N+j2 Fm+8cFBY9EaUNV8QzPYpgS3S+86OBEaq7zY+H+eHPoojwLyMxWcZqfkHVuU3HGgDkg6B pBYyBE/4powQJ48dzJx4wF/ZA30SjakTh5syF/A8JejV4S3zfe56F/6qyIz+O6IJLGzw eGpSPyr17eSBNXU09jCN8DmlaALT/GHbVLpxx4cmge1yPBTLpeDyTpqcDRhcxxRXBiNQ amGMQQ/APNXMD4wcIWr4UlKJzu1tU3zJRs3bVGIZQ/BovwsYxNGOC5o9qxXpECDmA11g Q0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mN9m+U7X; dkim=neutral (no key) header.i=@suse.cz header.b=eFmkzv6q; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mN9m+U7X; dkim=neutral (no key) header.i=@suse.cz header.b=eFmkzv6q; 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 m7si6846447edq.604.2021.06.08.03.40.02; Tue, 08 Jun 2021 03:40:25 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mN9m+U7X; dkim=neutral (no key) header.i=@suse.cz header.b=eFmkzv6q; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=mN9m+U7X; dkim=neutral (no key) header.i=@suse.cz header.b=eFmkzv6q; 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 S230523AbhFHKj2 (ORCPT + 99 others); Tue, 8 Jun 2021 06:39:28 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:42716 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231258AbhFHKj0 (ORCPT ); Tue, 8 Jun 2021 06:39:26 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A1A72219AA; Tue, 8 Jun 2021 10:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623148650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UDmE6QuhdTyP2nHpIsv6JodtlTnXMn4pqbcTnULJo+U=; b=mN9m+U7XOsvR6ZQPol37rfpX9oFXJXqlJsVlWdcH7OtoHSsHu8HGiwuXhRvRvw6UKxC4GX CxmiNN+TNGVm+KbYNvuQM51rn/RL+SJumMfp7Qp4qq8DI00ljGEJRlkbQROiwVEk3wzFRd fWhRwimnHAZgO6W/9AMhkjynQWkGusA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623148650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UDmE6QuhdTyP2nHpIsv6JodtlTnXMn4pqbcTnULJo+U=; b=eFmkzv6qRK5id41CrO5FZjshj+sxdGiIZ61Qtsh6S8nLUdZdK9//zNq1Nm6fyhrScEw7sY exS9hD9Y8LNXeoAg== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 7B7E0118DD; Tue, 8 Jun 2021 10:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623148650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UDmE6QuhdTyP2nHpIsv6JodtlTnXMn4pqbcTnULJo+U=; b=mN9m+U7XOsvR6ZQPol37rfpX9oFXJXqlJsVlWdcH7OtoHSsHu8HGiwuXhRvRvw6UKxC4GX CxmiNN+TNGVm+KbYNvuQM51rn/RL+SJumMfp7Qp4qq8DI00ljGEJRlkbQROiwVEk3wzFRd fWhRwimnHAZgO6W/9AMhkjynQWkGusA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623148650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UDmE6QuhdTyP2nHpIsv6JodtlTnXMn4pqbcTnULJo+U=; b=eFmkzv6qRK5id41CrO5FZjshj+sxdGiIZ61Qtsh6S8nLUdZdK9//zNq1Nm6fyhrScEw7sY exS9hD9Y8LNXeoAg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id uDqaHWpIv2COBgAALh3uQQ (envelope-from ); Tue, 08 Jun 2021 10:37:30 +0000 Subject: Re: [RFC 02/26] mm, slub: allocate private object map for validate_slab_cache() To: Mel Gorman Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter , David Rientjes , Pekka Enberg , Joonsoo Kim , Sebastian Andrzej Siewior , Thomas Gleixner , Jesper Dangaard Brouer , Peter Zijlstra , Jann Horn References: <20210524233946.20352-1-vbabka@suse.cz> <20210524233946.20352-3-vbabka@suse.cz> <20210525101742.GK30378@techsingularity.net> <20210525113317.GM30378@techsingularity.net> From: Vlastimil Babka Message-ID: <2af1b781-cb88-9e37-9b94-921b7ab82949@suse.cz> Date: Tue, 8 Jun 2021 12:37:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210525113317.GM30378@techsingularity.net> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 1:33 PM, Mel Gorman wrote: > On Tue, May 25, 2021 at 12:36:52PM +0200, Vlastimil Babka wrote: >> > Most callers of validate_slab_cache don't care about the return value >> > except when the validate sysfs file is written. Should a simply >> > informational message be displayed for -ENOMEM in case a writer to >> > validate fails and it's not obvious it was because of an allocation >> > failure? >> >> he other callers are all in the effectively dead resiliency_test() code, which >> has meanwhile been replaced in mmotm by kunit tests meanwhile. But it's true >> those don't check the results either for now. >> > > Ok. > >> > It's a fairly minor concern so whether you add a message or not >> >> I think I'll rather fix up the tests. Or do you mean that -ENOMEM for a sysfs >> write is also not enough and there should be a dmesg explanation for that case? >> > > I mean the -ENOMEM for a sysfs write. While it's very unlikely, it might > would explain an unexpected write failure. On second thought, a failed GFP_KERNEL allocation will already generate a prominent warning, so an extra message looks arbitrary.