Preventing Read Cache Access from Linux

AFAIK reads the entire disk on linux, falling into the page cache.

Is there a way to prevent reading (performed by the backup process) in order to enter the page cache?

Imagine:

  • The server is working fine, since most operations do not need to touch the disk, as there is enough memory available.
  • Now the backup process begins and reads a lot. Read bytes fall into memory (cache page), although no one wants to read the same bytes in the next hours.
  • Backup data fills the memory, and more important pages from the cache are deleted.
  • Server performance degrades as more operations need to be touched on the disk because the corresponding pages have been removed from the cache.

My preferred solution:

  • Tell linux that the reads performed by the backup process do not need to be cached in the page.
+4
source share
1 answer

minimize the impact of the application on the Linux file system cache

Use case: backup processes that should not affect the current state of the cache.

  • using dd there is direct input / output for a bysab according to this question
  • dd nocache, info coreutils 'dd invocation'
+2

Source: https://habr.com/ru/post/1525409/


All Articles