Skip to content

readahead tuning #25

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

Merged
merged 2 commits into from
Jan 22, 2025
Merged

readahead tuning #25

merged 2 commits into from
Jan 22, 2025

Conversation

luke-lombardi
Copy link
Contributor

No description provided.

@luke-lombardi luke-lombardi merged commit b94e48c into master Jan 22, 2025
@luke-lombardi luke-lombardi deleted the ll/readahead-tuning branch January 22, 2025 00:07
Comment on lines +169 to +174
for _, mount := range mounts {
if mount.Mountpoint == mountPoint {
deviceID = fmt.Sprintf("%d:%d", mount.Major, mount.Minor)
break
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use slices.Index here to find the mount index if it exists.

Would look like

mountIdx := slices.IndexFunc(users, func(i *Info) bool {
    return i.Mountpoint == mountpoint
})

if mountIdx == -1 {
    return fmt.Errorf("mount point %s not found", mountPoint)
}

deviceID = ...

nickpetrovic added a commit to beam-cloud/beta9 that referenced this pull request Feb 4, 2025
Blobcache Changes

* Fix contention issues, hotfix for GC by @luke-lombardi in
beam-cloud/blobcache-v2#24
* readahead tuning by @luke-lombardi in
beam-cloud/blobcache-v2#25
* fix: concurrent map iteration and map write panic by @nickpetrovic in
beam-cloud/blobcache-v2#26

Resolve BE-2332
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