Add information regarding memory disclaiming in javacore - #24587
Conversation
|
52f0e53 to
9cdd1e4
Compare
|
FYI: @ymanton |
|
I think this change is good, but I'd like to see it squashed and also reviewed by the JIT team. |
c76e626 to
a62fe53
Compare
mpirvu
left a comment
There was a problem hiding this comment.
LGTM.
A couple of suggestions:
- If all disclaiming is disabled, disk stats are irrelevant and they should not be collected
- Disclaiming is only available on Linux. Should we print anything on all the other platforms?
|
a62fe53 to
296b3c7
Compare
Those omr methods internally open/scan/parse/close pseudo files. I'll let @ymanton comment on their overhead. |
Ok makes sense, will update. |
296b3c7 to
9560e1e
Compare
ymanton
left a comment
There was a problem hiding this comment.
Looks good so far, but it only covers a subset of the possible situations. The disclaimOnFile and disclaimOnSwap flags apply to the disclaimable memory areas that can be backed by a file or the swap, but they don't apply to the SCC, which is implicitly always backed by a file. We need to also get the device that the SCC file is on, and print the stats for that, but only if the device is different from the device we looked up for the other memory areas (otherwise info on the same device will be printed twice).
7ad9260 to
b72e53b
Compare
|
Will paste the new output. |
b72e53b to
98bbf11
Compare
98bbf11 to
ccca7e9
Compare
|
Please fix the language in the commit message. Perhaps in "Added a struct a J9JITConfig" you meant "Added a struct to J9JITConfig"? |
ccca7e9 to
17ec2a1
Compare
|
|
^ is the latest output not sure if there should have been info printed regarding SCC device and disk stats separately. Ran it on x86 linux fyre vm. |
|
In the line perhaps |
Added a struct to J9JITConfig to store information regarding memory disclaiming. The information was collected in J9Options class and printed in java core file. Signed-off-by: Dev Agarwal <dev.agarwal@ibm.com>
17ec2a1 to
28b7a4b
Compare
Added a struct to J9JITConfig to store information regarding memory disclaiming. The information was collected in J9Options class and printed in java core file.
Signed-off-by: Dev Agarwal dev.agarwal@ibm.com