mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: 内核追踪 <kerneltrack@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Question about pdflush's two ratio?
Date: Sat, 8 Mar 2008 09:53:07 +0800	[thread overview]
Message-ID: <4a3acf9f0803071753x19043628t2ffda8ce6e946e18@mail.gmail.com> (raw)

Hi, buddy, In these days, I'm watching about how the pdflush kernel
thread implemented. But we I saw there are two "*_ratio", I was
puzzled about these.

My kernel version is 2.6.9 and I found get_dirty_limits() in
page-writeback.c in KERNEL_SOURCE/mm.

After read the source and annotation about the function , I got that idea about
1. *dirty_ratio* is just for work with the number in system page
cache. It means if the (dirty pages number in system)/(total number
pages) is above the
    ratio , then we start pdflush.
2. *background_ratio* is just for every process. It means if there
were a single_process write pages and (its dirty pages) / (total
number pages in system)
    is above th ratio, then we also start pdflush.

This is my interpetation. But does it correct?

 Thx.
Jiancong

                 reply	other threads:[~2008-03-08  1:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a3acf9f0803071753x19043628t2ffda8ce6e946e18@mail.gmail.com \
    --to=kerneltrack@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®