1BALANCE_DIRTY_PAGES_(9) Memory Management in Linux BALANCE_DIRTY_PAGES_(9)
2
3
4
6 balance_dirty_pages_ratelimited_nr - balance dirty memory state
7
9 void balance_dirty_pages_ratelimited_nr(struct address_space * mapping,
10 unsigned long nr_pages_dirtied);
11
13 mapping
14 address_space which was dirtied
15
16 nr_pages_dirtied
17 number of pages which the caller has just dirtied
18
20 Processes which are dirtying memory should call in here once for each
21 page which was newly dirtied. The function will periodically check the
22 system's dirty state and will initiate writeback if needed.
23
24 On really big machines, get_writeback_state is expensive, so try to
25 avoid calling it too often (ratelimiting). But once we're over the
26 dirty memory limit we decrease the ratelimiting by a lot, to prevent
27 individual processes from overshooting the limit by (ratelimit_pages)
28 each.
29
31Kernel Hackers Manual 2.6. November 2011 BALANCE_DIRTY_PAGES_(9)