Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1777692rwd; Mon, 15 May 2023 02:57:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6+CVsVRve8ICuAL1o+2E1Fw9AXiESVyH4F6Yn0u9KLaayKyUSd2VDTeNsipi3q7X5tgHwO X-Received: by 2002:a17:903:2656:b0:1ab:8f4:af2b with SMTP id je22-20020a170903265600b001ab08f4af2bmr30967726plb.38.1684144671141; Mon, 15 May 2023 02:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684144671; cv=none; d=google.com; s=arc-20160816; b=xhAC9hl3tzfR8yJ3xRUAXXVBYZ0afFkNA8VthTcsiBzQqnEEoRQQtYE0177Roll3Pt XdZv1BYhX6QVzBlSonD3EV6L0axW4LuTqtdTS7PfdEMOJ33iOwkgpLtU1Csx8sHG9/6l TKEd7/H27uhxwp/UJEHx+o4TMgaf1xbshaDYbkWAiUA+egWweNzlDjlZdAuC61QQNSP/ 0v+VNPbNK1WgFiEZR5e+o70VppAJq37RoYV9LQGNZVSY43kG20Go1WpilcDJ6bDRyJTW WZqYpVeBBpKoAPs79hY1S70D3ltS7FSLi6fT0fc3/xtkNa9WmAHmqDYEvwyNAeAS7qQl hMKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=d6f9B5dniaETJnkHpvCpp87bblsIxM9zfP3n8G0eb0M=; b=iHNbpL/eRqGsHTmmRtBr7dZzYMu3pKboKpveHSs7Lkx8Hod6/KZbb5WI40vBwxJe95 5zU5LxEruZVx9KEGnaxvxIaMfQVDXf/bW5CCifMlj/2lhi/g3iz4fW8ePhLBtS9aemhv wU3Hm+ofzshFQ8QDOmvTqggROqroSrphydH4xwc7wf/UOuwEyyBsY1MHrcsVSnn07Iy3 JhNlDOS3vd1o1FYX6o4eaEzUuZsF4NI+iksQLBArhnp6bErJ/KqC0F1M/bDwNfAFAhh0 hmD3R4tJGMFh99jX9Fa+BWS//6DL/9x5dgsgVu63Jieqf8H4U/t6cFBwes7DOCn0zU+G abWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a1709026b8b00b001adc4babc70si10237000plk.72.2023.05.15.02.57.39; Mon, 15 May 2023 02:57:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240797AbjEOJqH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 May 2023 05:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241244AbjEOJpT (ORCPT ); Mon, 15 May 2023 05:45:19 -0400 Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BF37E79 for ; Mon, 15 May 2023 02:44:50 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-b9dea9d0360so16584071276.1 for ; Mon, 15 May 2023 02:44:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684143889; x=1686735889; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FfFE/qiRkN557/2I5XaanSNXOAZ3eFVDGQ65E3a+VhY=; b=eOGFHz1BY67FKSOAw16kbFMRbsbm8dY5Izlh7ngGUIJ2MhmcpOavU6qfaE9VU/W36v MV6mRRBlljqxEflu4pqI6F7xU0FRXNFWtBY/8XFqrvrUq5kLOv4Qvb+VrE5Ofqjppl4z 7jEL60rSnORm71LK4NuVmrJ4D/P9J+khOuyhxitdsu+iG+WHx4HHDq07QKkHgXAHuNj1 lnxfU8IJXnQ6Jlxmj1aRnA8MiqlUU3JgsqyS3Pk1/dQ8QkHTmLdpFXbLeEmSUD0Kdmyz Awy5mnSdLpRwo/4WKC+wmP8EHO+kfhNn5stY3jM+aAq71YYzSiR4L0pDEwhMnsdNGANQ AWvA== X-Gm-Message-State: AC+VfDzllWFzJvQ2wcR3ttJYC+eEFt2AthThV0cvgKyxI5uUDyt19YVV ncvbPmAbgZSFaJ2o6ujzwA6M/fFx7u4ujg== X-Received: by 2002:a25:c7c3:0:b0:ba7:86c2:d95c with SMTP id w186-20020a25c7c3000000b00ba786c2d95cmr3869710ybe.64.1684143889180; Mon, 15 May 2023 02:44:49 -0700 (PDT) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id z14-20020a25bb0e000000b00b96a0d1a0a7sm6771287ybg.11.2023.05.15.02.44.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 02:44:48 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-559debdedb5so186439787b3.0 for ; Mon, 15 May 2023 02:44:48 -0700 (PDT) X-Received: by 2002:a81:9c10:0:b0:559:e974:82 with SMTP id m16-20020a819c10000000b00559e9740082mr33480420ywa.20.1684143888518; Mon, 15 May 2023 02:44:48 -0700 (PDT) MIME-Version: 1.0 References: <1296c4d691bba057291246f067c191ef8a88531c.1680667933.git.fthain@linux-m68k.org> In-Reply-To: <1296c4d691bba057291246f067c191ef8a88531c.1680667933.git.fthain@linux-m68k.org> From: Geert Uytterhoeven Date: Mon, 15 May 2023 11:44:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] nubus: Don't list slot resources by default To: Finn Thain Cc: Brad Boyer , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Apr 5, 2023 at 6:19 AM Finn Thain wrote: > Some Nubus card ROMs contain many slot resources. A single Radius video > card produced well over a thousand entries under /proc/bus/nubus/. > Populating /proc/bus/nubus/ on a slow machine with several such cards > installed takes long enough that the user may think that the system is > wedged. All those procfs entries also consume significant RAM though > they are not normally needed (except by developers). > Omit these resources from /proc/bus/nubus/ by default and add a kernel > parameter to enable them when needed. > On the test machine, this saved 300 kB and 10 seconds. > > Cc: Brad Boyer > Tested-by: Stan Johnson > Signed-off-by: Finn Thain > --- > Changed since v3: > - Better commentary. > Changed since v2: > - Added commentary. > - Moved declaration to nubus.h. > Changed since v1: > - Expanded to cover all slot resources in procfs. Reviewed-by: Geert Uytterhoeven i.e. will queue in the m68k for-v6.5 branch. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds