2011-03-02 08:38:24

by Liu Yuan

[permalink] [raw]
Subject: [RFC PATCH 1/5] x86/Kconfig: Add Page Cache Accounting entry

From: Liu Yuan <[email protected]>

Signed-off-by: Liu Yuan <[email protected]>
---
arch/x86/Kconfig.debug | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index 615e188..f29e32d 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -304,4 +304,13 @@ config DEBUG_STRICT_USER_COPY_CHECKS

If unsure, or if you run an older (pre 4.4) gcc, say N.

+config PAGE_CACHE_ACCT
+ bool "Page cache accounting"
+ ---help---
+ Enabling this options to account for page cache hit/missed number of
+ times. This would allow user space applications get better knowledge
+ of underlying page cache system by reading virtual file. The statitics
+ per partition are collected.
+
+ If unsure, say N.
endmenu
--
1.7.0.4


2011-03-02 16:24:20

by Randy Dunlap

[permalink] [raw]
Subject: Re: [RFC PATCH 1/5] x86/Kconfig: Add Page Cache Accounting entry

On Wed, 2 Mar 2011 16:38:06 +0800 Liu Yuan wrote:

> From: Liu Yuan <[email protected]>
>
> Signed-off-by: Liu Yuan <[email protected]>
> ---
> arch/x86/Kconfig.debug | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
> index 615e188..f29e32d 100644
> --- a/arch/x86/Kconfig.debug
> +++ b/arch/x86/Kconfig.debug
> @@ -304,4 +304,13 @@ config DEBUG_STRICT_USER_COPY_CHECKS
>
> If unsure, or if you run an older (pre 4.4) gcc, say N.
>
> +config PAGE_CACHE_ACCT
> + bool "Page cache accounting"
> + ---help---
> + Enabling this options to account for page cache hit/missed number of
> + times. This would allow user space applications get better knowledge
> + of underlying page cache system by reading virtual file. The statitics
> + per partition are collected.
> +
> + If unsure, say N.
> endmenu
> --

rewrite:

Enable this option to provide for page cache hit/miss counters.
This allows userspace applications to obtain better knowledge of the
underlying page cache subsystem by reading a virtual file.
Statistics are collect per partition.

questions:
what virtual file?
what kind of partition?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***