Get the latest tech news

A 40ms Go garbage collector pause caused by swap


C pause caused by swap I’m writing this so you don’t slap your forehead like I almost did when I decided to run swap in production to absorb memory spikes. I had a cgroup with two processes: one is a Go process that calls io.ReadAll and then proto.Unmarshal, creating a blob and then a graph struct (which is marked as scan by Go’s allocator).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of swap

swap

Related news:

News photo

Swap, ZRAM, Zswap and Hibernate on NixOS

News photo

New Patches Aim To Lower Linux Memory Use For Swap, Slightly Improve Performance

News photo

Shopify competitor Swap raises $100M six months after raising $40M