-
Notifications
You must be signed in to change notification settings - Fork 410
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
memory_usage_limit is deduced much less then expected #9745
Closed
CalvinNeo opened this issue
Dec 26, 2024
· 4 comments
· Fixed by pingcap/tidb-engine-ext#408 or #9753
Closed
memory_usage_limit is deduced much less then expected #9745
CalvinNeo opened this issue
Dec 26, 2024
· 4 comments
· Fixed by pingcap/tidb-engine-ext#408 or #9753
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
component/storage
report/customer
Customers have encountered this bug.
severity/major
type/bug
The issue is confirmed as a bug.
Comments
This was referenced Jan 7, 2025
12 tasks
JaySon-Huang
added a commit
to CalvinNeo/tiflash
that referenced
this issue
Jan 9, 2025
close pingcap#9745 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Jan 9, 2025
…9776) ref #4982, close #9745 Signed-off-by: CalvinNeo <[email protected]> Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
/report customer |
9 tasks
This was referenced Feb 6, 2025
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 6, 2025
…9841) ref #4982, close #9745 Signed-off-by: Calvin Neo <[email protected]>
CalvinNeo
added a commit
to CalvinNeo/tiflash
that referenced
this issue
Feb 8, 2025
close pingcap#9745 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
12 tasks
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 10, 2025
…9853) ref #4982, close #9745 Signed-off-by: Calvin Neo <[email protected]>
9 tasks
CalvinNeo
added a commit
to CalvinNeo/tiflash
that referenced
this issue
Feb 13, 2025
close pingcap#9745 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
12 tasks
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 14, 2025
…9873) ref #4982, close #9745 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
9 tasks
CalvinNeo
added a commit
to CalvinNeo/tiflash
that referenced
this issue
Feb 17, 2025
close pingcap#9745 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: JaySon <[email protected]>
12 tasks
12 tasks
This was referenced Feb 18, 2025
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 18, 2025
ref #9745, close #9880 Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: Calvin Neo <[email protected]> Co-authored-by: Calvin Neo <[email protected]> Co-authored-by: JaySon-Huang <[email protected]>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 18, 2025
ref #9745, close #9880 Signed-off-by: Calvin Neo <[email protected]> Signed-off-by: JaySon-Huang <[email protected]> Co-authored-by: Calvin Neo <[email protected]> Co-authored-by: JaySon-Huang <[email protected]>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 19, 2025
ref #9745, close #9880 Signed-off-by: JaySon-Huang <[email protected]> Signed-off-by: Calvin Neo <[email protected]> Co-authored-by: JaySon-Huang <[email protected]> Co-authored-by: Calvin Neo <[email protected]>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Feb 24, 2025
ref #9745, close #9880 Signed-off-by: ti-chi-bot <[email protected]> Signed-off-by: Calvin Neo <[email protected]> Co-authored-by: Calvin Neo <[email protected]> Co-authored-by: Calvin Neo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
component/storage
report/customer
Customers have encountered this bug.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
If not set, memory_usage_limit is inferred by block_cache_cap
https://github.com/pingcap/tidb-engine-ext/blob/521fd9dbc55e58646045d88f91c3c35db50b5981/src/config/mod.rs#L3597-L3598
which is actually set by(I mean it's original value is not this, but the following code will adjust and take final effect)
https://github.com/pingcap/tidb-engine-ext/blob/521fd9dbc55e58646045d88f91c3c35db50b5981/src/config/mod.rs#L3795-L3805
and modified by
https://github.com/pingcap/tidb-engine-ext/blob/521fd9dbc55e58646045d88f91c3c35db50b5981/proxy_components/proxy_server/src/config.rs#L405-L408
See pingcap/tidb-engine-ext@2f2900a.
And tiflash proxy limit the memory for CF to a small number.
https://github.com/pingcap/tidb-engine-ext/blob/521fd9dbc55e58646045d88f91c3c35db50b5981/proxy_components/proxy_server/src/config.rs#L123-L134
The logic affects all released versions including LTS 6.1/6.5/7.1/7.5/8.1/8.5
As a result, consider an enough big memory, the limit could be:
So basicly, the memory limit is 0.05 * total available machine memory / 0.45 * 0.75.
Note, even if the raft-engine is used, we still take the raft_db memory size into account.
And because there is a memory high water machanism, the memory usage on proxy will time another 0.1 factor
So as a result,
The text was updated successfully, but these errors were encountered: