Re: Insufficients buffers for rebalance

2010-04-27 Thread Dylan Reinhold

Matthew Dillon wrote:

Don't bother trying to rebalance.  It won't actually hurt the filesystem
much to not rebalance.  The rebalancer needs a lot of buffer cache
buffers to operate at the moment and there's no easy solution other
then to add memory.

-Matt

Matt,
 I get this with even 512MB of ram, as it does not seem to be something 
we need people to worry about can we subdue the message unless 
vfs.hammer.debug.general is 0x0080??
0x0080 might not been the correct one to use, but seemed to be popular, 
is there a list of reasons for each one used in debug_general?


Attached is a patch.

Thanks,
Dylan
From 52862807299d79f0253d428a0b1529ad63e87bf3 Mon Sep 17 00:00:00 2001
From: Dylan Reinhold dy...@ocnetworking.com
Date: Tue, 27 Apr 2010 22:04:21 -0700
Subject: [PATCH] HAMMER: Suppress rebalance buffer message.

Only show the message if debug.general is 0x0080
---
 sys/vfs/hammer/hammer_ioctl.c |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/vfs/hammer/hammer_ioctl.c b/sys/vfs/hammer/hammer_ioctl.c
index f8fe994..dc7eb90 100644
--- a/sys/vfs/hammer/hammer_ioctl.c
+++ b/sys/vfs/hammer/hammer_ioctl.c
@@ -94,9 +94,11 @@ hammer_ioctl(hammer_inode_t ip, u_long com, caddr_t data, int fflag,
 		 * little memory will not be able to do it.
 		 */
 		if (error == 0  nbuf  HAMMER_REBALANCE_MIN_BUFS) {
-			kprintf(hammer: System has insufficient buffers 
-to rebalance the tree.  nbuf  %d\n,
+			if (hammer_debug_general  0x0080) {
+kprintf(hammer: System has insufficient 
+buffers to rebalance the tree.  nbuf  %d\n,
 HAMMER_REBALANCE_MIN_BUFS);
+			}
 			error = ENOSPC;
 		}
 		if (error == 0) {
-- 
1.6.4



RE: Insufficients buffers for rebalance

2010-04-27 Thread Alex Hornung
:   I get this with even 512MB of ram, as it does not seem to be
: something we need people to worry about can we subdue the message
: unless vfs.hammer.debug.general is 0x0080??

FWIW, I had a VM with 512MB RAM showing exactly the same message. Bumping it
to 1 GB did the trick for me. Of course that's a bit trickier for physical
machines :)

Cheers,
Alex Hornung



Insufficients buffers for rebalance

2010-04-26 Thread Sdävtaker
Hi,
I got the Insufficient buffers for rebalance in 2.6.2-RELEASE #1
It was running in a virtualbox with 128MB ram and 60GB hd, i read that it
need to have more than 128MB memory in an old mail, so i incresed the memory
to 386MB, still get the same error everytime i run rebalance.
Any suggestions?
Damian

-- 
http://dfbsd.trackbsd.org.ar


Re: Insufficients buffers for rebalance

2010-04-26 Thread Matthew Dillon
:Hi,
:I got the Insufficient buffers for rebalance in 2.6.2-RELEASE #1
:It was running in a virtualbox with 128MB ram and 60GB hd, i read that it
:need to have more than 128MB memory in an old mail, so i incresed the memory
:to 386MB, still get the same error everytime i run rebalance.
:Any suggestions?
:Damian

Don't bother trying to rebalance.  It won't actually hurt the filesystem
much to not rebalance.  The rebalancer needs a lot of buffer cache
buffers to operate at the moment and there's no easy solution other
then to add memory.

-Matt