Repository navigation
[Destination MS SQL V2] Correct Part Size, No buffered input stream - #55252
Merged
Johnny Schmidt (johnny-schmidt) merged 2 commits intoMar 10, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 7, 2025 17:35
5094065 to
118996b
Compare
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 7, 2025 22:57
118996b to
7e17b16
Compare
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 8, 2025 00:12
7e17b16 to
3f0aac0
Compare
Johnny Schmidt (johnny-schmidt)
requested review from
Jonathan Pearlin (jdpgrailsdev) and
Subodh Chaturvedi (subodh1810)
March 8, 2025 00:13
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 8, 2025 00:17
3f0aac0 to
02a9b82
Compare
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 8, 2025 00:19
156b813 to
02a9b82
Compare
Johnny Schmidt (johnny-schmidt)
marked this pull request as ready for review
March 8, 2025 00:26
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 9, 2025 20:15
02a9b82 to
ffff759
Compare
Subodh Chaturvedi (subodh1810)
approved these changes
Mar 10, 2025
Subodh Chaturvedi (subodh1810)
left a comment
Contributor
There was a problem hiding this comment.
Thanks a lot for helping out on this Johnny!!
Johnny Schmidt (johnny-schmidt)
force-pushed
the
jschmidt/mssql-v2/oom-troubleshoot
branch
from
March 10, 2025 15:22
ffff759 to
82ff7cc
Compare
Johnny Schmidt (johnny-schmidt)
enabled auto-merge (squash)
March 10, 2025 15:22
Johnny Schmidt (johnny-schmidt)
deleted the
jschmidt/mssql-v2/oom-troubleshoot
branch
March 10, 2025 15:35
1 of 5 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
After some testing, only the record batch size change is necessary to avoid an OOM, but removing the buffered input stream wrapper around the part bytes in the azure client greatly improves memory usage and does not seem to cause other issues.
(left is before, right is after)
Perf is about ~2 mb/s. That's due partly to the lack of parallelization on the upload step, and the fact that inserting blocks uploads. Also with more uploaders we can probably double the number of processors. (In practice, this tends to give a slight improvement even at 1 core (why?) but greatly improves the boost you get from adding more cpu.)
This sync has run successfully multiple times with variations of this PR.