Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2009 22:02:57 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r193774 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb
Message-ID:  <200906082202.n58M2vXK045613@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Mon Jun  8 22:02:57 2009
New Revision: 193774
URL: http://svn.freebsd.org/changeset/base/193774

Log:
  further reduce coalescing threshold

Modified:
  user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c

Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c	Mon Jun  8 22:02:30 2009	(r193773)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c	Mon Jun  8 22:02:57 2009	(r193774)
@@ -234,14 +234,14 @@ check_pkt_coalesce(struct sge_qset *qs) 
 	fill = &sc->tunq_fill[qs->idx];
 
 	/*
-	 * if the hardware transmit queue is more than 3/4 full
+	 * if the hardware transmit queue is more than 1/2 full
 	 * we mark it as coalescing - we drop back from coalescing
-	 * when we go below 1/4 full, this provides us with some
+	 * when we go below 1/8 full, this provides us with some
 	 * degree of hysteresis
 	 */
-        if (*fill != 0 && (txq->in_use < (txq->size>>2)))  
+        if (*fill != 0 && (txq->in_use < (txq->size>>3)))  
                 *fill = 0; 
-        else if (*fill == 0 && (txq->in_use >= (txq->size - (txq->size>>2))))  
+        else if (*fill == 0 && (txq->in_use >= (txq->size - (txq->size>>1))))  
                 *fill = 1; 
 
 	return (sc->tunq_coalesce);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906082202.n58M2vXK045613>