That sounds like a horrendously bad idea. While one process
is busy freeing all the non dirty pages, other processes can
allocate those pages, leaving you with no memory to free up
the dirty pages!
How exactly are you planning to prevent that problem?
Also, writing out all the dirty pages at once seems like it
could hurt latency quite badly, especially on large systems.
--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.
-