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

sqlite backend extremely slow on zfs #113

Open
yorickvP opened this issue Feb 17, 2024 · 3 comments
Open

sqlite backend extremely slow on zfs #113

yorickvP opened this issue Feb 17, 2024 · 3 comments

Comments

@yorickvP
Copy link

I was getting extremely slow speeds with the default sqlite backend on zfs, I switched to postgres and got a 24x upload rate speedup. I was also hitting #24 occationally.

Could there be an option to turn off fsync on the sqlite backend? That should speed it up massively.

@Mic92
Copy link
Contributor

Mic92 commented Apr 7, 2024

This is how I work around in atuin: atuinsh/atuin#952 (comment)

@srd424
Copy link

srd424 commented May 2, 2024

I'm seeing pathological slow speeds and timeouts even on ext4 - my underlying storage stack is a bit of a muddle, but shouldn't be anywhere as bad as I'm seeing. I switched to hosting the database on a small ext2 LV and things are a bit better, though not a lot.

I'm beginning to suspect that there's something about attic's access patterns that just interacts really badly with sqlite. I tried switching the database to WAL journalling but that produced a negligible improvement if any. Using eatmydata to neuter fsyncs is the only thing that really helps - that or sticking the database on a tmpfs :)

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

No branches or pull requests

4 participants