From: kosaki <kosaki.motohiro@jp.fujitsu.com>
To: Marcelo Tosatti <marcelo@kvack.org>
Cc: kosaki.motohiro@jp.fujitsu.com, linux-mm@kvack.org,
"Daniel Sp蚣g" <daniel.spang@gmail.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Rik van Riel" <riel@redhat.com>
Subject: Re: [PATCH] mem notifications v2
Date: Mon, 26 Nov 2007 20:18:37 +0900 [thread overview]
Message-ID: <20071126193254.B6AB.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <20071122173741.GA4990@dmt>
Hi, Marcelo
> > Why you use total_swap_pages?
> > Are your intent watching swapon/spwapoff syscall?
> >
> > or, s/total_swapcache_pages/nr_swap_pages/ ?
>
> Oops.
>
> total_anon_pages() is supposed to return the total number of anonymous pages
> (including swapped out ones), so that should be:
>
> #define total_anon_pages() (global_page_state(NR_ANON_PAGES) + \
> (total_swap_pages-nr_swap_pages) - \
> total_swapcache_pages
Thank you for your kindness explain.
I understand it.
result of re-reviewed, I have 2 comment.
1. mem_notify_status turn off in poll is a bit wrong.
beacause "/dev/mem_notify" watched by multi process is common situation.
2. If it is possible, We may add read method.
because script language kind to read rather than poll.
especially, I want hear your opinion by comment 2.
I have no confident.
BTW, Do I have any other contribution things for you?
----
kosaki
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-11-26 11:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-21 19:53 Marcelo Tosatti
2007-11-22 3:07 ` kosaki
2007-11-22 17:37 ` Marcelo Tosatti
2007-11-26 11:18 ` kosaki [this message]
2007-11-22 11:23 ` Daniel Spång
2007-11-22 20:47 ` Rik van Riel
2007-11-23 0:27 ` Daniel Spång
2007-11-23 0:36 ` Rik van Riel
2007-11-23 12:42 ` Daniel Spång
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=20071126193254.B6AB.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=daniel.spang@gmail.com \
--cc=linux-mm@kvack.org \
--cc=marcelo@kvack.org \
--cc=riel@redhat.com \
/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