linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hubertus Franke <frankeh@watson.ibm.com>
To: schwidefsky@de.ibm.com
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
	Andrew Morton <akpm@osdl.org>,
	linux-mm@kvack.org, rhim@cc.gatech.edu
Subject: Re: Page host virtual assist patches.
Date: Wed, 26 Apr 2006 08:03:38 -0400	[thread overview]
Message-ID: <444F619A.2030002@watson.ibm.com> (raw)
In-Reply-To: <1146037185.5192.3.camel@localhost>

Martin Schwidefsky wrote:
> On Wed, 2006-04-26 at 11:13 +1000, Nick Piggin wrote:
> 
>>OK, we'll agree to disagree for now :)
>>
>>I did start looking at the code but as you can see I only reviewed
>>patch 1 before getting sidetracked. I'll try to find some more time
>>to look at in the next few days.
> 
> 
> Thanks Nick, that would be greatly appreciated. The code is hard to
> understand, it's memory races squared. Races of the hypervisor actions
> against races in the Linux mm. Lovely. It took use quite a while to get
> that beast working, on z/VM, Linux and the millicode. 
> 

Martin, one thing that should be pointed out that despite these race
conditions, the principle concept is rather clean.
It's like putting a lock at the right place, you got to know what is
protected.

If the documentation is not clear, then lets change it.
As I see, you have not included the Documentation part into the latest
patch submission. I think doing that will help.

Kernel writers should understand when they need to make the page stable
when they should attempt to make it volatile, when the system does it for them
due to the page_cache_release.
In most cases, those functions are burried in the lower level functions already.
It just gets a bit hairy with LRU races.

Nick,  your feedback on what is not clear, would help us properly address that in
the documentation.
As for code impact, I consider this very similar to the KMAP interface.
There's not need it for 64-bit architectures, but the interface is clean and
optimized away by the compiler. The same holds true here, as Martin pointed
out there is no change in the code when disabled (one exception, not on the critical
part).

-- Hubertus

--
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>

  reply	other threads:[~2006-04-26 12:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-24 12:34 Martin Schwidefsky
2006-04-25  1:01 ` Andrew Morton
2006-04-25  7:19   ` Nick Piggin
2006-04-25  8:31     ` Martin Schwidefsky
2006-04-25  8:37       ` Andrew Morton
2006-04-25 10:44         ` Martin Schwidefsky
2006-04-25 16:29           ` Andrew Morton
2006-04-25 17:04             ` Martin Schwidefsky
2006-04-25 10:04       ` Nick Piggin
2006-04-25 11:28         ` Martin Schwidefsky
2006-04-25 12:13           ` Nick Piggin
2006-04-25 14:15             ` Martin Schwidefsky
2006-04-26  1:13               ` Nick Piggin
2006-04-26  7:39                 ` Martin Schwidefsky
2006-04-26 12:03                   ` Hubertus Franke [this message]
2006-04-27 20:55           ` jschopp
2006-04-25  8:10   ` Martin Schwidefsky
2006-04-25  8:26     ` Nick Piggin
2006-04-25 10:36       ` Martin Schwidefsky
2006-04-25 10:51         ` Nick Piggin
2006-04-25 12:18           ` Martin Schwidefsky
2006-04-25  8:30     ` Andrew Morton
2006-04-25 10:43       ` Martin Schwidefsky

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=444F619A.2030002@watson.ibm.com \
    --to=frankeh@watson.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-mm@kvack.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=rhim@cc.gatech.edu \
    --cc=schwidefsky@de.ibm.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