Closed GoogleCodeExporter closed 9 years ago
My vote is for the VmArguments class (or maybe VmSpec?) to have a specific
field for every property that we have identified as being significant in
distinguishing JVMs. Two reasons:
1) It will make sure that we do the right thing for -Xmx2g vs -Xmx2048m
2) It will force us into making sure that every property that we identify as
being "important" in differentiating VMs is present and being compared
correctly.
Original comment by gak@google.com
on 8 May 2012 at 9:33
I believe the design described above makes what you describe unnecessary.
The defaults in .caliper/config will include something like "memory=-Xmx2500m".
If the user wants to override that, they have to use the same key ("memory"):
"memory=-Xmx5g". If they do this in a @VmParam, "memory" has to be the field
name; if at the command line it's -Jmemory=, etc.
If this seems screwy, at least give it the benefit of the doubt until we can
discuss it more fully. How to solve this was one of our most vexing problems
for years, and I believe Jesse and I sunk *dozens* of hours into trying to find
the simplest solution possible, and this is where we ended up.
Original comment by kevinb@google.com
on 8 May 2012 at 9:58
Greg has a completely different approach for this problem that we *think* will
work and I think is going to be brilliant if it does.
Basically, we stop worrying about overload resolution of vm args, just relying
on the fact that (apparently) "last wins" in the JDK we tested. Then for
reporting results, we ignore all those text flags and actually *detect* the
settings that were in effect for the VM -- which is a way better approach for
all kinds of reasons.
This should dispense with the need to give groups of options a user-chosen
logical name, since whatever VM facility Greg found to dump out the settings
already has a decent name for everything!
Original comment by kevinb@google.com
on 23 May 2012 at 10:43
We have some pretty great support for VM arguments now. I'm quite happy with
it.
Original comment by gak@google.com
on 1 Nov 2012 at 9:06
Original issue reported on code.google.com by
kevinb@google.com
on 8 May 2012 at 9:28