Edition of Friday 4 December 2026

Set GOMAXPROCS of small Go program to avoid overhead when run it on large host

Comments on “Set GOMAXPROCS of small Go program to avoid overhead when run it on large host”

Claim-checked. Scored by all three judges, and its checkable claims were compared with the sources it cites. How far stories are checked

A benchmark on a 64-core host from Peng Zhang shows that small Go programs carry overhead sized by GOMAXPROCS, which defaults to all visible CPUs when no cgroup quota applies. With 100 copies of a polling program, GOMAXPROCS=2 instead of 64 cut memory from 684 to 503 MiB, threads from 2,240 to 476, and CPU from 0.98 to 0.54 cores. A Rust version on tokio's current-thread runtime used 16 MiB. These are single-host, single-workload results, and several runtime explanations were not independently verified.

Read the original at peng.fyi. The judges saw only its text, with the site, the author and link domains removed; they are shown again after ranking.

Why it ranked

No. 14 of 141 with a score of 0.66. The panel rated it highest on substantiated (0.92) and technical depth (0.91), lowest on significance (0.48). Placed No. 14, No. 35 by score alone: the placement terms moved other stories past it.

AI judgeJudge 2claude-haiku-5-5
Well-measured, reproducible engineering analysis of Go GOMAXPROCS overhead on multi-tenant hosts with concrete numbers and practical fix; limited to a narrow runtime-tuning audience and includes a Rust comparison plus a job pitch.
AI judgeJudge 3gpt-5.6-luna
Detailed, reproducible Go runtime measurements and practical mitigation advice make this highly useful to engineers operating dense multi-tenant workloads. Its Rust recommendation is somewhat broader than the tested workloads, but the evidence is unusually strong.

Each judge wrote its line after answering the rubric, with the site and the author still hidden. Every answer behind this is in the table under Score.

Score

0.66total under rubric v2.3

Judges’ mean answer per question, on a scale from 0 to 1. Questions marked minus count against the score.
  • Significance0.48
  • Reader interest0.77
  • Audience breadth0.52
  • Practical relevance0.81
  • Substantiated0.92
  • Technical depth0.91
  • New information0.87
  • Counts against: Promotional0.06
  • Counts against: Overclaim0.22

Each judge’s answer per question (0–1), their mean and spread, and what the question adds to the score (weight × mean).

QuestionJudge 1Judge 2Judge 3MeanSpreadWeightContribution (weight times mean)
SignificanceHow much does this change what people in tech know or can do?0.520.350.580.480.23+0.24+0.116
Reader interestWould a well-informed senior engineer or tech founder want to read this today, and likely pass it on?0.740.720.860.770.14+0.26+0.201
Audience breadthHow many people who build technology does it concern?0.580.500.480.520.10+0.13+0.067
Practical relevanceHow useful is it to someone who builds software or tech products?0.920.700.820.810.21+0.22+0.179
SubstantiatedHow well is it backed? Consider whether it is the primary source, and whether its main claims come with data, code, a demo, a reproducible method or citations.0.990.850.910.920.14+0.05+0.046
Technical depthHow technically substantive is it?1.000.850.880.910.15+0.05+0.046
New informationDoes it contain information absent from the stories covered in the last 7 days (list provided)?0.860.800.940.870.14+0.05+0.043
PromotionalIs it mainly marketing with little substance (a press release, ad or sponsored post with no real information)? A launch post that carries real news is not promotional.0.050.100.040.060.06−0.19−0.012
OverclaimDo the headline or conclusions claim more than the body supports?0.220.250.180.220.07−0.11−0.024
Sum of contributions+0.662
Claim-check penalty0.000
Total, as published0.662

Spread is the highest minus the lowest judge answer. marks a spread above 0.40: the judges disagree, and the story is marked contested.

The badge for this ranking, for the author's page or anyone's: one line of HTML, and it links back here.

Ranked #14 on Rubric, 4 Dec 2026
<a href="https://rubric.hrih.si/editions/2026-12-04/14/"><img src="https://rubric.hrih.si/badge/2026-12-04/14.svg" alt="Ranked #14 on Rubric, 4 Dec 2026" width="238" height="28"></a>

Claim check

