All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] silence an unnescessary raid5 debugging message
@ 2002-10-08 22:03 Benjamin LaHaise
  2002-10-08 23:31 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin LaHaise @ 2002-10-08 22:03 UTC (permalink / raw)
  To: mingo, Linux Kernel

Hello Ingo,

LVM manages to trigger the "raid5: switching cache buffer size" printk 
quiet voluminously when using a snapshot device.  The following patch 
disables it by placing it under the debugging PRINTK macro.

		-ben
-- 
"Do you seek knowledge in time travel?"

diff -urN linux.orig/drivers/md/raid5.c linux/drivers/md/raid5.c
--- linux.orig/drivers/md/raid5.c	Mon Feb 25 14:37:58 2002
+++ linux/drivers/md/raid5.c	Tue Oct  8 17:56:43 2002
@@ -282,7 +282,7 @@
 				}
 
 				if (conf->buffer_size != size) {
-					printk("raid5: switching cache buffer size, %d --> %d\n", oldsize, size);
+					PRINTK("raid5: switching cache buffer size, %d --> %d\n", oldsize, size);
 					shrink_stripe_cache(conf);
 					if (size==0) BUG();
 					conf->buffer_size = size;

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

* Re: [patch] silence an unnescessary raid5 debugging message
  2002-10-08 22:03 [patch] silence an unnescessary raid5 debugging message Benjamin LaHaise
@ 2002-10-08 23:31 ` Neil Brown
  2002-10-08 23:36   ` Benjamin LaHaise
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Brown @ 2002-10-08 23:31 UTC (permalink / raw)
  To: Benjamin LaHaise; +Cc: mingo, Linux Kernel

On Tuesday October 8, bcrl@redhat.com wrote:
> Hello Ingo,
> 
> LVM manages to trigger the "raid5: switching cache buffer size" printk 
> quiet voluminously when using a snapshot device.  The following patch 
> disables it by placing it under the debugging PRINTK macro.

This is there as a 'printk' deliberately.  It warns you that what you
are doing isn't really supported and will cause a substantial
performance hit (as all IO to the array is completely serialised
around one of these messages).

If you want to make it PRITNK for yourself, that is fine.  But I would
rather it stayed as printk in the mainstream kernel untill the root
problem is fixed (and I have seen patches that possibly fix the
problem, but I haven't had a chance to look at them).

NeilBrown

> 
> 		-ben
> -- 
> "Do you seek knowledge in time travel?"
> 
> diff -urN linux.orig/drivers/md/raid5.c linux/drivers/md/raid5.c
> --- linux.orig/drivers/md/raid5.c	Mon Feb 25 14:37:58 2002
> +++ linux/drivers/md/raid5.c	Tue Oct  8 17:56:43 2002
> @@ -282,7 +282,7 @@
>  				}
>  
>  				if (conf->buffer_size != size) {
> -					printk("raid5: switching cache buffer size, %d --> %d\n", oldsize, size);
> +					PRINTK("raid5: switching cache buffer size, %d --> %d\n", oldsize, size);
>  					shrink_stripe_cache(conf);
>  					if (size==0) BUG();
>  					conf->buffer_size = size;
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: [patch] silence an unnescessary raid5 debugging message
  2002-10-08 23:31 ` Neil Brown
@ 2002-10-08 23:36   ` Benjamin LaHaise
  2002-10-09  0:51     ` David S. Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin LaHaise @ 2002-10-08 23:36 UTC (permalink / raw)
  To: Neil Brown; +Cc: mingo, Linux Kernel

On Wed, Oct 09, 2002 at 09:31:14AM +1000, Neil Brown wrote:
> This is there as a 'printk' deliberately.  It warns you that what you
> are doing isn't really supported and will cause a substantial
> performance hit (as all IO to the array is completely serialised
> around one of these messages).

As it stands, the syslogging from the printk does more damage to performance 
than the underlying problem.  Besides, LVM snapshots are slow, but they're 
useful for a class of problems anyways.

		-ben

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

* Re: [patch] silence an unnescessary raid5 debugging message
  2002-10-08 23:36   ` Benjamin LaHaise
@ 2002-10-09  0:51     ` David S. Miller
  2002-10-09  1:02       ` Benjamin LaHaise
  0 siblings, 1 reply; 7+ messages in thread
From: David S. Miller @ 2002-10-09  0:51 UTC (permalink / raw)
  To: bcrl; +Cc: neilb, mingo, linux-kernel

   From: Benjamin LaHaise <bcrl@redhat.com>
   Date: Tue, 8 Oct 2002 19:36:12 -0400
   
   As it stands, the syslogging from the printk does more damage to
   performance than the underlying problem.  Besides, LVM snapshots
   are slow, but they're useful for a class of problems anyways.

He's just saying kill the real problem first, that's all.

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

* Re: [patch] silence an unnescessary raid5 debugging message
  2002-10-09  0:51     ` David S. Miller
@ 2002-10-09  1:02       ` Benjamin LaHaise
  2002-10-09 11:55         ` jw schultz
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin LaHaise @ 2002-10-09  1:02 UTC (permalink / raw)
  To: David S. Miller; +Cc: neilb, mingo, linux-kernel

On Tue, Oct 08, 2002 at 05:51:16PM -0700, David S. Miller wrote:
>    From: Benjamin LaHaise <bcrl@redhat.com>
>    Date: Tue, 8 Oct 2002 19:36:12 -0400
>    
>    As it stands, the syslogging from the printk does more damage to
>    performance than the underlying problem.  Besides, LVM snapshots
>    are slow, but they're useful for a class of problems anyways.
> 
> He's just saying kill the real problem first, that's all.

I'm just saying that the message is the only real problem I have with 
the state of 2.4.  Sure, 2.5 deserves it fixed correctly, but I doubt 
the correct fix will make it into 2.4 anytime soon (it's far more 
dangerous than we should consider shipping in a "stable" series).

		-ben
-- 
"Do you seek knowledge in time travel?"

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

* Re: [patch] silence an unnescessary raid5 debugging message
  2002-10-09  1:02       ` Benjamin LaHaise
@ 2002-10-09 11:55         ` jw schultz
  0 siblings, 0 replies; 7+ messages in thread
From: jw schultz @ 2002-10-09 11:55 UTC (permalink / raw)
  To: linux-kernel

On Tue, Oct 08, 2002 at 09:02:49PM -0400, Benjamin LaHaise wrote:
> On Tue, Oct 08, 2002 at 05:51:16PM -0700, David S. Miller wrote:
> >    From: Benjamin LaHaise <bcrl@redhat.com>
> >    Date: Tue, 8 Oct 2002 19:36:12 -0400
> >    
> >    As it stands, the syslogging from the printk does more damage to
> >    performance than the underlying problem.  Besides, LVM snapshots
> >    are slow, but they're useful for a class of problems anyways.
> > 
> > He's just saying kill the real problem first, that's all.
> 
> I'm just saying that the message is the only real problem I have with 
> the state of 2.4.  Sure, 2.5 deserves it fixed correctly, but I doubt 
> the correct fix will make it into 2.4 anytime soon (it's far more 
> dangerous than we should consider shipping in a "stable" series).

It sound to me like a big nasty message should be generated
when the snapshot volume is created to advise that
performance will be horribly impaired.  Thrashing the log
file to warn the user is like breaking your arm to remind
yourself to trim your fingernails.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

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

* Re: [patch] silence an unnescessary raid5 debugging message
@ 2002-10-09 17:36 David Mansfield
  0 siblings, 0 replies; 7+ messages in thread
From: David Mansfield @ 2002-10-09 17:36 UTC (permalink / raw)
  To: Benjamin LaHaise; +Cc: Ingo Molnar, linux-kernel


>LVM manages to trigger the "raid5: switching cache buffer size" printk 
>quiet voluminously when using a snapshot device.  The following patch 
>disables it by placing it under the debugging PRINTK macro.

Ben (and Ingo),

I happen to hit this message thousands of times per second sometimes under
normal operation in certain loads (raw devices for oracle and fs on LVM on
raid5).  I understand that it's annoying, I actually think it shouldn't be
removed, because it's telling the operator importantn information.

As I understand it, the message is indicating a really bad performance 
problem (i.e a complete flush of the stripe cache), and that anyone 
encountering it on a very frequent (i.e. annoying) basis should consider 
changing their setup.

Encountering this message has forced us to plan to split the single raid5 
we have into two, in order to satisfy the different request sizes of the 
raw-device vs. the ext3 fs.

David

P.S.  Is there any hope of fixing this issue so that the stripe cache can 
handle different sized requests?  Possibly is this a bug in LVM?

-- 
/==============================\
| David Mansfield              |
| david@cobite.com             |
\==============================/


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

end of thread, other threads:[~2002-10-09 17:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-08 22:03 [patch] silence an unnescessary raid5 debugging message Benjamin LaHaise
2002-10-08 23:31 ` Neil Brown
2002-10-08 23:36   ` Benjamin LaHaise
2002-10-09  0:51     ` David S. Miller
2002-10-09  1:02       ` Benjamin LaHaise
2002-10-09 11:55         ` jw schultz
  -- strict thread matches above, loose matches on Subject: below --
2002-10-09 17:36 David Mansfield

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.