Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-13 Thread Thomas Stuefe
On Thu, 9 Nov 2023 07:03:34 GMT, David Holmes wrote: >>> > As this adds a JCmd, doesn't this need both a CSR and a manual entry? >>> >>> * CSR: not sure; there are precedences for going with CSR and without >>> CSR. Since we get awfully close to JDK22 freeze, I would prefer for a CSR >>> n

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v12]

2023-11-12 Thread David Holmes
On Fri, 10 Nov 2023 07:38:24 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v12]

2023-11-10 Thread Thomas Stuefe
On Fri, 10 Nov 2023 09:45:11 GMT, Johan Sjölen wrote: > Hi Thomas, > > Thanks for your hard work on this! LGTM. Thank you for your Review, Johan! - PR Comment: https://git.openjdk.org/jdk/pull/16301#issuecomment-1805489022

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v12]

2023-11-10 Thread Johan Sjölen
On Fri, 10 Nov 2023 07:38:24 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-09 Thread Thomas Stuefe
On Thu, 9 Nov 2023 07:03:34 GMT, David Holmes wrote: >>> > As this adds a JCmd, doesn't this need both a CSR and a manual entry? >>> >>> * CSR: not sure; there are precedences for going with CSR and without >>> CSR. Since we get awfully close to JDK22 freeze, I would prefer for a CSR >>> n

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v12]

2023-11-09 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-09 Thread Thomas Stuefe
On Thu, 9 Nov 2023 07:27:37 GMT, David Holmes wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix another windows error > > src/hotspot/share/services/diagnosticCommand.cpp line 1193: > >> 1191: output()->pri

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v11]

2023-11-09 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v10]

2023-11-09 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread David Holmes
On Thu, 9 Nov 2023 07:26:46 GMT, David Holmes wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix another windows error > > src/hotspot/share/services/diagnosticCommand.cpp line 1159: > >> 1157: } >> 1158: >> 11

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread David Holmes
On Thu, 2 Nov 2023 17:42:29 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools ou

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread Thomas Stuefe
On Thu, 9 Nov 2023 07:03:34 GMT, David Holmes wrote: > > > > As this adds a JCmd, doesn't this need both a CSR and a manual entry? > > > > > > > > > ``` > > > * CSR: not sure; there are precedences for going with CSR and without > > > CSR. Since we get awfully close to JDK22 freeze, I would pr

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread David Holmes
On Wed, 8 Nov 2023 11:40:35 GMT, Johan Sjölen wrote: > > > As this adds a JCmd, doesn't this need both a CSR and a manual entry? > > > > > > ``` > > * CSR: not sure; there are precedences for going with CSR and without CSR. > > Since we get awfully close to JDK22 freeze, I would prefer for a C

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread Johan Sjölen
On Wed, 8 Nov 2023 11:24:43 GMT, Thomas Stuefe wrote: > > As this adds a JCmd, doesn't this need both a CSR and a manual entry? > > * CSR: not sure; there are precedences for going with CSR and without > CSR. Since we get awfully close to JDK22 freeze, I would prefer for a CSR not > to be

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread Thomas Stuefe
On Wed, 8 Nov 2023 09:51:12 GMT, Johan Sjölen wrote: > As this adds a JCmd, doesn't this need both a CSR and a manual entry? - CSR: not sure; there are precedences for going with CSR and without CSR. Since we get awfully close to JDK22 freeze, I would prefer for a CSR not to be needed. Also wo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-08 Thread Johan Sjölen
On Thu, 2 Nov 2023 17:42:29 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools ou

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-07 Thread Johan Sjölen
On Wed, 1 Nov 2023 10:04:30 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > OK, went through the cache. Will continue later. > @jdksjolen anything more needed from my side

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-03 Thread Thomas Stuefe
On Wed, 1 Nov 2023 10:04:30 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > OK, went through the cache. Will continue later. @jdksjolen anything more needed from my side?

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-03 Thread Thomas Stuefe
On Thu, 2 Nov 2023 17:42:29 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools ou

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-02 Thread Thomas Stuefe
On Thu, 2 Nov 2023 15:25:14 GMT, Brice Dutheil wrote: >> This prints protection and offset. The former is interesting for obvious >> reasons (e.g. lets you tell apart stack guard regions from stack, or >> uncommitted from committed regions) and the latter interesting for some >> corner cases (

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v9]

2023-11-02 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-02 Thread Brice Dutheil
On Wed, 1 Nov 2023 06:26:57 GMT, Thomas Stuefe wrote: >> src/hotspot/os/linux/memMapPrinter_linux.cpp line 59: >> >>> 57: void print_OS_specific_details(outputStream* st) const override { >>> 58: st->print("%s %s ", _info.prot, _info.offset); >>> 59: } >> >> If that's all this is doing,

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v8]

2023-11-02 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v7]

2023-11-02 Thread Thomas Stuefe
On Wed, 1 Nov 2023 15:38:46 GMT, Gerard Ziemski wrote: > LGTM > > Thank you for doing this! Thank you for reviewing, @gerard-ziemski ! - PR Comment: https://git.openjdk.org/jdk/pull/16301#issuecomment-1790665200

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-02 Thread Thomas Stuefe
On Wed, 1 Nov 2023 10:04:04 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 119: > >> 117: assert(_capacity > _count, "San

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-02 Thread Thomas Stuefe
On Wed, 1 Nov 2023 10:46:21 GMT, Johan Sjölen wrote: >> Yes, it resulted in a significant performance gain for a test run where I >> interleaved non-committed and committed memory of the same tag. I may have >> been mistaken, of course. > > It being committed or reserved shouldn't matter (I ass

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v7]

