Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks. I noticed if I issue the dd command again with the same arguments,it wont get the cached number that's returned by free command increased despite the execution of sync command. Is this because the page cache hit? Commented Jul 12, 2017 at 3:55
  • Yes. Caches are not dropped until there is not enough free memory for other demands. Commented Jul 12, 2017 at 10:47
  • Thanks John. An extra question.Under any circumstance the hugepage will be employed as page cache? For instance, in system running a Oracle database. Commented Jul 13, 2017 at 10:13
  • Huge pages cannot be used as as page cache or a few other uses, no. Which means tuning for databases involves sizing pages correctly. This is a broad topic and really a different question, I recommend reading a tuning guide for that database. Commented Jul 13, 2017 at 13:15
  • Thanks John. I just realized that the hugepage is much bigger than page in disk. Besides. Hugepage is pined in main memory. So it wont have anything to do with page cache. Commented Jul 13, 2017 at 13:35