Re: [PATCH 3/4] writeback: nr_dirtied and nr_cleaned in /proc/vmstat

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wu Fengguang
Date: Saturday, August 28, 2010 - 4:50 pm

On Sat, Aug 28, 2010 at 10:40:26AM +0800, Michael Rubin wrote:

It's silly to have the different names nr_dirtied and pages_cleaned
for the same item.


The output format is quite different from /proc/vmstat.
Do we really need to "Node X", ":" and "times" decorations?

And the "_PAGES" in NR_FILE_PAGES_DIRTIED looks redundant to
the "_page" in node_page_state(). It's a bit long to be a pleasant
name. NR_FILE_DIRTIED/NR_CLEANED looks nicer.


How about the comments /* accumulated number of pages ... */?

Note that NR_CLEANED won't match NR_FILE_DIRTIED in long term because
it also accounts for anon pages, and does not account for dirty pages
that are truncated before they go writeback.

Thanks,
Fengguang
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] writeback: kernel visibility, Michael Rubin, (Fri Aug 27, 7:40 pm)
[PATCH 2/4] mm: account_page_writeback added, Michael Rubin, (Fri Aug 27, 7:40 pm)
Re: [PATCH 3/4] writeback: nr_dirtied and nr_cleaned in /p ..., Wu Fengguang, (Sat Aug 28, 4:50 pm)