2023-11-01 Thread Gerard Ziemski
On Wed, 1 Nov 2023 10:09:40 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools ou

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 10:13:03 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 105: >> >>> 103: _ranges[_count - 1].to = to; >>> 104: return true; >>> 105: } >> >> I'm pretty sure that the virtual memory tracker already gives you the >> minimal set of reg

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Wed, 1 Nov 2023 10:01:43 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 105: > >> 103: _ranges[_count - 1].to = to;

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 09:52:24 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 99: >> >>> 97: } >>> 98: >>> 99: bool add(const void* from, const void* to, MEMFLAGS f) { >> >> Please mention that we're `add`ing in sorted order, that is that `forall R >> \in _ranges:

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v7]

2023-11-01 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Wed, 1 Nov 2023 09:48:39 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 99: > >> 97: } >> 98: >> 99: bool add(const v

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 07:32:23 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 79: >> >>> 77: const void* const min = MAX2(from1, from2); >>> 78: const void* const max = MIN2(to1, to2); >>> 79: return min < max; >> >> I had to rewrite it as: >> >> `return MAX2(from

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 09:37:22 GMT, Johan Sjölen wrote: >> I'll do the former, that is clearer I agree, but leave the latter out (I >> assume with the macro you mean add it to globalDefenitions.hpp). >> >> I fear that a lot of bikeshedding and general discussions would start, and >> to do it prop

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Tue, 31 Oct 2023 17:08:15 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 79: > >> 77: const void* const min = MAX2(fro

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-31 Thread Thomas Stuefe
On Tue, 31 Oct 2023 16:58:19 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 59: > >> 57: void print_OS_specific_deta

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-31 Thread Thomas Stuefe
On Mon, 30 Oct 2023 17:31:30 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 83: > >> 81: char line[linesize]; >> 8

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-31 Thread Thomas Stuefe
On Mon, 30 Oct 2023 10:29:56 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 80: > >> 78: FILE* f = os::fopen("/proc/se

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-31 Thread Gerard Ziemski
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-30 Thread Johan Sjölen
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-10-28 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-28 Thread Thomas Stuefe
On Fri, 27 Oct 2023 09:42:19 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v5]

2023-10-28 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-28 Thread Thomas Stuefe
On Fri, 27 Oct 2023 20:20:49 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix spelling >> - timeout fuse >> - Feedback Johan > > src/hotspot/share/services/memMapPrinter.cpp line 95: >

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-28 Thread Thomas Stuefe
On Fri, 27 Oct 2023 15:42:06 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix spelling >> - timeout fuse >> - Feedback Johan > > Taking a look... @gerard-ziemski @jdksjolen I take thi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-28 Thread Thomas Stuefe
On Fri, 27 Oct 2023 22:01:07 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Fix spelling >> - timeout fuse >> - Feedback Johan > > src/hotspot/share/services/memMapPrinter.cpp line 294:

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 17:29:23 GMT, Gerard Ziemski wrote: > I really like this feature, hope the other platforms can be done as well. (I > am also really looking forward to seeing how you did the "malloc" version) > > I think we should set the user expectations correctly and say somewhere that >

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-27 Thread Gerard Ziemski
On Fri, 27 Oct 2023 12:28:51 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-27 Thread Gerard Ziemski
On Fri, 27 Oct 2023 12:28:51 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-27 Thread Gerard Ziemski
On Fri, 27 Oct 2023 12:28:51 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 09:42:19 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v4]

2023-10-27 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 09:41:28 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 09:37:19 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 09:32:35 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Thomas Stuefe
On Fri, 27 Oct 2023 08:38:02 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge master and solve merge conflicts >> - small fixes >> - start from VM op; show mo

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-27 Thread Johan Sjölen
On Thu, 26 Oct 2023 15:02:53 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v3]

2023-10-26 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v2]

2023-10-26 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map wi

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-23 Thread Zhengyu Gu
On Mon, 23 Oct 2023 05:25:50 GMT, Thomas Stuefe wrote: > > The hs_err file includes a dump of the maps file. It seems these > > annotations would be useful there also. > > I thought about this too. The problem is the printing may take long since it > is O^2 (iterate through VMAs, for each one

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-23 Thread Chris Plummer
On Mon, 23 Oct 2023 01:39:16 GMT, Chris Plummer wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-22 Thread Thomas Stuefe
On Mon, 23 Oct 2023 01:39:16 GMT, Chris Plummer wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools o

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-22 Thread Thomas Stuefe
On Mon, 23 Oct 2023 01:39:16 GMT, Chris Plummer wrote: > The hs_err file includes a dump of the maps file. It seems these annotations > would be useful there also. I thought about this too. The problem is the printing may take long since it is O^2 (iterate through VMAs, for each one iterate NM

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-22 Thread Chris Plummer
On Sun, 22 Oct 2023 10:08:49 GMT, Thomas Stuefe wrote: > Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out th

RFR: JDK-8318636: Add jcmd to print annotated process memory map

2023-10-22 Thread Thomas Stuefe
Analysts and supporters often use /proc/xx/maps to make sense of the memory footprint of a process. Interpreting the memory map correctly can help when used as a complement to other tools (e.g. NMT). There even exist tools out there that attempt to annotate the process memory map with JVM infor