jasonyang9
2018-11-19 21:40:18 +08:00
赞同 5 楼,没有 swap 是 OK 的。`vmstat`看下也可以。
To reduce costs of accessing persistent storage, most systems use aggressive caching subsystems to keep popular data in memory. Linux, in this regard, is no different than traditional operating systems.
The Linux page cache is unified, keeping pages in memory from three primary sources: memory-mapped files, file data and metadata from devices (usually accessed by directly `read()` and `write()` calls to the file system), and heap and stack pages that comprise each process (sometimes called anonymous memory, because there is no named file underneath of it, but rather swap space). These entities are kept in a page cache hash table, allowing for quick lookup when said data is needed.
blah blah...