Why doesn't swap work?

[[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?

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]].