Igalia / snabb

Snabb Switch: Fast open source packet processing
Apache License 2.0
47 stars 5 forks source link

MemoryGauge app: log memory in use for workers in SHM and RRD #1222

Closed eugeneia closed 4 years ago

eugeneia commented 4 years ago

The result is that lwaftr instances have RRDs like apps/memory_monitor/kbytes_in_use.rrd which you can plot with rrdtool graph to get graphs like the following:

mem_gauge

wingo commented 4 years ago

Looks great, thanks. Two questions: one, do you think this makes sense as an app? To me it's more like a timer, like the ingress drop monitor, or the ptree manager stuff. WDYT? Would be a small change but if you feel it's better as an app I'm happy to hear that argument. Second, do you have a use example? :-) Really cool hack, looks quite useful!

eugeneia commented 4 years ago

Looks great, thanks. Two questions: one, do you think this makes sense as an app? To me it's more like a timer, like the ingress drop monitor, or the ptree manager stuff. WDYT? Would be a small change but if you feel it's better as an app I'm happy to hear that argument. Second, do you have a use example? :-) Really cool hack, looks quite useful!

Doesn’t need to be an app, and I agree its somewhat counter intuitive. The reason it is an app are for convenience:

wingo commented 4 years ago

Thanks!