When checking pg_stat_bgwriter in postgres, I am noticing that there is a difference between buffers_alloc and the sum of buffers_backend, buffers_clean and buffers_checkpoint.
What could be assumed as a "good" percentage of total buffers written = (buffers_backend + buffers_clean + buffers_checkpoint) over buffers_alloc ?
Which settings should be tuned to optimise this percentage?