* [PATCH 1/3] chainlint.pl: make CPU count computation more robust
2024-05-20 19:01 ` [PATCH 0/3] improve chainlint.pl CPU count computation Eric Sunshine
@ 2024-05-20 19:01 ` Eric Sunshine
2024-05-20 19:01 ` [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC Eric Sunshine
` (2 subsequent siblings)
3 siblings, 0 replies; 23+ messages in thread
From: Eric Sunshine @ 2024-05-20 19:01 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, John Paul Adrian Glaubitz, Eric Sunshine
From: Eric Sunshine <sunshine@sunshineco.com>
There have been reports[1,2] of chainlint.pl failing to produce output
when output is expected. In fact, the underlying problem is more severe:
in these cases, it isn't doing any work at all, thus not checking Git
tests for semantic problems. In the reported cases, the problem was
tracked down to ncores() returning 0 for the CPU count, which resulted
in chainlint.pl not performing any work (since it thought it had no
cores on which to process).
In the reported cases, the reason for the failure was that the regular
expression counting the number of processors reported by /proc/cpuinfo
failed to find any matches, hence it counted 0 processors. Although
fixing each case as it is reported allows chaining.pl to work correctly
on that architecture, it does nothing to improve the overall robustness
of the core count computation which may still return 0 on some yet
untested architecture.
Address this shortcoming by ensuring that ncores() returns a sensible
fallback value in all cases.
[1]: https://lore.kernel.org/git/pull.1385.git.git.1669148861635.gitgitgadget@gmail.com/
[2]: https://lore.kernel.org/git/8baa12f8d044265f1ddeabd64209e7ac0d3700ae.camel@physik.fu-berlin.de/
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
---
t/chainlint.pl | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/t/chainlint.pl b/t/chainlint.pl
index 556ee91a15..d9a2691889 100755
--- a/t/chainlint.pl
+++ b/t/chainlint.pl
@@ -716,11 +716,22 @@ sub fd_colors {
sub ncores {
# Windows
- return $ENV{NUMBER_OF_PROCESSORS} if exists($ENV{NUMBER_OF_PROCESSORS});
+ if (exists($ENV{NUMBER_OF_PROCESSORS})) {
+ my $ncpu = $ENV{NUMBER_OF_PROCESSORS};
+ return $ncpu > 0 ? $ncpu : 1;
+ }
# Linux / MSYS2 / Cygwin / WSL
- do { local @ARGV='/proc/cpuinfo'; return scalar(grep(/^processor[\s\d]*:/, <>)); } if -r '/proc/cpuinfo';
+ if (open my $fh, '<', '/proc/cpuinfo') {
+ my $cpuinfo = do { local $/; <$fh> };
+ close($fh);
+ my @matches = ($cpuinfo =~ /^processor[\s\d]*:/mg);
+ return @matches ? scalar(@matches) : 1;
+ }
# macOS & BSD
- return qx/sysctl -n hw.ncpu/ if $^O =~ /(?:^darwin$|bsd)/;
+ if ($^O =~ /(?:^darwin$|bsd)/) {
+ my $ncpu = qx/sysctl -n hw.ncpu/;
+ return $ncpu > 0 ? $ncpu : 1;
+ }
return 1;
}
--
2.45.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-20 19:01 ` [PATCH 0/3] improve chainlint.pl CPU count computation Eric Sunshine
2024-05-20 19:01 ` [PATCH 1/3] chainlint.pl: make CPU count computation more robust Eric Sunshine
@ 2024-05-20 19:01 ` Eric Sunshine
2024-05-22 8:32 ` Carlo Marcelo Arenas Belón
2024-05-20 19:01 ` [PATCH 3/3] chainlint.pl: latch CPU count directly reported by /proc/cpuinfo Eric Sunshine
2024-05-20 19:17 ` [PATCH 0/3] improve chainlint.pl CPU count computation John Paul Adrian Glaubitz
3 siblings, 1 reply; 23+ messages in thread
From: Eric Sunshine @ 2024-05-20 19:01 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, John Paul Adrian Glaubitz, Eric Sunshine
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
On SPARC systems running Linux, individual processors are denoted with
"CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:". As a
result, the regexp in ncores() matches 0 times. Address this shortcoming
by extending the regexp to also match lines with "CPUnn:".
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
[es: simplified regexp; tweaked commit message]
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
---
t/chainlint.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/chainlint.pl b/t/chainlint.pl
index d9a2691889..d593cb95e7 100755
--- a/t/chainlint.pl
+++ b/t/chainlint.pl
@@ -724,7 +724,7 @@ sub ncores {
if (open my $fh, '<', '/proc/cpuinfo') {
my $cpuinfo = do { local $/; <$fh> };
close($fh);
- my @matches = ($cpuinfo =~ /^processor[\s\d]*:/mg);
+ my @matches = ($cpuinfo =~ /^(processor|CPU)[\s\d]*:/mg);
return @matches ? scalar(@matches) : 1;
}
# macOS & BSD
--
2.45.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-20 19:01 ` [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC Eric Sunshine
@ 2024-05-22 8:32 ` Carlo Marcelo Arenas Belón
2024-05-22 8:47 ` John Paul Adrian Glaubitz
0 siblings, 1 reply; 23+ messages in thread
From: Carlo Marcelo Arenas Belón @ 2024-05-22 8:32 UTC (permalink / raw)
To: Eric Sunshine
Cc: git, Junio C Hamano, John Paul Adrian Glaubitz, Eric Sunshine
On Mon, May 20, 2024 at 03:01:30PM UTC, Eric Sunshine wrote:
> From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
>
> On SPARC systems running Linux, individual processors are denoted with
> "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
not sure if worth a reroll, but the "usual" syntax is "processor : NN"
the regexp used checks for numbers before the colon to account for the
syntax used on s390x which is the only one with numbers before the colon.
Carlo
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-22 8:32 ` Carlo Marcelo Arenas Belón
@ 2024-05-22 8:47 ` John Paul Adrian Glaubitz
2024-05-22 9:05 ` Eric Sunshine
0 siblings, 1 reply; 23+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-22 8:47 UTC (permalink / raw)
To: Carlo Marcelo Arenas Belón, Eric Sunshine
Cc: git, Junio C Hamano, Eric Sunshine
Hi Carlo,
On Wed, 2024-05-22 at 01:32 -0700, Carlo Marcelo Arenas Belón wrote:
> On Mon, May 20, 2024 at 03:01:30PM UTC, Eric Sunshine wrote:
> > From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> >
> > On SPARC systems running Linux, individual processors are denoted with
> > "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
>
> not sure if worth a reroll, but the "usual" syntax is "processor : NN"
> the regexp used checks for numbers before the colon to account for the
> syntax used on s390x which is the only one with numbers before the colon.
Good catch. I think this can just be fixed by whoever commits the patches
or is that done automatically?
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-22 8:47 ` John Paul Adrian Glaubitz
@ 2024-05-22 9:05 ` Eric Sunshine
2024-05-22 19:00 ` Junio C Hamano
0 siblings, 1 reply; 23+ messages in thread
From: Eric Sunshine @ 2024-05-22 9:05 UTC (permalink / raw)
To: John Paul Adrian Glaubitz
Cc: Carlo Marcelo Arenas Belón, Eric Sunshine, git,
Junio C Hamano
On Wed, May 22, 2024 at 4:47 AM John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> On Wed, 2024-05-22 at 01:32 -0700, Carlo Marcelo Arenas Belón wrote:
> > On Mon, May 20, 2024 at 03:01:30PM UTC, Eric Sunshine wrote:
> > > From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> > >
> > > On SPARC systems running Linux, individual processors are denoted with
> > > "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
> >
> > not sure if worth a reroll, but the "usual" syntax is "processor : NN"
> > the regexp used checks for numbers before the colon to account for the
> > syntax used on s390x which is the only one with numbers before the colon.
>
> Good catch. I think this can just be fixed by whoever commits the patches
> or is that done automatically?
Inclusion of the word "usual" is such a minor flaw in the commit
message that I doubt it warrants a reroll and the associated cost on
reviewers and on the maintainer (Junio), especially since it does not
negatively impact the intent conveyed by the commit messages nor the
correctness of the actual patch.
As such, I'm not worried about it. Whether Junio reads this and wants
to correct it in his tree is up to him, of course.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-22 9:05 ` Eric Sunshine
@ 2024-05-22 19:00 ` Junio C Hamano
2024-05-22 19:11 ` Eric Sunshine
0 siblings, 1 reply; 23+ messages in thread
From: Junio C Hamano @ 2024-05-22 19:00 UTC (permalink / raw)
To: Eric Sunshine
Cc: John Paul Adrian Glaubitz, Carlo Marcelo Arenas Belón,
Eric Sunshine, git
Eric Sunshine <sunshine@sunshineco.com> writes:
>> > > "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
>> >
>> > not sure if worth a reroll, but the "usual" syntax is "processor : NN"
> ...
> Inclusion of the word "usual" is such a minor flaw in the commit
> message that I doubt it warrants a reroll and the associated cost on
> reviewers and on the maintainer (Junio), especially since it does not
> negatively impact the intent conveyed by the commit messages nor the
> correctness of the actual patch.
>
> As such, I'm not worried about it. Whether Junio reads this and wants
> to correct it in his tree is up to him, of course.
I think "usual" is not what was pointed out. The order between the
colon and NN is.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-22 19:00 ` Junio C Hamano
@ 2024-05-22 19:11 ` Eric Sunshine
2024-05-27 19:48 ` John Paul Adrian Glaubitz
0 siblings, 1 reply; 23+ messages in thread
From: Eric Sunshine @ 2024-05-22 19:11 UTC (permalink / raw)
To: Junio C Hamano
Cc: John Paul Adrian Glaubitz, Carlo Marcelo Arenas Belón,
Eric Sunshine, git
On Wed, May 22, 2024 at 3:00 PM Junio C Hamano <gitster@pobox.com> wrote:
> Eric Sunshine <sunshine@sunshineco.com> writes:
> >> > > "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
> >> >
> >> > not sure if worth a reroll, but the "usual" syntax is "processor : NN"
> > ...
> > Inclusion of the word "usual" is such a minor flaw in the commit
> > message that I doubt it warrants a reroll and the associated cost on
> > reviewers and on the maintainer (Junio), especially since it does not
> > negatively impact the intent conveyed by the commit messages nor the
> > correctness of the actual patch.
> >
> > As such, I'm not worried about it. Whether Junio reads this and wants
> > to correct it in his tree is up to him, of course.
>
> I think "usual" is not what was pointed out. The order between the
> colon and NN is.
Yes, I understood that, but it is the word "usual" which makes the
text "processor NN:" questionable since "processor NN:" is not
typical. Without the word "usual", stating "processor NN:" is not
especially problematic since the existing regex (which is being
changed by this patch) _does_ match "processor NN:" (among others such
as "processor:").
If we want to be more accurate, better wording might be:
On SPARC systems running Linux, individual processors are denoted
with "CPUnn:" in /proc/cpuinfo, however, the regexp in ncores()
matches only "processor:" or "processor NN:". As a result, no
processors are found on SPARC. Address this shortcoming by
extending the regexp to also match lines with "CPUnn:".
but I doubt it is worth a reroll.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-22 19:11 ` Eric Sunshine
@ 2024-05-27 19:48 ` John Paul Adrian Glaubitz
2024-05-27 20:12 ` Eric Sunshine
0 siblings, 1 reply; 23+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-27 19:48 UTC (permalink / raw)
To: Eric Sunshine, Junio C Hamano
Cc: Carlo Marcelo Arenas Belón, Eric Sunshine, git
Hi,
On Wed, 2024-05-22 at 15:11 -0400, Eric Sunshine wrote:
> On Wed, May 22, 2024 at 3:00 PM Junio C Hamano <gitster@pobox.com> wrote:
> > Eric Sunshine <sunshine@sunshineco.com> writes:
> > > > > > "CPUnn:" in /proc/cpuinfo instead of the usual "processor NN:".
> > > > >
> > > > > not sure if worth a reroll, but the "usual" syntax is "processor : NN"
> > > ...
> > > Inclusion of the word "usual" is such a minor flaw in the commit
> > > message that I doubt it warrants a reroll and the associated cost on
> > > reviewers and on the maintainer (Junio), especially since it does not
> > > negatively impact the intent conveyed by the commit messages nor the
> > > correctness of the actual patch.
> > >
> > > As such, I'm not worried about it. Whether Junio reads this and wants
> > > to correct it in his tree is up to him, of course.
> >
> > I think "usual" is not what was pointed out. The order between the
> > colon and NN is.
>
> Yes, I understood that, but it is the word "usual" which makes the
> text "processor NN:" questionable since "processor NN:" is not
> typical. Without the word "usual", stating "processor NN:" is not
> especially problematic since the existing regex (which is being
> changed by this patch) _does_ match "processor NN:" (among others such
> as "processor:").
>
> If we want to be more accurate, better wording might be:
>
> On SPARC systems running Linux, individual processors are denoted
> with "CPUnn:" in /proc/cpuinfo, however, the regexp in ncores()
> matches only "processor:" or "processor NN:". As a result, no
> processors are found on SPARC. Address this shortcoming by
> extending the regexp to also match lines with "CPUnn:".
>
> but I doubt it is worth a reroll.
So, could we get this series merged now or is there anything missing?
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC
2024-05-27 19:48 ` John Paul Adrian Glaubitz
@ 2024-05-27 20:12 ` Eric Sunshine
0 siblings, 0 replies; 23+ messages in thread
From: Eric Sunshine @ 2024-05-27 20:12 UTC (permalink / raw)
To: John Paul Adrian Glaubitz
Cc: Junio C Hamano, Carlo Marcelo Arenas Belón, Eric Sunshine,
git
On Mon, May 27, 2024 at 3:49 PM John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> So, could we get this series merged now or is there anything missing?
This series has already migrated from the "seen" branch to the "next"
branch in Junio's tree, and according to his latest "What's Cooking"
report[*], he will be merging it to his "master" branch soon, after
which it should be incorporated into an actual release.
[*]: topic "es/chainlint-ncores-fix " in
https://lore.kernel.org/git/xmqq8qzyifnx.fsf@gitster.g/
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 3/3] chainlint.pl: latch CPU count directly reported by /proc/cpuinfo
2024-05-20 19:01 ` [PATCH 0/3] improve chainlint.pl CPU count computation Eric Sunshine
2024-05-20 19:01 ` [PATCH 1/3] chainlint.pl: make CPU count computation more robust Eric Sunshine
2024-05-20 19:01 ` [PATCH 2/3] chainlint.pl: fix incorrect CPU count on Linux SPARC Eric Sunshine
@ 2024-05-20 19:01 ` Eric Sunshine
2024-05-20 19:17 ` [PATCH 0/3] improve chainlint.pl CPU count computation John Paul Adrian Glaubitz
3 siblings, 0 replies; 23+ messages in thread
From: Eric Sunshine @ 2024-05-20 19:01 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, John Paul Adrian Glaubitz, Eric Sunshine
From: Eric Sunshine <sunshine@sunshineco.com>
On Linux, ncores() computes the number of CPUs by counting the
"processor" or "CPU" lines emitted by /proc/cpuinfo. However, on some
platforms, /proc/cpuinfo does not enumerate the CPUs at all, but
instead merely mentions the total number of CPUs. In such cases, pluck
the CPU count directly from the /proc/cpuinfo line which reports the
number of active CPUs. (In particular, check for "cpus active: NN" and
"ncpus active: NN" since both variants have been seen in the
wild[1,2].)
[1]: https://lore.kernel.org/git/503a99f3511559722a3eeef15d31027dfe617fa1.camel@physik.fu-berlin.de/
[2]: https://lore.kernel.org/git/7acbd5c6c68bd7ba020e2d1cc457a8954fd6edf4.camel@physik.fu-berlin.de/
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
---
t/chainlint.pl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/t/chainlint.pl b/t/chainlint.pl
index d593cb95e7..1bbd985b78 100755
--- a/t/chainlint.pl
+++ b/t/chainlint.pl
@@ -724,6 +724,9 @@ sub ncores {
if (open my $fh, '<', '/proc/cpuinfo') {
my $cpuinfo = do { local $/; <$fh> };
close($fh);
+ if ($cpuinfo =~ /^n?cpus active\s*:\s*(\d+)/m) {
+ return $1 if $1 > 0;
+ }
my @matches = ($cpuinfo =~ /^(processor|CPU)[\s\d]*:/mg);
return @matches ? scalar(@matches) : 1;
}
--
2.45.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 0/3] improve chainlint.pl CPU count computation
2024-05-20 19:01 ` [PATCH 0/3] improve chainlint.pl CPU count computation Eric Sunshine
` (2 preceding siblings ...)
2024-05-20 19:01 ` [PATCH 3/3] chainlint.pl: latch CPU count directly reported by /proc/cpuinfo Eric Sunshine
@ 2024-05-20 19:17 ` John Paul Adrian Glaubitz
2024-05-20 19:19 ` Eric Sunshine
3 siblings, 1 reply; 23+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-20 19:17 UTC (permalink / raw)
To: Eric Sunshine, git; +Cc: Junio C Hamano, Eric Sunshine
On Mon, 2024-05-20 at 15:01 -0400, Eric Sunshine wrote:
> From: Eric Sunshine <sunshine@sunshineco.com>
>
> This series replaces a patch[1] sent by John Paul Adrian Glaubitz to fix
> chainlint.pl CPU count computation on Linux SPARC.
>
> Unlike its predecessor, this series also fixes an underlying problem in
> which ncores() could return 0 which would result in chainlint.pl not
> processing any of its input test scripts. Patch [3/3] also fixes CPU
> count detection on Alpha[2].
>
> Patch [2/3] of this series is more or less Adrian's original patch[1] so
> it retains his authorship, though I simplified the regular-expression
> and tweaked the commit message.
>
> [1]: https://lore.kernel.org/git/20240520111109.99882-1-glaubitz@physik.fu-berlin.de/
> [2]: https://lore.kernel.org/git/503a99f3511559722a3eeef15d31027dfe617fa1.camel@physik.fu-berlin.de/
>
> Eric Sunshine (2):
> chainlint.pl: make CPU count computation more robust
> chainlint.pl: latch CPU count directly reported by /proc/cpuinfo
>
> John Paul Adrian Glaubitz (1):
> chainlint.pl: fix incorrect CPU count on Linux SPARC
>
> t/chainlint.pl | 20 +++++++++++++++++---
> 1 file changed, 17 insertions(+), 3 deletions(-)
>
Works as expected on my Linux SPARC machine running Debian unstable.
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 0/3] improve chainlint.pl CPU count computation
2024-05-20 19:17 ` [PATCH 0/3] improve chainlint.pl CPU count computation John Paul Adrian Glaubitz
@ 2024-05-20 19:19 ` Eric Sunshine
2024-05-20 19:23 ` John Paul Adrian Glaubitz
0 siblings, 1 reply; 23+ messages in thread
From: Eric Sunshine @ 2024-05-20 19:19 UTC (permalink / raw)
To: John Paul Adrian Glaubitz; +Cc: Eric Sunshine, git, Junio C Hamano
On Mon, May 20, 2024 at 3:17 PM John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> On Mon, 2024-05-20 at 15:01 -0400, Eric Sunshine wrote:
> > From: Eric Sunshine <sunshine@sunshineco.com>
> > This series replaces a patch[1] sent by John Paul Adrian Glaubitz to fix
> > chainlint.pl CPU count computation on Linux SPARC.
> >
> > Unlike its predecessor, this series also fixes an underlying problem in
> > which ncores() could return 0 which would result in chainlint.pl not
> > processing any of its input test scripts. Patch [3/3] also fixes CPU
> > count detection on Alpha[2].
>
> Works as expected on my Linux SPARC machine running Debian unstable.
>
> Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thanks for testing. Were you able to check whether it fixes CPU count
detection on Alpha, as well?
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 0/3] improve chainlint.pl CPU count computation
2024-05-20 19:19 ` Eric Sunshine
@ 2024-05-20 19:23 ` John Paul Adrian Glaubitz
2024-05-21 14:28 ` John Paul Adrian Glaubitz
0 siblings, 1 reply; 23+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-20 19:23 UTC (permalink / raw)
To: Eric Sunshine
Cc: Eric Sunshine, git, Junio C Hamano, Michael Cree, Matt Turner
On Mon, 2024-05-20 at 15:19 -0400, Eric Sunshine wrote:
> On Mon, May 20, 2024 at 3:17 PM John Paul Adrian Glaubitz
> <glaubitz@physik.fu-berlin.de> wrote:
> > On Mon, 2024-05-20 at 15:01 -0400, Eric Sunshine wrote:
> > > From: Eric Sunshine <sunshine@sunshineco.com>
> > > This series replaces a patch[1] sent by John Paul Adrian Glaubitz to fix
> > > chainlint.pl CPU count computation on Linux SPARC.
> > >
> > > Unlike its predecessor, this series also fixes an underlying problem in
> > > which ncores() could return 0 which would result in chainlint.pl not
> > > processing any of its input test scripts. Patch [3/3] also fixes CPU
> > > count detection on Alpha[2].
> >
> > Works as expected on my Linux SPARC machine running Debian unstable.
> >
> > Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
>
> Thanks for testing. Were you able to check whether it fixes CPU count
> detection on Alpha, as well?
I can test on Alpha, but that will take a little longer as I don't have
my setup ready. Will try to report back by tomorrow.
Let me CC Michael Cree and Matt Turner who both own fast Alpha machines
and might report back faster.
@Michael, Matt: Could you test this patch series against the current git
development tree? It should fix the testsuite on Alpha.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 0/3] improve chainlint.pl CPU count computation
2024-05-20 19:23 ` John Paul Adrian Glaubitz
@ 2024-05-21 14:28 ` John Paul Adrian Glaubitz
2024-05-21 16:18 ` Eric Sunshine
0 siblings, 1 reply; 23+ messages in thread
From: John Paul Adrian Glaubitz @ 2024-05-21 14:28 UTC (permalink / raw)
To: Eric Sunshine
Cc: Eric Sunshine, git, Junio C Hamano, Michael Cree, Matt Turner
Hi Eric,
On Mon, 2024-05-20 at 21:23 +0200, John Paul Adrian Glaubitz wrote:
> On Mon, 2024-05-20 at 15:19 -0400, Eric Sunshine wrote:
> > Thanks for testing. Were you able to check whether it fixes CPU count
> > detection on Alpha, as well?
>
> I can test on Alpha, but that will take a little longer as I don't have
> my setup ready. Will try to report back by tomorrow.
I have tested it now on single-core Alpha and it works as expected, so I
think it's safe to land the patches.
I currently cannot test on SMP as I need to build a custom kernel for
that first which disables a problematic kernel option.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 0/3] improve chainlint.pl CPU count computation
2024-05-21 14:28 ` John Paul Adrian Glaubitz
@ 2024-05-21 16:18 ` Eric Sunshine
0 siblings, 0 replies; 23+ messages in thread
From: Eric Sunshine @ 2024-05-21 16:18 UTC (permalink / raw)
To: John Paul Adrian Glaubitz
Cc: Eric Sunshine, git, Junio C Hamano, Michael Cree, Matt Turner
On Tue, May 21, 2024 at 10:28 AM John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
> On Mon, 2024-05-20 at 21:23 +0200, John Paul Adrian Glaubitz wrote:
> > On Mon, 2024-05-20 at 15:19 -0400, Eric Sunshine wrote:
> > > Thanks for testing. Were you able to check whether it fixes CPU count
> > > detection on Alpha, as well?
> >
> > I can test on Alpha, but that will take a little longer as I don't have
> > my setup ready. Will try to report back by tomorrow.
>
> I have tested it now on single-core Alpha and it works as expected, so I
> think it's safe to land the patches.
Thank you for testing.
^ permalink raw reply [flat|nested] 23+ messages in thread