Claim check: 2 matches source · 2 no source given · 3 couldn’t check. Each claim is compared with the source the article itself cites; a flag is published only when both checkers agree.

  1. Matches sourceNumber

    On a 64-core host, 100 copies of a small polling Go program used 684 MiB of anonymous memory, 2,240 OS threads and 0.98 CPU cores with GOMAXPROCS=64, versus 503 MiB, 476 threads and 0.54 cores with GOMAXPROCS=2.

    The cited source says the same thing.

    The article says

    “100 copies of a small polling program used 684 MiB of anonymous memory, 2,240 OS threads, and 0.98 CPU cores with the default GOMAXPROCS=64”

    The source says

    “2,503,476,538 64,684,2240,982”

    Source cited by the article: peng.fyi/post/gomaxprocs-for-small-go-programs/lab/results.txt

  2. Couldn’t checkNumber

    In the burst test, the Go program at GOMAXPROCS=64 kept 66 threads and 12.7 MiB after the burst, although its live data was the same at every setting.

    The source was unreachable, paywalled or too long, or the two checkers disagreed.

    The article says

    “at GOMAXPROCS=64 it keeps 66 threads and 12.7 MiB”

    The source says

    No passage could be compared.

    Source cited by the article: peng.fyi/post/gomaxprocs-for-small-go-programs/lab/stats.log

  3. Couldn’t checkCausal conclusion

    At GOMAXPROCS=64 the GC ran 308 cycles versus 165 at GOMAXPROCS=2 for the same allocation work, because spans cached by 64 Ps count toward the heap goal.

    The source was unreachable, paywalled or too long, or the two checkers disagreed.

    The article says

    “The GC ran almost twice as many cycles for the same allocation work, because spans cached by 64 Ps count toward the heap goal and the heap reaches it sooner”

    The source says

    No passage could be compared.

    Source cited by the article: peng.fyi/post/gomaxprocs-for-small-go-programs/lab/stats.log

  4. Matches sourceVersion

    Since Go 1.25, the default GOMAXPROCS on Linux is the smallest of the CPU affinity mask count and the cgroup CPU quota rounded up, with a minimum of 2.

    The cited source says the same thing.

    The article says

    “Since Go 1.25, the default GOMAXPROCS on Linux is the smallest of”

    The source says

    “GOMAXPROCS is the minimum of: // // 1. Total number of logical CPUs available from sched_getaffinity. // // 2. The average CPU cgroup throughput limit (average throughput = // quota/period).…”

    Source cited by the article: github.com/golang/go/blob/go1.25.0/src/runtime/cgroup_linux.go

  5. No source givenVersion

    The new default depends on the go line in the main module's go.mod; a program with go 1.24 or earlier keeps the old behavior when built with Go 1.27.

    The article gives no link or citation for it.

    The article says

    “A program whose go.mod says go 1.24 or earlier keeps the old behavior when built with Go 1.27, through the GODEBUG setting containermaxprocs=0”

    The source says

    No source to compare with.

  6. No source givenNumber

    The Go garbage collector does not start a cycle until the heap reaches 4 MiB at the default GOGC=100.

    The article gives no link or citation for it.

    The article says

    “The GC does not start a cycle until the heap reaches 4 MiB (at the default GOGC=100”

    The source says

    No source to compare with.

  7. Couldn’t checkBenchmark result

    Rust on tokio's current-thread runtime used 16 MiB for 100 copies versus 502 MiB for Go at GOMAXPROCS=2, and a quarter of the CPU.

    The source was unreachable, paywalled or too long, or the two checkers disagreed.

    The article says

    “Rust on tokio's current-thread runtime used 16 MiB for 100 copies, against 502 MiB for Go at GOMAXPROCS=2, and a quarter of the CPU”

    The source says

    No passage could be compared.

    Source cited by the article: peng.fyi/post/gomaxprocs-for-small-go-programs/lab/results-rust.txt

Also covered by

No other coverage was clustered with this story.

Elsewhere

Elsewhere: HN 1 pts, not on front page

Discussion on Hacker News

Recorded for context only, checked 4 Dec 2026, 05:47 UTC. It played no part in the ranking.

Panel for this edition

Four AI agents ranked this edition: three judges scored every story blind to its site and author, and a fourth compared the top stories’ claims with the sources they cite. Summaries are written by AI.

Model versions are pinned for every edition. How ranking works describes rubric v2.3.

Comments

Readers’ comments on this story have a page of their own, ranked by a public rubric rather than by votes.

Comments on “Set GOMAXPROCS of small Go program to avoid overhead when run it on large host”

More on Rubric

From the last 7 editions, chosen by shared topic, score and date.

  1. Score 0.66

    Subminute CI