From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: linux-mm@kvack.org, akpm@osdl.org
Subject: Re: [PATCH] use find_trylock_page in free_swap_and_cache instead of hand coding
Date: Fri, 15 Oct 2004 18:09:27 -0300 [thread overview]
Message-ID: <20041015210927.GE4937@logos.cnet> (raw)
In-Reply-To: <Pine.LNX.4.44.0410152248460.7849-100000@localhost.localdomain>
On Fri, Oct 15, 2004 at 10:54:43PM +0100, Hugh Dickins wrote:
> On Fri, 15 Oct 2004, Marcelo Tosatti wrote:
> > On Fri, Oct 15, 2004 at 02:20:08PM +0100, Hugh Dickins wrote:
> > > But please extend your patch to mm/swap_state.c, where you can get rid
> > > of the two radix_tree_lookups by reverting to find_get_page - thanks!
> >
> > Here it is. Can you please review an Acked-by?
>
> Looks good, thanks, yes, help yourself to one of these:
> Acked-by: Hugh Dickins <hugh@veritas.com>
OK - Andrew can you please apply it to -mm.
> > That raises a question in my mind: The swapper space statistics
> > are not protected by anything.
> >
> > Two processors can write to it at the same time - I can imagine
> > we lose a increment (two CPUs increasing at the same time), but
> > what else can happen to the statistics due to the lack of locking?
>
> That's right. It just doesn't matter at all: much better to lose
> the occasional increment than weigh it down with locking or atomicity.
Agreed.
> When was the last time you or anyone took any interest in those
> numbers? From time to time I think of just ripping them out.
I was thinking the same when reading the code.
The thing is, there might be users still - we probably want to keep
compatibility (heck, I dont know compatibility to what, but lets
imagine there is some application out there who uses it).
I think we can make it optional on CONFIG_EMBEDDED - if its
set, make the INC_CACHE_ #defines NULL. What you think of that?
Then remove later on v2.7.
Thats a conservative approach - we could just rip off it completly.
--
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:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2004-10-15 21:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 10:45 [PATCH] use find_trylock_page in free_swap_and_cache instead of hand coding Marcelo Tosatti
2004-10-15 13:20 ` Hugh Dickins
2004-10-15 18:35 ` Marcelo Tosatti
2004-10-15 21:54 ` Hugh Dickins
2004-10-15 21:09 ` Marcelo Tosatti [this message]
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=20041015210927.GE4937@logos.cnet \
--to=marcelo.tosatti@cyclades.com \
--cc=akpm@osdl.org \
--cc=hugh@veritas.com \
--cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.