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

can't find files using most cache by hcache top #40

Closed
rfyiamcool opened this issue Mar 9, 2023 · 2 comments
Closed

can't find files using most cache by hcache top #40

rfyiamcool opened this issue Mar 9, 2023 · 2 comments

Comments

@rfyiamcool
Copy link

hcache top bug

The result of the hcache --top does not have /root/rui/re

[root@clickhouse02 hcache]# du -sh /root/rui/re
445M	/root/rui/re

[root@clickhouse02 hcache]# cat /root/rui/re >/dev/null
[root@clickhouse02 hcache]# ./hcache /root/rui/re
+--------------+----------------+-------------+----------------+-------------+---------+
| Name         | Size           │ Pages       │ Cached Size    │ Cached Pages│ Percent │
|--------------+----------------+-------------+----------------+-------------+---------|
| /root/rui/re | 444.798M       | 113869      | 444.798M       | 113869      | 100.000 |
|--------------+----------------+-------------+----------------+-------------+---------|
│ Sum          │ 444.798M       │ 113869      │ 444.798M       │ 113869      │ 100.000 │
+--------------+----------------+-------------+----------------+-------------+---------+

[root@clickhouse02 hcache]# ./hcache --top 5
+-------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+----------------+-------------+---------+
| Name                                                                                                                                | Size           │ Pages       │ Cached Size    │ Cached Pages│ Percent │
|-------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+----------------+-------------+---------|
| /usr/bin/clickhouse                                                                                                                 | 435.936M       | 111600      | 54.644M        | 13989       | 12.535  |
| /run/log/journal/ef219b153e8049718c374985be33c24e/system@839b2a266700434097a56aba4bfcce81-0000000000000001-0005d9e858986d57.journal | 32.000M        | 8192        | 25.750M        | 6592        | 80.469  |
| /run/log/journal/ef219b153e8049718c374985be33c24e/system@839b2a266700434097a56aba4bfcce81-00000000000068d4-0005dc4caf5c4183.journal | 32.000M        | 8192        | 24.145M        | 6181        | 75.452  |
| /run/log/journal/ef219b153e8049718c374985be33c24e/system@839b2a266700434097a56aba4bfcce81-000000000000c75d-0005deb0fba8437a.journal | 32.000M        | 8192        | 22.277M        | 5703        | 69.617  |
| /run/log/journal/ef219b153e8049718c374985be33c24e/system@839b2a266700434097a56aba4bfcce81-0000000000018b6b-0005e5de04567c2f.journal | 24.000M        | 6144        | 17.414M        | 4458        | 72.559  |
|-------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+----------------+-------------+---------|
│ Sum                                                                                                                                 │ 555.936M       │ 142320      │ 144.230M       │ 36923       │ 25.944  │
+-------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+----------------+-------------+---------+
@cyckax
Copy link

cyckax commented Aug 9, 2023

I meet the same problem..

@rfyiamcool
Copy link
Author

😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants