Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xsnap): performance monitoring / metering #3023

Merged
merged 8 commits into from
May 4, 2021
Merged

Conversation

dckc
Copy link
Member

@dckc dckc commented May 4, 2021

This is the successful parts of the experiments from #3012 .

depends on agoric-labs/moddable#5

cc @warner

@dckc dckc requested review from kriskowal and michaelfig May 4, 2021 01:47
@dckc
Copy link
Member Author

dckc commented May 4, 2021

note this depends on agoric-labs/moddable#5

Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes just to scale seconds to milliseconds. All else is nits.

packages/xsnap/src/xsnap.c Outdated Show resolved Hide resolved
packages/xsnap/src/xsnap.c Show resolved Hide resolved
packages/xsnap/src/xsnap.c Show resolved Hide resolved
packages/xsnap/src/xsnap.c Outdated Show resolved Hide resolved
@dckc dckc mentioned this pull request May 4, 2021
1 task
@dckc dckc added this to the Testnet: Staking Dynamics milestone May 4, 2021
@kriskowal kriskowal assigned dckc and unassigned kriskowal May 4, 2021
@kriskowal kriskowal force-pushed the 3012-perf-xsnap branch 2 times, most recently from d8e68e1 to d2cfc45 Compare May 4, 2021 18:54
@kriskowal kriskowal enabled auto-merge May 4, 2021 18:55
@dckc dckc force-pushed the 3012-perf-xsnap branch from d2cfc45 to cb2827d Compare May 4, 2021 19:41
dckc added 8 commits May 4, 2021 13:15
Note the change of URL to agoric-labs

 - garbageCollectionCount
 - add/remove for map, set
 - maxBucketSize
flamegraph/perf/zoe.xnap/1814.66/1815.66 shows a lot of time
spent in gc (fxRunID / fxNewChunk / fxMarkValue). This is likely
a result of earlier tweaks to heap parameters (11795de).

We observe that vats usually use around 30MB RSS, so let's start with
that size heap (even though RSS is probably not all XS heap). If we
need more, grow a substantial amount (4MB) at a time.
The allocationLimit was previously set to 10 times the amount of
memory that the vats use on start-up.

Until things like kernel GC are more in place, let's expand to 2GB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants