public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
       [not found]         ` <20090805141001.GJ11385@basil.fritz.box>
@ 2009-08-05 14:16           ` Nick Piggin
  2009-08-05 14:16             ` Nick Piggin
                               ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nick Piggin @ 2009-08-05 14:16 UTC (permalink / raw)
  To: Andi Kleen
  Cc: akpm, linux-kernel, linux-mm, fengguang.wu, hidehiro.kawai.ez,
	linux-arch

On Wed, Aug 05, 2009 at 04:10:01PM +0200, Andi Kleen wrote:
> > I haven't brought up the caller at this point, but IIRC you had
> > the page locked and mapping confirmed at this point anyway so
> > it would never be an error for your code.
> > 
> > Probably it would be nice to just force callers to verify the page.
> > Normally IMO it is much nicer and clearer to do it at the time the
> > page gets locked, unless there is good reason otherwise.
> 
> Ok. I think I'll just keep it as it is for now.
> 
> The only reason I added the error code was to make truncate_inode_page
> fit into .error_remove_page, but then latter I did another wrapper
> so it could be removed again. But it won't hurt to have it either.

OK, it's more of a cleanup/nit.

One question I had for the others (Andrew? other mm guys?) what is the
feelings of merging this feature? Leaving aside exact implementation
and just considering the high level design and cost/benefit. Last time
there were some people objecting, so I wonder the situation now? So
does anybody need more convincing? :)

Also I will just cc linux-arch. It would be interesting to know whether
powerpc, ia64, or s390 or others would be interested to use this feature?

Thanks,
Nick

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-05 14:16           ` [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2 Nick Piggin
@ 2009-08-05 14:16             ` Nick Piggin
  2009-08-05 14:41             ` Andi Kleen
  2009-08-06 11:48             ` Martin Schwidefsky
  2 siblings, 0 replies; 7+ messages in thread
From: Nick Piggin @ 2009-08-05 14:16 UTC (permalink / raw)
  To: Andi Kleen
  Cc: akpm, linux-kernel, linux-mm, fengguang.wu, hidehiro.kawai.ez,
	linux-arch

On Wed, Aug 05, 2009 at 04:10:01PM +0200, Andi Kleen wrote:
> > I haven't brought up the caller at this point, but IIRC you had
> > the page locked and mapping confirmed at this point anyway so
> > it would never be an error for your code.
> > 
> > Probably it would be nice to just force callers to verify the page.
> > Normally IMO it is much nicer and clearer to do it at the time the
> > page gets locked, unless there is good reason otherwise.
> 
> Ok. I think I'll just keep it as it is for now.
> 
> The only reason I added the error code was to make truncate_inode_page
> fit into .error_remove_page, but then latter I did another wrapper
> so it could be removed again. But it won't hurt to have it either.

OK, it's more of a cleanup/nit.

One question I had for the others (Andrew? other mm guys?) what is the
feelings of merging this feature? Leaving aside exact implementation
and just considering the high level design and cost/benefit. Last time
there were some people objecting, so I wonder the situation now? So
does anybody need more convincing? :)

Also I will just cc linux-arch. It would be interesting to know whether
powerpc, ia64, or s390 or others would be interested to use this feature?

Thanks,
Nick


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-05 14:16           ` [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2 Nick Piggin
  2009-08-05 14:16             ` Nick Piggin
@ 2009-08-05 14:41             ` Andi Kleen
  2009-08-05 14:44               ` Nick Piggin
  2009-08-05 15:00               ` Matthew Wilcox
  2009-08-06 11:48             ` Martin Schwidefsky
  2 siblings, 2 replies; 7+ messages in thread
From: Andi Kleen @ 2009-08-05 14:41 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Andi Kleen, akpm, linux-kernel, linux-mm, fengguang.wu,
	hidehiro.kawai.ez, linux-arch

> One question I had for the others (Andrew? other mm guys?) what is the
> feelings of merging this feature? Leaving aside exact implementation
> and just considering the high level design and cost/benefit. Last time
> there were some people objecting, so I wonder the situation now? So
> does anybody need more convincing? :)

The main objection last time was that it was a bit too late in the 
release schedule.

I can't remember anyone really questioning the basic feature itself.

> Also I will just cc linux-arch. It would be interesting to know whether
> powerpc, ia64, or s390 or others would be interested to use this feature?

ia64 is interested (but no code so far) I talked to DaveM and he seems to be 
interested for sparc too.  I would expect other server architectures to 
eventually use it as they get around to writing the necessary architecture 
specific glue.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-05 14:41             ` Andi Kleen
@ 2009-08-05 14:44               ` Nick Piggin
  2009-08-05 15:00               ` Matthew Wilcox
  1 sibling, 0 replies; 7+ messages in thread
From: Nick Piggin @ 2009-08-05 14:44 UTC (permalink / raw)
  To: Andi Kleen
  Cc: akpm, linux-kernel, linux-mm, fengguang.wu, hidehiro.kawai.ez,
	linux-arch

On Wed, Aug 05, 2009 at 04:41:12PM +0200, Andi Kleen wrote:
> > One question I had for the others (Andrew? other mm guys?) what is the
> > feelings of merging this feature? Leaving aside exact implementation
> > and just considering the high level design and cost/benefit. Last time
> > there were some people objecting, so I wonder the situation now? So
> > does anybody need more convincing? :)
> 
> The main objection last time was that it was a bit too late in the 
> release schedule.
> 
> I can't remember anyone really questioning the basic feature itself.

I can't exactly remember. Maybe it was in a thread with Alan and/or
Arjan ;) I don't think the feature itself was questioned as much as
cost/benefit. Maybe I was wrong...

I just want to see everyone is happy with the basic idea ;)


> > Also I will just cc linux-arch. It would be interesting to know whether
> > powerpc, ia64, or s390 or others would be interested to use this feature?
> 
> ia64 is interested (but no code so far) I talked to DaveM and he seems to be 
> interested for sparc too.  I would expect other server architectures to 
> eventually use it as they get around to writing the necessary architecture 
> specific glue.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-05 14:41             ` Andi Kleen
  2009-08-05 14:44               ` Nick Piggin
@ 2009-08-05 15:00               ` Matthew Wilcox
  1 sibling, 0 replies; 7+ messages in thread
From: Matthew Wilcox @ 2009-08-05 15:00 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Nick Piggin, akpm, linux-kernel, linux-mm, fengguang.wu,
	hidehiro.kawai.ez, linux-arch, linux-parisc

On Wed, Aug 05, 2009 at 04:41:12PM +0200, Andi Kleen wrote:
> > One question I had for the others (Andrew? other mm guys?) what is the
> > feelings of merging this feature? Leaving aside exact implementation
> > and just considering the high level design and cost/benefit. Last time
> > there were some people objecting, so I wonder the situation now? So
> > does anybody need more convincing? :)
> 
> The main objection last time was that it was a bit too late in the 
> release schedule.
> 
> I can't remember anyone really questioning the basic feature itself.
> 
> > Also I will just cc linux-arch. It would be interesting to know whether
> > powerpc, ia64, or s390 or others would be interested to use this feature?
> 
> ia64 is interested (but no code so far) I talked to DaveM and he seems to be 
> interested for sparc too.  I would expect other server architectures to 
> eventually use it as they get around to writing the necessary architecture 
> specific glue.

parisc could certainly implement this.  Don't know if there's interest.

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-05 14:16           ` [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2 Nick Piggin
  2009-08-05 14:16             ` Nick Piggin
  2009-08-05 14:41             ` Andi Kleen
@ 2009-08-06 11:48             ` Martin Schwidefsky
  2009-08-06 12:04               ` Andi Kleen
  2 siblings, 1 reply; 7+ messages in thread
From: Martin Schwidefsky @ 2009-08-06 11:48 UTC (permalink / raw)
  To: Nick Piggin
  Cc: Andi Kleen, akpm, linux-kernel, linux-mm, fengguang.wu,
	hidehiro.kawai.ez, linux-arch

On Wed, 5 Aug 2009 16:16:42 +0200
Nick Piggin <npiggin@suse.de> wrote:

> On Wed, Aug 05, 2009 at 04:10:01PM +0200, Andi Kleen wrote:
> > > I haven't brought up the caller at this point, but IIRC you had
> > > the page locked and mapping confirmed at this point anyway so
> > > it would never be an error for your code.
> > > 
> > > Probably it would be nice to just force callers to verify the page.
> > > Normally IMO it is much nicer and clearer to do it at the time the
> > > page gets locked, unless there is good reason otherwise.
> > 
> > Ok. I think I'll just keep it as it is for now.
> > 
> > The only reason I added the error code was to make truncate_inode_page
> > fit into .error_remove_page, but then latter I did another wrapper
> > so it could be removed again. But it won't hurt to have it either.
> 
> OK, it's more of a cleanup/nit.
> 
> One question I had for the others (Andrew? other mm guys?) what is the
> feelings of merging this feature? Leaving aside exact implementation
> and just considering the high level design and cost/benefit. Last time
> there were some people objecting, so I wonder the situation now? So
> does anybody need more convincing? :)
> 
> Also I will just cc linux-arch. It would be interesting to know whether
> powerpc, ia64, or s390 or others would be interested to use this feature?

This is not relevant for s390, as current machines do transparent memory
sparing if a memory module goes bad. Really old machines reported bad
memory to the OS by means of a machine check (storage error uncorrected
and storage error corrected). I have never seen this happen, the level
below the OS deals with these errors for us.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2
  2009-08-06 11:48             ` Martin Schwidefsky
@ 2009-08-06 12:04               ` Andi Kleen
  0 siblings, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2009-08-06 12:04 UTC (permalink / raw)
  To: Martin Schwidefsky
  Cc: Nick Piggin, Andi Kleen, akpm, linux-kernel, linux-mm,
	fengguang.wu, hidehiro.kawai.ez, linux-arch

> This is not relevant for s390, as current machines do transparent memory
> sparing if a memory module goes bad. Really old machines reported bad
> memory to the OS by means of a machine check (storage error uncorrected
> and storage error corrected). I have never seen this happen, the level
> below the OS deals with these errors for us.

Ok fine. It's for the poorer cousins then who can't afford memory mirroring.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-06 12:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200908051136.682859934@firstfloor.org>
     [not found] ` <20090805093638.D3754B15D8@basil.firstfloor.org>
     [not found]   ` <20090805102008.GB17190@wotan.suse.de>
     [not found]     ` <20090805134607.GH11385@basil.fritz.box>
     [not found]       ` <20090805140145.GB28563@wotan.suse.de>
     [not found]         ` <20090805141001.GJ11385@basil.fritz.box>
2009-08-05 14:16           ` [PATCH] [11/19] HWPOISON: Refactor truncate to allow direct truncating of page v2 Nick Piggin
2009-08-05 14:16             ` Nick Piggin
2009-08-05 14:41             ` Andi Kleen
2009-08-05 14:44               ` Nick Piggin
2009-08-05 15:00               ` Matthew Wilcox
2009-08-06 11:48             ` Martin Schwidefsky
2009-08-06 12:04               ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox