Open smira opened 1 year ago
There was some work done recently to optimize memory usage, but there's still some room for improvement here
One pending potential change: https://github.com/gopacket/gopacket/pull/24
Things got better with merged in fixes, but still a lot of room for improvement:
text
section size (code, read-only, shared between Talos processes)gopclntab
section size (used for stacktraces, read-only, shared between Talos processes)dashboard
doesn't show the real size of the process, as it doesn't account for text
/gopclntab
shared across processesreadelf -a -W _out/machined
provides an overview of section sizes and mapping into memorygsv
wraps bloaty
to show size per module/package (code & data)dropping gopacket
library from machined
reduces observed RSS down ~20 MiB
From a worker node:
apid
is 80MiB,dashboard
is 94MiB andinit
is 128 MiB