Can a repeating sequential one statfor each file cause the cache buffer or slab objects to push out old records and / or increase the slab, which causes a noticeable difference in performance, with the exception of disk I / O? For example, the buffer cache or panel for Linux is in a state where they have loaded objects that are mostly active. The "static files" on the disk (say, all of them) will lead to the creation of inode and dentry objects in the cache. Since they are large in number, I think they can evict old records and fill the cache. Once this is done, the old records that were evicted will have to be rebooted from the disk when the corresponding application accesses it.
My question is: does this type of stating, for example, repeated use duon a huge number of files, have a noticeable effect on the system? It depends on the size of the cache, I understand, my main goal is to understand whether a repeated "du" on a huge number of files will effectively affect system performance. Also indicate whether any other indirect effects can be seen.
source
share