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

How to check memory usage of on demand module loading #2

Open
alokprasad opened this issue Apr 30, 2020 · 1 comment
Open

How to check memory usage of on demand module loading #2

alokprasad opened this issue Apr 30, 2020 · 1 comment

Comments

@alokprasad
Copy link

I am trying to load the module while system is up and then starting memstrack ,
but dont see any stats collected by it.
i have tried both kmalloc and get_free_pages , but none is captured.

./memstrack --report module_summary,module_top,proc_slab_static --notui -o /memory-debug

will be good to have a feature just to capture memory usage of a particular module

@ryncsn
Copy link
Owner

ryncsn commented Apr 30, 2020

I am trying to load the module while system is up and then starting memstrack ,

You have to start memstrack before load the module, else the memory allocation events won't be catched by memstrack.

but dont see any stats collected by it.
i have tried both kmalloc and get_free_pages , but none is captured.

Currently, memstrack only track mm_page_alloc, so only real used memory is calculated.
So for kmalloc, if it didn't alloc enough memory to trigger a page allocation it won't be tracked.

./memstrack --report module_summary,module_top,proc_slab_static --notui -o /memory-debug

will be good to have a feature just to capture memory usage of a particular module

Good suggestion, I'll work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants