Dirty Page Writeback

When does the OS typically write dirty pages (modified memory-mapped file pages) back to disk?