porton
June 4, 2026, 11:06am
1
[[vm]]
memory = '512mb'
cpus = 1
memory_mb = 512
swap_size_mb = 512
# free -h
total used free shared buff/cache available
Mem: 458.9M 373.7M 21.1M 6.5M 64.0M 66.4M
Swap: 0 0 0
Why isn’t swap activated?
khuezy
June 4, 2026, 12:51pm
2
You can configure an app for deployment on Fly.io using a fly.toml file. Configuration of builds, environment variables, internet-exposed services, disk mounts, and release commands go here. fly.toml configuration applies for apps managed by Fly...
Notice there’s no parent block
I didn’t know that there ahould be a parent block, what it is, and where it should be. Please, explain.
Hi @porton ,
What Khuezy means is that swap_size_mb should be at the top level of your fly.toml, at the same level as “app=”, for example. It should not be nested under [[vm]].