-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dumpling: update dumpling document on how to reduce memory usage #5860
Conversation
/translation doing |
/label needs-cherry-pick-4.0 |
@lichunzhu Please involve a technical review~ |
/cc 3pointer overvenus |
@@ -60,10 +60,18 @@ dumpling \ | |||
--filetype sql \ | |||
--threads 32 \ | |||
-o /tmp/test \ | |||
-r 200000 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's too large and may cause TiDB OOM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we suggest TiDB uses 1GB memory, and the default threads is 4, then avg_row_length is
1GB / 4 / 200000 = 1342. It's more than 1KB. In most conditions avg_row_length
is less than this.
@@ -60,10 +60,18 @@ dumpling \ | |||
--filetype sql \ | |||
--threads 32 \ | |||
-o /tmp/test \ | |||
-r 200000 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add -r
to other examples, e.g., ### 导出到 csv 文件
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 0c0706b
/lgtm |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
dumpling-overview.md
Outdated
|
||
> **注意:** | ||
> | ||
> 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-r -F 不能同时生效,也描述下吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在是可以同时生效的
/lgtm |
@TomShawn PTAL, thanks! |
dumpling-overview.md
Outdated
|
||
> **注意:** | ||
> | ||
> 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 | |
> 如果导出的单表大小超过 10 GB,**强烈建议**指定 `-r` 和 `-F` 参数。 |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
/lgtm |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6df2aa6
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #5962 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.0 in PR #5963 |
/translation done |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Update dumpling document on how to reduce memory usage. Make sure users can get this important infomation.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?