Index: freelist.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/storage/buffer/freelist.c,v
retrieving revision 1.48
diff -d -c -r1.48 freelist.c
*** freelist.c	16 Sep 2004 16:58:31 -0000	1.48
--- freelist.c	22 Oct 2004 18:15:38 -0000
***************
*** 126,131 ****
--- 126,133 ----
  	if (StrategyControl->stat_report + DebugSharedBuffers < now)
  	{
  		long		all_hit,
+                     buf_used,
+                     b_hit,
  					b1_hit,
  					t1_hit,
  					t2_hit,
***************
*** 155,161 ****
  		}
  
  		if (StrategyControl->num_lookup == 0)
! 			all_hit = b1_hit = t1_hit = t2_hit = b2_hit = 0;
  		else
  		{
  			b1_hit = (StrategyControl->num_hit[STRAT_LIST_B1] * 100 /
--- 157,163 ----
  		}
  
  		if (StrategyControl->num_lookup == 0)
! 			all_hit = buf_used = b_hit = b1_hit = t1_hit = t2_hit = b2_hit = 0;
  		else
  		{
  			b1_hit = (StrategyControl->num_hit[STRAT_LIST_B1] * 100 /
***************
*** 166,181 ****
  					  StrategyControl->num_lookup);
  			b2_hit = (StrategyControl->num_hit[STRAT_LIST_B2] * 100 /
  					  StrategyControl->num_lookup);
! 			all_hit = b1_hit + t1_hit + t2_hit + b2_hit;
  		}
  
  		errcxtold = error_context_stack;
  		error_context_stack = NULL;
! 		elog(DEBUG1, "ARC T1target=%5d B1len=%5d T1len=%5d T2len=%5d B2len=%5d",
  			 T1_TARGET, B1_LENGTH, T1_LENGTH, T2_LENGTH, B2_LENGTH);
! 		elog(DEBUG1, "ARC total   =%4ld%% B1hit=%4ld%% T1hit=%4ld%% T2hit=%4ld%% B2hit=%4ld%%",
  			 all_hit, b1_hit, t1_hit, t2_hit, b2_hit);
! 		elog(DEBUG1, "ARC clean buffers at LRU       T1=   %5d T2=   %5d",
  			 t1_clean, t2_clean);
  		error_context_stack = errcxtold;
  
--- 168,187 ----
  					  StrategyControl->num_lookup);
  			b2_hit = (StrategyControl->num_hit[STRAT_LIST_B2] * 100 /
  					  StrategyControl->num_lookup);
! 			all_hit = t1_hit + t2_hit;
!    			b_hit = b1_hit + b2_hit;
!             buf_used = T1_LENGTH + T2_LENGTH;
  		}
  
  		errcxtold = error_context_stack;
  		error_context_stack = NULL;
! 		elog(DEBUG1, "shared_buffers used=%8ld cache hits=%4ld%% turbulence=%4ld%%",
! 			 buf_used, all_hit, b_hit);
! 		elog(DEBUG2, "ARC T1target=%5d B1len=%5d T1len=%5d T2len=%5d B2len=%5d",
  			 T1_TARGET, B1_LENGTH, T1_LENGTH, T2_LENGTH, B2_LENGTH);
! 		elog(DEBUG2, "ARC total   =%4ld%% B1hit=%4ld%% T1hit=%4ld%% T2hit=%4ld%% B2hit=%4ld%%",
  			 all_hit, b1_hit, t1_hit, t2_hit, b2_hit);
! 		elog(DEBUG2, "ARC clean buffers at LRU       T1=   %5d T2=   %5d",
  			 t1_clean, t2_clean);
  		error_context_stack = errcxtold;
  
