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

db_dump is inefficient #694

Closed
romw opened this issue Feb 4, 2015 · 4 comments
Closed

db_dump is inefficient #694

romw opened this issue Feb 4, 2015 · 4 comments

Comments

@romw
Copy link
Member

romw commented Feb 4, 2015

Reported by Nicolas on 10 Dec 38606274 05:20 UTC
Let's compare.

  • Write a potentially big uncompressed XML file (over 2GB for SETI@Home), then use system() to run gzip on it (which reads it '''again''', writes something like 300MB, then deletes the original that took so long to write). Total I/O: 2GB read, 2.3GB write, plus the database reads (which are quite a lot too).
  • Use zlib to write the file in compressed form in the first place. I/O: 300MB write, plus database reads.

Which would you choose?

I'll see if I can modify db_dump myself to use zlib, and post the patch. Otherwise, anyone is free to take the task.

Migrated-From: http://boinc.berkeley.edu/trac/ticket/717

@romw
Copy link
Member Author

romw commented Feb 4, 2015

Commented by Nicolas on 3 Jul 38606279 21:20 UTC
In case it isn't clear: the first is what db_dump currently does :)

@ChristianBeer
Copy link
Member

For reference: the db_purge tool already does 'in place' compression using pipes: sched/db_purge.cpp

@ChristianBeer ChristianBeer self-assigned this May 15, 2017
@Ageless93 Ageless93 added this to Backlog in Server via automation Nov 10, 2017
@denravonska
Copy link
Contributor

I added a proposal for this in #2767. Ideally, it should handle zip the same way but I was unsure if BOINC had an existing libzip dependency.

@AenBleidd
Copy link
Member

Fixed in #2767

Server automation moved this from Backlog to Done Oct 31, 2018
@AenBleidd AenBleidd modified the milestones: Server, Server Release 1.0 Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Server
  
Done
Development

No branches or pull requests

5 participants