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