Open orecham opened 1 month ago
@orecham dou have a sample for how the output shall look like?
also, to help me kick off, this will be an aggregation of the data found under /tmp/iceoryx2/.../iox2_node.details
for each running node/service? or is there other sources to look for for getting this data?
@zmostafa This one might be a little bit challenging, but if you are willing to dive into the internals a little bit, it should be OK 😄 .
I am not extremely familiar with that corner of the code base, but at a high level, I think something like the following would be required (needs to be verified):
ShmAllocator
trait to track usage in addition to their capacity
DynamicStorage
trait to retrieve this usage and capacity via the used ShmAllocator
ServiceState
and NodeState
structs to retrieve the usage and capacity of the underlying DynamicStorage
used for their data
Then in the CLI:
iox2 memory show —services
)iox2 memory show —nodes
)iox2 memory show —total
)iox2 memory show
)iox2 memory watch
) to monitor this live could be coolIf you have different ideas feel free to take some creative liberties. Also, you don‘t need to do everything at once, could start with e.g. only showing memory used by services.
@elfenpiff @elBoberido Could you provide some additional pointers / point out any oversights.
@orecham I'm also not yet that familiar with that part and we need to wait for input from @elfenpiff
cc @zmostafa
Brief feature description
Make it possible to fetch statistics related to memory usage of an
iox2
system from the CLIDetailed information
Nice to haves:
iox2
system (how many storages? what size are they and how much is in use?)