login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
20
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in /proc/vmstat
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Wu Fengguang
Subject:
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in /proc/vmstat
Date: Friday, August 20, 2010 - 3:12 am
On Fri, Aug 20, 2010 at 05:31:29PM +0800, Michael Rubin wrote:
quoted text
> The kernel already exposes the user desired thresholds in /proc/sys/vm > with dirty_background_ratio and background_ratio. But the kernel may > alter the number requested without giving the user any indication that > is the case. > > Knowing the actual ratios the kernel is honoring can help app developers > understand how their buffered IO will be sent to the disk. > > $ grep threshold /proc/vmstat > nr_dirty_threshold 409111 > nr_dirty_background_threshold 818223 > > Signed-off-by: Michael Rubin <mrubin@google.com> > --- > include/linux/mmzone.h | 3 +++ > mm/vmstat.c | 5 +++++ > 2 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index fe4e6dd..c2243d0 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -106,6 +106,9 @@ enum zone_stat_item { > NR_SHMEM, /* shmem pages (included tmpfs/GEM pages) */ > NR_FILE_PAGES_DIRTIED, /* number of times pages get dirtied */ > NR_PAGES_ENTERED_WRITEBACK, /* number of times pages enter writeback */ > + NR_DIRTY_THRESHOLD, /* writeback threshold */ > + NR_DIRTY_BG_THRESHOLD, /* bg writeback threshold */
This may cost cacheline. Thanks, Fengguang --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/4] writeback: kernel visibility
, Michael Rubin
, (Fri Aug 20, 2:31 am)
[PATCH 3/4] writeback: nr_dirtied and nr_entered_writeback ...
, Michael Rubin
, (Fri Aug 20, 2:31 am)
[PATCH 4/4] writeback: Reporting dirty thresholds in /proc ...
, Michael Rubin
, (Fri Aug 20, 2:31 am)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, KOSAKI Motohiro
, (Fri Aug 20, 3:05 am)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, KOSAKI Motohiro
, (Fri Aug 20, 3:06 am)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Wu Fengguang
, (Fri Aug 20, 3:08 am)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Wu Fengguang
, (Fri Aug 20, 3:12 am)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Michael Rubin
, (Fri Aug 20, 4:51 pm)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Wu Fengguang
, (Fri Aug 20, 5:48 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Wu Fengguang
, (Fri Aug 20, 10:48 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, KOSAKI Motohiro
, (Sun Aug 22, 3:27 am)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Michael Rubin
, (Mon Aug 23, 10:45 am)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Michael Rubin
, (Mon Aug 23, 10:52 am)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, KOSAKI Motohiro
, (Mon Aug 23, 6:20 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Michael Rubin
, (Mon Aug 23, 6:41 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Wu Fengguang
, (Mon Aug 23, 7:01 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Wu Fengguang
, (Mon Aug 23, 7:11 pm)
Re: [PATCH 4/4] writeback: Reporting dirty thresholds in / ...
, Michael Rubin
, (Mon Aug 23, 7:42 pm)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Michael Rubin
, (Mon Aug 23, 8:02 pm)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_entered_write ...
, Wu Fengguang
, (Mon Aug 23, 8:25 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [GIT PULL] time.c - respin
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
Rafael J. Wysocki
[Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Guido Tschakert
Re: what exactly is enc0?
Darrin Chandler
Re: strange output on openbsd C code
Colocation donated by:
Syndicate