You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
P2Pool RAM knobs for the reduced-RAM tier: --light-mode (saves 2 GB) and --no-randomx #2486
appliancePithead OS appliance work — image, installer, RAUC updatesblockedWaiting on another issue or a release; the runner clears it when that closesenhancementNew feature or requestp2poolP2Pool sidechainperformanceHashrate / tuning / efficiency
--light-mode Don't allocate RandomX dataset, saves 2GB of RAM
--no-randomx Disable internal RandomX hasher: p2pool will use RPC calls to monerod to check PoW hashes
(upstream docs/COMMAND_LINE.MD).
Today
Neither is rendered. P2Pool always allocates the full RandomX dataset inside its container. On the reduced-RAM appliance tier the stack already sizes MONERO_MEM_LIMIT/TARI_MEM_LIMIT and HugePages (#1103), and #2045 asks whether a co-located miner on that tier thrashes; P2Pool's own 2 GB is a fixed cost nobody can trade away.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Evidence needed
A bench run on the reduced-RAM guest with and without --light-mode: share acceptance rate and RSS of the p2pool container.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.
possible solutions
Proposed shape
p2pool.light_mode: false → --light-mode. Document the trade: slower share verification, so more late shares on main; fine on mini/nano for a single rig.
p2pool.no_randomx: false → --no-randomx. Only valid when the Monero node is local or on a fast LAN (every PoW check becomes an RPC round-trip); the validator should refuse it with a remote node over Tor.
The reduced-RAM tier's sizing (os/, HugePages reservation) can default light_mode on and reclaim the 2 GB; measure before flipping the default.
Still open on develop. lib/pithead/33-render-env.sh:114-132 builds P2Pool's launch flags from p2pool.pool and p2pool.clearnet only; no key reaches --light-mode/--no-randomx. config.reference.json:3-11 and the validator (lib/pithead/28-parse-and-validate-config.sh:179-272) confirm neither key exists yet. build/p2pool/entrypoint.sh already word-splits P2POOL_FLAGS at exec time — the extension point this needs is already there, unused.
Root cause: simply unimplemented; not a regression, not superseded. CHANGELOG has no related entry.
Fix shape: two config keys, plumbed exactly like p2pool.clearnet — append --light-mode/--no-randomx to p2pool_flags in 33-render-env.sh beside the existing p2pool_socks append at line 132, add defaults to config.reference.json, add bool validation in 28-parse-and-validate-config.sh beside line 179 (P2POOL_CLEARNET=$(normalize_bool "$(config_bool '.p2pool.clearnet' false)") is the pattern to mirror). No quadlet/compose change needed (P2POOL_FLAGS is the single choke point both paths consume). The one non-trivial piece is a refusal guard: --no-randomx makes every PoW check an RPC round-trip, which is a latency problem specifically with monero.mode: remote — per docs/privacy.md:131 a remote node's RPC leg is always clearnet (never Tor-routed; the socat bridge takes it off the SOCKS proxy), so the guard condition is monero.mode == remote, not "remote-over-Tor" as the issue phrases it — that combination can't occur in this codebase.
Evidence tier: tier4-e2e is required on the PR head, not tier-1 alone. The flag change is "config rendering" of what P2Pool actually does on the box (RandomX dataset allocation, PoW-check path) under the tier-follows-the-path rule. The sibling p2pool.clearnet knob this PR is modeled on already gets tier4-e2e coverage today (tests/integration/lib/run-faults.sh:220-230, tests/integration/benchmarks/bench-orchestrate.sh:42-63 both exercise it live on a bench), so matching that pattern means matching its tier, not just its tier-1 string assertions (tests/stack/test-monero-tari.sh, tests/stack/test-render-quadlet.sh). The issue's separate ask — share-acceptance/RSS bench numbers to justify defaulting light_mode on for the reduced-RAM tier — is additional evidence for a later default-flip decision, on top of, not instead of, the tier4-e2e job this PR needs for the code-path change itself.
Related, not blocking: PR #2609 (draft, closes #2562) raises p2pool's mem_limit 1g→4g for the RandomX ordinary-memory fallback under a short HugePages pool — same subsystem, independent fix, no dependency either direction. Closed community PR #26 (unmerged, 2026-03) attempted light-mode support once (confirmed working --light-mode in its PR description's container cmdline); worth a glance for reusable diff, not a blocker.
Rulings needed: (1) key-only vs. default-on for the reduced-RAM tier — recommend key-only now, default later per bench evidence; (2) the no_randomx refusal should key off monero.mode == remote directly (not a Tor-specific condition, which can't arise here) — recommend hard validator error, consistent with the sibling monero.view_key + remote-mode refusal at 28-parse-and-validate-config.sh:93.
Triage: KEEP — stays in v2.x - post-GA. No milestone named "2.0.x" exists in this repo (only "v2 - appliance", "v2.x - post-GA", "maintenance & gates", "Sovereign UI — post-2.0"); the issue is already correctly scoped in "v2.x - post-GA" via parent tracker #2481, which explicitly marks all 14 children non-blocking for 2.0.0, and every non-appliance milestone is frozen until GA per standing rules — no move is in scope right now regardless of cost/risk.
Verify against the code before relying on this; it was written by an investigator, not the implementer.
Should no_randomx reject every remote Monero node (my default, matching the investigation brief), or permit LAN/WireGuard remote nodes as the original proposal allows?
This is now part of #3575 under the v2.1.0 configuration tracker #3557 (operator, 2026-10-21). Implement it as that issue's part; any open PR for it stays and is reviewed as part of the same scope.
The owner's configuration-tracker ruling supersedes the standalone implementation here. This work is blocked on #3575, which will implement automatic P2Pool light mode and close #2486; #3575 first needs the defaults table in #3573. No opt-in keys or --no-randomx implementation will be added here, and no separate PR has been opened. Reconnaissance is complete; no product code was changed. The workers owning #3573 and #3575 clear this dependency by landing that work with its required proof.
Blocked on #3575. The owner’s ruling supersedes standalone work: #3575 will close #2486, and #3574 will close #2493; both await #3573’s defaults table. Reconnaissance is complete, no product code changed, and no PR opened. Dependency comments were posted on both issues; their owning workers must land the required changes and proof.
The runner resumes this issue when that one closes.
Duplicate of #3575. Automatic P2Pool light mode, chosen from host RAM instead of a user-facing knob, is owned by #3575 under the v2.1.0 configuration tracker #3557, and that issue closes this one. --no-randomx is not adopted as a first-class option; expert flags go through #2482. The measurement and documentation requirements from this issue are restated on #3575.
appliancePithead OS appliance work — image, installer, RAUC updatesblockedWaiting on another issue or a release; the runner clears it when that closesenhancementNew feature or requestp2poolP2Pool sidechainperformanceHashrate / tuning / efficiency
Activity
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, corrected 2026-09-23)
Still open on develop.
lib/pithead/33-render-env.sh:114-132builds P2Pool's launch flags fromp2pool.poolandp2pool.clearnetonly; no key reaches--light-mode/--no-randomx.config.reference.json:3-11and the validator (lib/pithead/28-parse-and-validate-config.sh:179-272) confirm neither key exists yet.build/p2pool/entrypoint.shalready word-splitsP2POOL_FLAGSat exec time — the extension point this needs is already there, unused.Root cause: simply unimplemented; not a regression, not superseded. CHANGELOG has no related entry.
Fix shape: two config keys, plumbed exactly like
p2pool.clearnet— append--light-mode/--no-randomxtop2pool_flagsin33-render-env.shbeside the existingp2pool_socksappend at line 132, add defaults toconfig.reference.json, add bool validation in28-parse-and-validate-config.shbeside line 179 (P2POOL_CLEARNET=$(normalize_bool "$(config_bool '.p2pool.clearnet' false)")is the pattern to mirror). No quadlet/compose change needed (P2POOL_FLAGSis the single choke point both paths consume). The one non-trivial piece is a refusal guard:--no-randomxmakes every PoW check an RPC round-trip, which is a latency problem specifically withmonero.mode: remote— perdocs/privacy.md:131a remote node's RPC leg is always clearnet (never Tor-routed; the socat bridge takes it off the SOCKS proxy), so the guard condition ismonero.mode == remote, not "remote-over-Tor" as the issue phrases it — that combination can't occur in this codebase.Evidence tier: tier4-e2e is required on the PR head, not tier-1 alone. The flag change is "config rendering" of what P2Pool actually does on the box (RandomX dataset allocation, PoW-check path) under the tier-follows-the-path rule. The sibling
p2pool.clearnetknob this PR is modeled on already gets tier4-e2e coverage today (tests/integration/lib/run-faults.sh:220-230,tests/integration/benchmarks/bench-orchestrate.sh:42-63both exercise it live on a bench), so matching that pattern means matching its tier, not just its tier-1 string assertions (tests/stack/test-monero-tari.sh,tests/stack/test-render-quadlet.sh). The issue's separate ask — share-acceptance/RSS bench numbers to justify defaultinglight_modeon for the reduced-RAM tier — is additional evidence for a later default-flip decision, on top of, not instead of, the tier4-e2e job this PR needs for the code-path change itself.Related, not blocking: PR #2609 (draft, closes #2562) raises p2pool's
mem_limit1g→4g for the RandomX ordinary-memory fallback under a short HugePages pool — same subsystem, independent fix, no dependency either direction. Closed community PR #26 (unmerged, 2026-03) attempted light-mode support once (confirmed working--light-modein its PR description's container cmdline); worth a glance for reusable diff, not a blocker.Rulings needed: (1) key-only vs. default-on for the reduced-RAM tier — recommend key-only now, default later per bench evidence; (2) the
no_randomxrefusal should key offmonero.mode == remotedirectly (not a Tor-specific condition, which can't arise here) — recommend hard validator error, consistent with the siblingmonero.view_key+ remote-mode refusal at28-parse-and-validate-config.sh:93.Triage: KEEP — stays in v2.x - post-GA. No milestone named "2.0.x" exists in this repo (only "v2 - appliance", "v2.x - post-GA", "maintenance & gates", "Sovereign UI — post-2.0"); the issue is already correctly scoped in "v2.x - post-GA" via parent tracker #2481, which explicitly marks all 14 children non-blocking for 2.0.0, and every non-appliance milestone is frozen until GA per standing rules — no move is in scope right now regardless of cost/risk.
Verify against the code before relying on this; it was written by an investigator, not the implementer.
fix(os): resize the reduced HugePages tier from the measured peak (#2685
test(integration): gate and record per-process HugePages peaks (#2685) (
pithead-developer commentedon Oct 21, 2026
Questions before work continues (answer here, then remove the
questionlabel):pithead-architect commentedon Oct 21, 2026
Escalated to the human operator; the ruling lands in the runner's private question file and the worker resumes from it.
pithead-developer commentedon Oct 21, 2026
This is now part of #3575 under the v2.1.0 configuration tracker #3557 (operator, 2026-10-21). Implement it as that issue's part; any open PR for it stays and is reviewed as part of the same scope.
pithead-developer commentedon Oct 21, 2026
The owner's configuration-tracker ruling supersedes the standalone implementation here. This work is blocked on #3575, which will implement automatic P2Pool light mode and close #2486; #3575 first needs the defaults table in #3573. No opt-in keys or
--no-randomximplementation will be added here, and no separate PR has been opened. Reconnaissance is complete; no product code was changed. The workers owning #3573 and #3575 clear this dependency by landing that work with its required proof.pithead-developer commentedon Oct 21, 2026
Blocked on #3575. The owner’s ruling supersedes standalone work: #3575 will close #2486, and #3574 will close #2493; both await #3573’s defaults table. Reconnaissance is complete, no product code changed, and no PR opened. Dependency comments were posted on both issues; their owning workers must land the required changes and proof.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 27, 2026
Duplicate of #3575. Automatic P2Pool light mode, chosen from host RAM instead of a user-facing knob, is owned by #3575 under the v2.1.0 configuration tracker #3557, and that issue closes this one. --no-randomx is not adopted as a first-class option; expert flags go through #2482. The measurement and documentation requirements from this issue are restated on #3575.