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

sstable, sharedcache: reduce test memory usage #2858

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

RaduBerinde
Copy link
Member

Fixes #2849.

sstable: reduce test memory usage

Reduce memory usage of TestGetBytes which allocates a 2GB slice. We
don't actually do anything with the data so we can allocate a small
slice.

sharedcache: reduce random test sizes

Reduce the maximum sharding block size to 4MB from 10MB (we always use
1MB in production) and reduce the maximum number of shards from 64 to
32. This reduces the memory footprint of the test significantly.

Reduce memory usage of TestGetBytes which allocates a 2GB slice. We
don't actually do anything with the data so we can allocate a small
slice.
Reduce the maximum sharding block size to 4MB from 10MB (we always use
1MB in production) and reduce the maximum number of shards from 64 to
32. This reduces the memory footprint of the test significantly.
@RaduBerinde RaduBerinde requested review from a team and sumeerbhola August 28, 2023 21:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RaduBerinde)

@RaduBerinde
Copy link
Member Author

TFTR!

@RaduBerinde RaduBerinde merged commit 74d4bb6 into cockroachdb:master Aug 29, 2023
10 checks passed
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.

Windows CI out-of-memory
3 participants