hcache icon indicating copy to clipboard operation
hcache copied to clipboard

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

Open meiq4096 opened this issue 2 years ago • 1 comments
trafficstars

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.

meiq4096 avatar Dec 03 '22 04:12 meiq4096

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.

asynchronoust avatar Sep 19 '24 03:09 asynchronoust