Quote:
Originally Posted by seaquesttr
Most of the cached data is buffer_head type.
|
No it isn't - don't confuse slab usage (which is minute in the grand scheme of things) with page cache.
Despite the common use of the term "cache", each is caching something totally different. And of course there are hardware caches as well - (multiple) in the CPU as well as things like disk controllers. The term is used everywhere - describing function, not the specific storage usage.
As for your slabtop output, that by default sorts by object count - hit the "c" key whilst in slabtop to sort by usage. Note the sizes are basically irrelevant. And not included in the "cached" number from things like "free" anyway.
There have been some fixes for slab/slub allocators since that kernel level, but you really don't have a problem as the posters above indicated.