guettli
guettli

Reputation: 27087

Prevent backup reads from getting into linux page cache

AFAIK all disk reads on linux get into the page cache.

Is there a way to prevent reads (done by a backup process) to get in to the page cache?

Imagine:

My preferred solution:

Upvotes: 6

Views: 839

Answers (1)

muhammedabuali
muhammedabuali

Reputation: 611

  • if you re using rsync there is the flag --drop-cache according to this question
  • the nocache utility which

minimize the effect an application has on the Linux file system cache

Use case: backup processes that should not interfere with the present state of the cache.

  • using dd there is direct I/O to bybass cache according to this question
  • the dd also has the option nocache option check the command info coreutils 'dd invocation'for details

Upvotes: 5

Related Questions