This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 177
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also protip, if you paste a CSV into Excel, and then do the whole "Text to Columns" thing, you can copy paste that table into Github and it will autoformat as a table:
Not sure if this works with GSuite |
seldridge
approved these changes
May 28, 2020
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.
Looks good.
Minor comments throughout.
This provides a common Python interfaces for monitoring resource usage of subprocesses Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
@seldridge I have incorporated your feedback and rebased on master. I also added another command-line argument |
seldridge
approved these changes
Jun 10, 2020
This was referenced Jun 10, 2020
mergify
bot
added
the
Backported
This PR has been backported to marked stable branch
label
Jun 10, 2020
jackkoenig
added a commit
that referenced
this pull request
Jun 24, 2020
* Refactor benchmark_code_compile.py to have job running utility This provides a common Python interfaces for monitoring resource usage of subprocesses Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 038faf9) * Add find_heap_bound.py script for finding minimum heap size Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit f7ae514) # Conflicts: # .travis.yml * Fixup for 1.3.x Co-authored-by: Jack Koenig <koenig@sifive.com>
mergify bot
added a commit
that referenced
this pull request
Oct 13, 2020
* Refactor benchmark_code_compile.py to have job running utility This provides a common Python interfaces for monitoring resource usage of subprocesses Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 038faf9) * Add find_heap_bound.py script for finding minimum heap size Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit f7ae514) # Conflicts: # .travis.yml * Fix conflicts Co-authored-by: Jack Koenig <koenig@sifive.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
API Addition (no impact on existing code)
Backported
This PR has been backported to marked stable branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactors
benchmark/scripts/benchmark_cold_compile.py
a little bit and adds an additional script for measuring information about FIRRTL runs:benchmark/scripts/find_heap_bound.py
The basic idea is that you provide a starting heap size (passed via
-Xmx
), a minimum step size, and JVM arguments and the script will do a binary search to find the minimum allowable heap size. There are sensible defaults for starting heap size and minimum step.Note that this isn't specific to FIRRTL, you can use this for any java program. The only java specific aspect is that it's using
-Xmx
.Use
Help text
Example
This is super useful for examining the tradeoff between heap size, runtime (wall clock) and user time which shows how much extra GC pressure there is.
Future work
It might be nice to search for heap sizes based on different optimization criteria (the current one being "works"). In particular, I think a target
user time
or perhaps ratio ofuser time / wall clock time
would help find better bounds than just "does it work".Contributor Checklist
Type of Improvement
API Impact
None
Backend Code Generation Impact
None
Desired Merge Strategy
Release Notes
Add script for measuring heap allocation vs. performance and memory use
Reviewer Checklist (only modified by reviewer)
Please Merge
?