So, report for week #4 is here… a little late, though
Classes at MScs course are almost over
… last exam is next tuesday, and then I’ll be able to dedicate more time to the program.
But this week I thought I got a lot of progress… the threaded mysqldump is working (with some problems when large tables are selected), and a speedup of 1,9x was measured with a DB of 600MB, in a quad-core machine. COOL!!!
–
PROJECT: Adding parallelism to mysqldump
WEEK 04
First of all, sorry this report is a little late…
KEY ACCOMPLISHMENTS LAST WEEK
* Reworked connect_to_db so that I can create one connection for each thread now.
* Reworked some functions to turn them into thread-safe. This implied eliminating global variables mysql, extended_row and insert_pat, that are now passed as parameters when needed.
* Finished a prototype where one thread is generated by table to be dumped. With a database of 600MB, a speedup of 1,9x was obtained in a quad-core machine. I’m having problems with larger databases. This prototype was also delivered as an assignment of a master course I’m doing.
KEY TASKS THAT STALLED LAST WEEK
* With big databases, the program is crashing, out of memory error:
mysqldump: Out of memory (Needed 1024 bytes)
mysqldump: Couldn’t perform DYNAMIC_STRING operation
I’m working to solve this now.
KEY CONCERNS
* Semester is almost ending… next week is the last one
TASKS IN THE UPCOMING WEEK
* Solve the out-of-memory error
* Refine the prototype to add a command-line parameter to specify the number of threads
* Fix some minor coding standard issues
* Start using BZR to submit patches, and also submit to internals mailing list, to get feedback from the community