Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print allocation statistics in pools and arenas #671

Open
gavv opened this issue Jan 4, 2024 · 3 comments
Open

Print allocation statistics in pools and arenas #671

gavv opened this issue Jan 4, 2024 · 3 comments
Assignees
Labels
algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet waiting reply

Comments

@gavv
Copy link
Member

gavv commented Jan 4, 2024

core::SlabPool and core::HeapArena are two classes through which roc performs most allocations.

It would be convenient to see simple allocation statistics from them in logs:

  • total currently allocated bytes
  • total currently allocated objects
  • average bytes per second during period
  • average objects per second during period

We can compute and print this statistics, say, with period of one minute.

There is a class core::RateLimiter that allows to check if next period expired. We can do this check e.g. after every allocation.

@gavv gavv added algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet labels Jan 4, 2024
@gavv gavv added this to Frontlog in kanban board Jan 4, 2024
@gavv gavv moved this from Frontlog to Help wanted in kanban board Jan 4, 2024
@Napetrou
Copy link

Napetrou commented Jan 5, 2024

Hello, i would love to help, i'm complete beginner in contributing to open source projects but i am familiar with c++, i think i can help, but if i come across any problems i might need some guidance, so may i contact if i have any issues? Thanks in advance and i apologize if this isn't the right way of communicating here.

@gavv
Copy link
Member Author

gavv commented Jan 6, 2024

You're welcome, thanks. Please take a look at this page: https://roc-streaming.org/toolkit/docs/development/contribution_guidelines.html and feel free to ask questions here or in matrix chats.

@gavv
Copy link
Member Author

gavv commented May 14, 2024

@Napetrou Hi, do you still plan to work on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithms Algorithms and data structures easy hacks The solution is expected to be straightforward even if you are new to the project enhancement help wanted An important and awaited task but we have no human resources for it yet waiting reply
Projects
kanban board
Help wanted
Development

No branches or pull requests

2 participants