* [PATCH 7/8] lei sucks: show nproc in CPU info
2021-10-28 11:14 5% [PATCH 0/8] lei: docs and cleanups Eric Wong
@ 2021-10-28 11:15 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-10-28 11:15 UTC (permalink / raw)
To: meta
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);
^ permalink raw reply related [relevance 7%]
* [PATCH 0/8] lei: docs and cleanups
@ 2021-10-28 11:14 5% Eric Wong
2021-10-28 11:15 7% ` [PATCH 7/8] lei sucks: show nproc in CPU info Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-10-28 11:14 UTC (permalink / raw)
To: meta
Expect more on the way. As always some bugs and fixes were
found while attempting to write docs :x
Eric Wong (8):
xt/net_writer_imap: test "lei convert" w/ IMAP source
lei convert: use "--output" in failure message
doc: lei-convert: various updates and cleanups
doc: lei blob: wording fixups, describe --remote
lei convert: remove redundant input_net_cb
doc: lei-add-watch: add warning about unreliability
lei sucks: show nproc in CPU info
lei rm: move generic input_maildir_cb to LeiInput parent class
Documentation/lei-add-watch.pod | 8 ++++++--
Documentation/lei-blob.pod | 12 ++++++++----
Documentation/lei-convert.pod | 21 +++++++++------------
lib/PublicInbox/LeiConvert.pm | 8 ++------
lib/PublicInbox/LeiInput.pm | 5 +++++
lib/PublicInbox/LeiRm.pm | 5 -----
lib/PublicInbox/LeiSucks.pm | 4 +++-
t/lei-convert.t | 10 ++++++++++
xt/net_writer-imap.t | 7 +++++++
9 files changed, 50 insertions(+), 30 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-10-28 11:14 5% [PATCH 0/8] lei: docs and cleanups Eric Wong
2021-10-28 11:15 7% ` [PATCH 7/8] lei sucks: show nproc in CPU info Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).