Suspend 4096MiB machines, or let us have 2 CPU 2048MiB perf machines

I’m running bursts of long tasks on Chrome and Chrome takes 20 seconds to start. I’d like to keep Chrome running and suspend the machine on idle time so it’s already preloaded when I need it.

Performance-1x preset is too small because it only has one CPU (chrome is hungry), and performance-2x I can’t suspend because it has over 2048MiB memory.

What I’d like is:

  • 2 perf CPUs
  • 2048MiB memory

But I can’t set it:

fly machine update \
  -a my-app \
  --vm-cpu-kind performance \
  --vm-cpus 2 \
  --vm-memory 2048 \
  <machine-id>

Error: memory size for config is too low

Anything I can do here?

Hi there,

4GB machines can be suspended.

Just keep in mind that suspend is “hibernate to disk”, so it takes a while to write the memory snapshot to disk (and then restore it). I suggest benchmarking to ensure you do get faster startups that way vs. a 20-second cold start.

Also, it’s likely Chrome takes so long to start because you’re installing it in the rootfs. If possible, try provisioning a volume and installing Chrome there; volumes have better IO performance and might result in faster cold-boot-plus-chrome-load times.

  • Daniel
1 Like

I should’ve tried, was just reading from here :slight_smile:

Oh nice, I’ll try that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.