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:
1 parent
ec93b5a215
commit
83378138d7
2 files changed
+6
-3
No files matched your search
@@ -442,7 +442,7 @@ export function FlySpritesSettingsScreen({ theme, layout, host }: PluginSurfaceP
|
||||
/>
|
||||
<SettingsInput
|
||||
label="Memory ceiling (MB)"
|
||||
hint="Peak memory the Sprite may grow to when autoscale is on. 0 uses the Fly default (8192 MB). Raise for bursty workloads — e.g. 16384 or 65536 (no published API max; constrained by host capacity)."
|
||||
hint="Peak memory the Sprite may grow to when autoscale is on. 0 = uncapped default (65536 MB). Raise for bursty workloads — e.g. 16384 or 65536 (no published API max; constrained by host capacity)."
|
||||
initialValue={String(draft.memoryLimitMB ?? 0)}
|
||||
placeholder="0"
|
||||
disabled={settings.saving}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user