---
name: "balance_dirty_pages_ratelimited_nr"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/balance_dirty_pages_ratelimited_nr"
---

# balance\_dirty\_pages\_ratelimited\_nr(9)

balance dirty memory state

## NAME

balance\_dirty\_pages\_ratelimited\_nr - balance dirty memory state

## SYNOPSIS

**void balance\_dirty\_pages\_ratelimited\_nr(struct address\_space \*** *mapping***, unsigned long** *nr\_pages\_dirtied***);**

## ARGUMENTS

*mapping*

address\_space which was dirtied

*nr\_pages\_dirtied*

number of pages which the caller has just dirtied

## DESCRIPTION

Processes which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed.

On really big machines, get\_writeback\_state is expensive, so try to avoid calling it too often (ratelimiting). But once we're over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit\_pages) each.

## COPYRIGHT
