Swap usage data is now available in the app metrics dashboard

We’ve added a new panel in the metrics page of the apps dashboard to show swap usage. How an app utilizes memory can be tricky to reason about, especially so with swap. We hope that with this added panel, it’ll be easier to see 1. if swap has been enabled on your app and 2. how swap is being used in your app.

What’s swap

Swap is the virtual space on a disk used when physical RAM is full, and is an incredibly useful method to prevent an OOM. You’ve likely heard us recommend it ALOT in the forums as a way to mitigate OOM issues on apps. It’s a really neat trick to optimizing memory without having to scale up your VM unless you really have to (which is probably still the better option in many instances).

What does it do?

With this new metric, you can now see how and if swap is being used in your apps. Additionally, we’ve added a handy dandy tooltip so you can configure swap on your own apps if you haven’t already done so and wish to. :sparkles:

3 Likes

Nice. Reports swap usage in OOM emails, too?

Also, we need IO stats, for the ephemeral disk, next; to complete the sysmon set.

Or, delay OOMs.

Also, as swap starts filling up, the CPU utilisation due to kswapd / madvise (page faults) starts trending towards 100%, while the (infamous) load-avg starts shooting over 1 per vCPU. Wouldn’t recommend swap for prod apps unless you know what you’re doing.

2 Likes

Also, we need IO stats, for the ephemeral disk, next; to complete the sysmon set.

Oh good idea! Yeah we can definitely work to add that in :smiley:

Reports swap usage in OOM emails, too?

Ah yes, good point, it could be handy to show this too

1 Like