-
Notifications
You must be signed in to change notification settings - Fork 763
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
bench: cache performance #8991
Comments
Update: |
Bench all [hits queries](https://github.com/ClickHouse/ClickBench/blob/main/databend/queries.sql).
run.sh
Each query run 3 times[cold(may warm, we don't clean the cache for each query), hot, hot] Bench1: Disable Fuse Meta Cache + Disable Block Cache
Results
Bench2: Enable Fuse Meta Cache + Disable Block Cache
Results
Bench3: Disable Fuse Meta Cache + Enable Block Cache3.1 Local Disk(FS)
Results(sec)
Error skip: #8994 (comment) 3.2 Redis(External Memory)
Results(sec)
Error skip : #8994 (comment) Bench4: Enable Fuse Meta Cache + Enable Block Cache4.1 Moka(Memory)
Results(sec)
4.2 Local Disk(FS)
Results(sec)
Error skip: #8994 (comment) 4.3 Redis(External Memory)
Results(sec)
Error skip : #8994 (comment) |
The new implemetion of data block cache #9772 |
Summary
Purposes
Bench test for #8830.
Binary: https://github.com/datafuselabs/databend/releases/tag/v0.8.129-nightly
Table
All data is stored in object storage.
Schema
https://github.com/ClickHouse/ClickBench/blob/main/databend/create.sql
Load Data
Load time about ~15 Minutes
Test Cases
Disable Fuse Cache,
databend-query.toml
:Disable Data Cache:
Case1: Using local disk as data cache backend
Enable local disk data cache:
SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits
SELECT AVG(UserID) FROM hits
SELECT COUNT(DISTINCT UserID) FROM hits
Case2: Using moka(Memory) as data cache backend
Enable memory data cache:
SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits
SELECT AVG(UserID) FROM hits
SELECT COUNT(DISTINCT UserID) FROM hits
Snowflake (Small)
Disable the query result cache:
Q3:
![image](https://user-images.githubusercontent.com/172204/204225862-6c0c14bf-ac13-4958-8480-dfa3e9dd8709.png)
Q4:
![image](https://user-images.githubusercontent.com/172204/204226291-50f59750-0b6c-4a8a-b847-5f2f1e32f862.png)
Q5:
![image](https://user-images.githubusercontent.com/172204/204226492-6e632feb-0a2d-40e4-9d29-773f8bff684c.png)
Q22:
![image](https://user-images.githubusercontent.com/172204/204226711-6f6bec4b-9345-4e1e-8cec-94d5d164d482.png)
The text was updated successfully, but these errors were encountered: