add post about allocation rate of the rpython gc#162
Merged
Conversation
mattip
reviewed
Jun 15, 2025
| print(mem / (t2 - t1), 'GB/s') | ||
| ``` | ||
|
|
||
| Then we need to add some RPython schaffolding: |
Member
There was a problem hiding this comment.
Suggested change
| Then we need to add some RPython schaffolding: | |
| Then we need to add some RPython scaffolding: |
| 9.684149 s | ||
| 14.901161 GB | ||
| 1.538717 GB/s | ||
| ``` |
Member
There was a problem hiding this comment.
Maybe a word or two here about how the mark-and-sweep GC is much faster than the Boehm one?
| 0.005999000 seconds sys | ||
| ``` | ||
|
|
||
| This is pretty cool, we can run this loop with an IPC of >5. Every allocation |
|
|
||
| ## How often does the GC run? | ||
|
|
||
| The RPython GC queries the L2 cache size to determine the size of the nursery. We can find out what it is like this: |
Member
There was a problem hiding this comment.
Suggested change
| The RPython GC queries the L2 cache size to determine the size of the nursery. We can find out what it is like this: | |
| The RPython GC queries the L2 cache size to determine the size of the nursery. We can find out what it is by printing some PYPYLOG gc information to stdout: |
Suggested change
| The RPython GC queries the L2 cache size to determine the size of the nursery. We can find out what it is like this: | |
| The RPython GC queries the L2 cache size to determine the size of the nursery. We can find out what it is by turning on PYPYLOG, selecting the proper parameters, and printing to `stdout` via `:-` : |
|
|
||
| ``` | ||
| Loop 1 (run;/home/cfbolz/projects/gitpypy/allocatealot.py:6-9~#24 FOR_ITER) has address 0x7ced473ffa0b to 0x7ced473ffbb0 (bootstrap 0x7ced473ff980) | ||
| ``` |
Member
There was a problem hiding this comment.
How does the code block show up in the rendered post? I think it might be nicer to break it into two lines with a '\' continuation marker
Member
Author
|
thanks @mattip! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.