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

pgcacher还忽略了哪些cache? #15

Open
luminous-git opened this issue Aug 22, 2024 · 2 comments
Open

pgcacher还忽略了哪些cache? #15

luminous-git opened this issue Aug 22, 2024 · 2 comments

Comments

@luminous-git
Copy link

请问buff/cache中显示的值远大于pgcacher中显示的值,这说明了什么?我问了gpt,当一个文件被删除后,buff/cache中依然可能会占用空间,那么这一部分的空间有办法知道是什么吗?

@rfyiamcool
Copy link
Owner

你可以用一些脚本复现这个问题么? 比如用 dd 创建某些文件,然后查看 pgcacher 的结果,再删除前面那些个文件,再看看结果 ?

@cai-fuqiang
Copy link

cai-fuqiang commented Oct 11, 2024

Hello, 我这边发现其忽略了 block_dev 的cache, 但是block_dev file一般比较大,很耗时

我这边补了一段很丑陋的代码:
3c5409b

不过感觉可以增加参数控制统计blockdev的pgcache/filesize占比统计,但是总会将文件名以及文件大小打印出来。 这样可以知道某个进程或者全局层面会有blockdev pgcache,然后选择去看下,要不要继续获取这方面信息

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

3 participants