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

Caplin: Automatic retirement of state tables to their own snapshot files #12508

Open
wants to merge 99 commits into
base: main
Choose a base branch
from

Conversation

Giulio2002
Copy link
Contributor

No description provided.

// Generate .idx file, which is the slot => offset mapping.
p := &background.Progress{}

// Ugly hack to wait for fsync
Copy link
Collaborator

Choose a reason for hiding this comment

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

.Compress() does wait for fsync to finish. you encountered bug? on mac?

r, _ := stateSn.Get(kv.BlockRoot, 999424)
fmt.Printf("%x\n", r)

if err := stateSn.DumpCaplinState(ctx, stateSn.BlocksAvailable(), to, c.StepSize, salt, dirs, runtime.NumCPU(), log.LvlInfo, log.Root()); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

runtime.NumCPU() -> estimate.CompressSnapshot.Workers()

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.

2 participants