-
Notifications
You must be signed in to change notification settings - Fork 349
Add memory usage scan possibility #3389
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
Conversation
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: SW review as per "RFC" step process in https://thesofproject.github.io/latest/contribute/process/abiprocess.html#sof-abi-changes
Looks like a welcome change, but some comments on the naming and general question whether tihs exposes too much specific implementation information.
7abc2f0 to
6df7310
Compare
|
SOFCI TEST EDIT:
|
|
Jenkins CML CI passing now. |
b53f045 to
655595f
Compare
Such a function may be used to monitor memory leaks and system utilization. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
Function name should correspond IPC name. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
kv2019i
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussion on the kernel PR is continuing, but it's around the userspace<>kernel interface. It would seem we have no open concerns on the IPC interface change itself. Thus with my ABI hat on, +1 for the change.
plbossart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good at the firmware level, for the kernel I have concerns that we need to prevent pm_runtime from kicking in, otherwise during tests we'll lose all the information. It's more a usability concern than with retrieving information from firmware.
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this a Kconfig menu entry with a flag in the manifest so kernel knows whether feature is built in.
|
Added Kconfig option and flag in |
|
Seeing a build error |
|
@ktrzcinx can you check UT on CI. |
This feature will be needed to monitor memory utilization and memory leaks. It may be usable also in realese builds, so removed conditional ipc_glb_test_message compilation. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This feature is not needed to get functional firmware, so may be disabled for platforms with low memory space, like baytrail and cherrytrail. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This component is conditionally compiled, so passing such an information to driver, allows to check possible scanning failure reason. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
|
Reduced number of reserved bytes, as suggested here: thesofproject/linux#2459 (comment) |
|
CI is known issue boot issues on ICL. Could be a script race where we may need to cleanup SHM or message Qs. |
Such an mechanism may be used to monitor memory utilization and memory leaks.
Possible memory leaks tracking was main motivation for this mechanism. To scan them, memory usage should be scanned before topology creation, then some functional test should be done, topology deletion and iterate whole process a few times - when memory usage grows, then some memory leak is present. To efficiently track memory leaks, memory utilization must be scanned at strictly defined moments in FW life-cycle, it's why scan should be done on host request instead regular memory utilization printing (eq. in trace system).
kernel part: thesofproject/linux#2459