From owner-svn-src-user@FreeBSD.ORG Tue Jun 9 01:41:45 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9E9B1065673; Tue, 9 Jun 2009 01:41:45 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C85918FC0A; Tue, 9 Jun 2009 01:41:45 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n591fjnt051748; Tue, 9 Jun 2009 01:41:45 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n591fj9B051747; Tue, 9 Jun 2009 01:41:45 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200906090141.n591fj9B051747@svn.freebsd.org> From: Kip Macy Date: Tue, 9 Jun 2009 01:41:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193794 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2009 01:41:46 -0000 Author: kmacy Date: Tue Jun 9 01:41:45 2009 New Revision: 193794 URL: http://svn.freebsd.org/changeset/base/193794 Log: add comment on need for further lookback for coalescing 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 Tue Jun 9 01:21:49 2009 (r193793) +++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Tue Jun 9 01:41:45 2009 (r193794) @@ -220,6 +220,11 @@ static void sge_timer_reclaim(void *arg, static void sge_txq_reclaim_handler(void *arg, int ncount); static void cxgb_start_locked(struct sge_qset *qs); +/* + * XXX need to cope with bursty scheduling by looking at a wider + * window than we are now for determining the need for coalescing + * + */ static __inline uint64_t check_pkt_coalesce(struct sge_qset *qs) { @@ -236,10 +241,10 @@ check_pkt_coalesce(struct sge_qset *qs) /* * if the hardware transmit queue is more than 1/4 full * we mark it as coalescing - we drop back from coalescing - * when we go below 1/8 full and there are no packets enqueued, + * when we go below 1/16 full and there are no packets enqueued, * this provides us with some degree of hysteresis */ - if (*fill != 0 && (txq->in_use < (txq->size>>3)) && + if (*fill != 0 && (txq->in_use < (txq->size>>4)) && TXQ_RING_EMPTY(qs)) *fill = 0; else if (*fill == 0 && (txq->in_use >= (txq->size>>2)))