From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7A61E1FA19 for ; Thu, 28 Oct 2021 11:15:02 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 7/8] lei sucks: show nproc in CPU info Date: Thu, 28 Oct 2021 11:15:00 +0000 Message-Id: <20211028111501.24014-8-e@80x24.org> In-Reply-To: <20211028111501.24014-1-e@80x24.org> References: <20211028111501.24014-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Some bugs are triggered with more CPUs, some with 1 CPU. --- lib/PublicInbox/LeiSucks.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiSucks.pm b/lib/PublicInbox/LeiSucks.pm index e832f95e0736..8e866fc96655 100644 --- a/lib/PublicInbox/LeiSucks.pm +++ b/lib/PublicInbox/LeiSucks.pm @@ -11,6 +11,7 @@ use Digest::SHA (); use Config; use POSIX (); use PublicInbox::Config; +use PublicInbox::IPC; sub lei_sucks { my ($lei, @argv) = @_; @@ -22,9 +23,10 @@ sub lei_sucks { } eval { require PublicInbox }; my $pi_ver = eval('$PublicInbox::VERSION') // '(???)'; + my $nproc = PublicInbox::IPC::detect_nproc() // '?'; my @out = ("lei $pi_ver\n", "perl $Config{version} / $os $rel / $mac ". - "ptrsize=$Config{ptrsize}\n"); + "ptrsize=$Config{ptrsize} nproc=$nproc\n"); chomp(my $gv = `git --version` || "git missing"); $gv =~ s/ version / /; my $json = ref(PublicInbox::Config->json);