Vendor GetTotalMemoryWithoutLogging from github.com/cockroachdb/cockroach
Is there any chance we can get https://github.com/cockroachdb/cockroach/blob/7fe21a3b907aa148fcccc8ba62b9ac4db1ada50f/pkg/server/status/recorder.go#L644-L683 (and all child functions) vendored into this repo? Right now we have to copy over the code because importing github.com/cockroachdb/cockroach into our project isn't feasible. It would be great to have the same code that detects the memory usage available in this library since the testserver uses that value.
It seems like the real ask here is for us to make the cgroups library go-gettable as its own module, yeah?
Sure, that works too!
Any updates on this? Thanks!
Friendly bump on this, thanks!