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

tidb_plan_cache_invalidation_on_fresh_stats causing unstable tpc-c performance #43928

Open
dbsid opened this issue May 17, 2023 · 0 comments
Open
Assignees
Labels
affects-7.5 may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@dbsid
Copy link
Contributor

dbsid commented May 17, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

run tpc-c 1k warehouse workload

go-tpc tpcc --host lb.release-perftest-amd64-tpcc-stability-7d-tps-1740648-1-909 -P4000 --warehouses 1000 run -D tpcc -T 200 --time 168h0m0s --ignore-error

2. What did you expect to see? (Required)

3. What did you see instead (Required)

unstable tpc-c performance and there are 306 plans for below query.
image

image

SELECT
  count (DISTINCT (`s_i_id`)) `stock_count`
FROM
  `order_line`,
  `stock`
WHERE
  `ol_w_id` = ?
  AND `ol_d_id` = ?
  AND `ol_o_id` < ?
  AND `ol_o_id` >= ? - ?
  AND `s_w_id` = ?
  AND `s_i_id` = `ol_i_id`
  AND `s_quantity` < ?

4. What is your TiDB version? (Required)

Release Version: v7.2.0-alpha
Edition: Community
Git Commit Hash: 6dd84b6fef5482b0d9d5e2a9c66241e89b824369
Git Branch: heads/refs/tags/v7.2.0-alpha
UTC Build Time: 2023-05-17 02:44:24
GoVersion: go1.20.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv |
@dbsid dbsid added the type/bug The issue is confirmed as a bug. label May 17, 2023
@jebter jebter added the sig/planner SIG: Planner label May 18, 2023
@ti-chi-bot ti-chi-bot bot added may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 labels May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants