Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Use bufio and don't sync FS#47

Merged
max-schaefer merged 1 commit intogithub:masterfrom
sauyon:use-bufio
Mar 6, 2020
Merged

Use bufio and don't sync FS#47
max-schaefer merged 1 commit intogithub:masterfrom
sauyon:use-bufio

Conversation

@sauyon
Copy link
Copy Markdown
Contributor

@sauyon sauyon commented Mar 6, 2020

Found via profiling that the vast majority of the time taken during extraction was write syscalls.

This empirically makes things much faster on Kubernetes, n=1:

Before:
1481.40s user 996.60s system 282% cpu 14:36.62 total
After:
606.63s user 12.59s system 338% cpu 3:02.91 total

Was there a reason we were running Sync before? My understanding is that it's not necessary unless we want trap files to be uncorrupted if the system crashes.

I've kicked off an evaluation.

@max-schaefer
Copy link
Copy Markdown
Contributor

the vast majority of the time taken during extraction was write syscalls

🎉

n=1

?

Was there a reason we were running Sync before?

I don't think so.

@sauyon
Copy link
Copy Markdown
Contributor Author

sauyon commented Mar 6, 2020

Dist-compare (internal link) seems clean. It doesn't measure extraction time, right?

n=1

?

Sorry, sample size of 1.

@max-schaefer
Copy link
Copy Markdown
Contributor

It doesn't measure extraction time, right?

Correct. The Go Differences job, on the other hand, does; I'll set off an experiment.

sample size of 1

Thanks for the clarification.

Copy link
Copy Markdown
Contributor

@max-schaefer max-schaefer left a comment

Choose a reason for hiding this comment

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

Irrespective of the outcome of my experiment, this seems like a good thing to try.

@max-schaefer max-schaefer merged commit f875afc into github:master Mar 6, 2020
@max-schaefer
Copy link
Copy Markdown
Contributor

@sauyon, could you add a change note for this? I think it's user-visible enough to warrant one.

@max-schaefer
Copy link
Copy Markdown
Contributor

Change note added in #101.

@sauyon sauyon deleted the use-bufio branch May 13, 2020 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants