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

hcache does not show the files which are open by some process and cached in pagecache #35

Open
meiq4096 opened this issue Dec 3, 2022 · 1 comment

Comments

@meiq4096
Copy link

meiq4096 commented Dec 3, 2022

Hcache can't show the files which are opened by some process and cached in pagecache.

# pcstat /data/nvme0n1/oradata/ORAINTEL/EEE54678E49E7CCAE053086EA8C0B9D1/datafile/o1_mf_bmsqlts_krol4w3h_.dbf
|------------------------------------------------------------------------------------------------------+----------------+------------+-----------+---------|
| Name                                                                                                 | Size           | Pages      | Cached    | Percent |
|------------------------------------------------------------------------------------------------------+----------------+------------+-----------+---------|
| /data/nvme0n1/oradata/ORAINTEL/EEE54678E49E7CCAE053086EA8C0B9D1/datafile/o1_mf_bmsqlts_krol4w3h_.dbf | 53687099392    | 13107202   | 12495372  | 095.332 |
|------------------------------------------------------------------------------------------------------+----------------+------------+-----------+---------|

# hcache -top 100 |grep dbf
(none)

I guess the reason is that it gets the files from /proc/{pid}/maps ,not from /proc/{pid}/fd .

I can't get it.

@asynchronoust
Copy link

i also find this problem. it confused me that the result of hcache does not tell me the season why cache memory is so large.

finally, i found the opend log file use a lot of cache memory. but the hcache does not indicate this.

when i use "hcache xxxfilename", the file is 100% percent cached, the file is opened by process ,but when i hcache -pid, the file does not displayed in the result.

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