fix: raise default Sprite memory ceiling to 64GB (uncapped)

The Fly default ceiling of 8192 MB starved bursty Paseo workloads on Sprites (paseo-agent-2f0f52: 110M page reclaims, exec plane hung). The Sprites API requires a positive limit_mb, so a large ceiling (65536) with autoscale on is the practical uncapped mode. memoryLimitMB=0 now maps to 65536 instead of 8192; updated settings-screen hint accordingly. Both live Sprites already re-policed to {limit_mb: 65536, autoscale: true} via API.
This commit is contained in:
nandi committed 2026-11-20 16:56:05 -08:00
1 parent ec93b5a215
commit 83378138d7
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -275,7 +275,10 @@ export class SpritesManager {
* effective values differ, so repeated `ensureSprite` passes are cheap.
* Sprites have no size presets and no CPU/storage scaling — memory
* policy (limit + autoscale) is the sizing lever. `memoryLimitMB` of 0
* means the Fly default ceiling (8192 MB, matching sprite defaults).
* means the uncapped default ceiling (65536 MB) — the API requires a
* positive limit, so a large ceiling with autoscale on is the practical
* "uncapped" mode. 8192 MB (the Fly default) starved bursty Paseo
* workloads; 64 GB leaves real headroom.
*/
async applyMemoryResourcesPolicy(
sprite: Sprite,
@@ -285,7 +288,7 @@ export class SpritesManager {
const limitMB =
resolved.memoryLimitMB && resolved.memoryLimitMB > 0
? resolved.memoryLimitMB
: 8192;
: 65536;
// Missing key (settings stored before this field existed) means default: on.
const autoscale = resolved.memoryAutoscale !== false;
let current: ResourcesPolicy | null = null;