Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754182AbbGXPtp (ORCPT ); Fri, 24 Jul 2015 11:49:45 -0400 Received: from mail-bl2on0128.outbound.protection.outlook.com ([65.55.169.128]:38112 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752391AbbGXPtl convert rfc822-to-8bit (ORCPT ); Fri, 24 Jul 2015 11:49:41 -0400 From: Madalin-Cristian Bucur To: Joe Perches CC: "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Scott Wood , Liberman Igal , "ppc@mindchasers.com" , "pebolle@tiscali.nl" , "joakim.tjernlund@transmode.se" Subject: RE: [PATCH 03/10] dpaa_eth: add configurable bpool thresholds Thread-Topic: [PATCH 03/10] dpaa_eth: add configurable bpool thresholds Thread-Index: AQHQxJn/ayRE53kbD0+lkRb1eflMup3nw6cAgAMAN4A= Date: Fri, 24 Jul 2015 15:49:39 +0000 Message-ID: References: <1437581806-17420-1-git-send-email-madalin.bucur@freescale.com> <1437581806-17420-2-git-send-email-madalin.bucur@freescale.com> <1437581806-17420-3-git-send-email-madalin.bucur@freescale.com> <1437587228.20787.26.camel@perches.com> In-Reply-To: <1437587228.20787.26.camel@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: perches.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.166.1] x-microsoft-exchange-diagnostics: 1;BL2PR03MB371;5:QaSbNHRHH2wb1OrVjvdnHD3CxM2cdsLlbhOgA2ENyyHeB6ZoXeI/rNARKyEU6/XbP0SJpJEeMkEVpgTFes2dSUKWqguShCfVWL5xB2EQ5yuPtxwm76CSTE5l+fkbKmnQtr83yNwrJoYvykM3ZfuEUw==;24:WFzqrKHTp74/5aGj4sj9wd4gasNwQW0KEV82bUMwBXWU3F+b7p7CBwvO79+XSMd9wbS1t9cGSR2wFSJap2DMLBEFxels+Uru5gjabRWCREo=;20:EUrez0lHzbMCdGovCR/4Su5rpjrxgcvJvkjwDsgcKL9wynCJCj86N2mlYBbtV9O57HVQ3OtWgCJT4vjd0nAKkQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB371; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BL2PR03MB371;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB371; x-forefront-prvs: 0647963F84 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377424004)(24454002)(13464003)(99286002)(122556002)(66066001)(77156002)(2656002)(40100003)(93886004)(62966003)(19580405001)(50986999)(76176999)(54356999)(87936001)(19580395003)(77096005)(2950100001)(102836002)(86362001)(74316001)(2900100001)(33656002)(5002640100001)(92566002)(189998001)(106116001)(5003600100002)(110136002)(46102003)(5001960100002)(76576001);DIR:OUT;SFP:1102;SCL:1;SRVR:BL2PR03MB371;H:BL2PR03MB545.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2015 15:49:39.6368 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB371 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1788 Lines: 44 > -----Original Message----- > From: Joe Perches [mailto:joe@perches.com] > On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote: > > Allow the user to tweak the refill threshold and the total number > > of buffers in the buffer pool. The provided values are for one CPU. > > Any value in making these module parameters instead? I expect one would (hardly ever) change these to improve some corner cases then use them with the new values. It may help in the tuning process but afterwards the bloat to the bootcmd would probably be a nuisance. > > +config FSL_DPAA_ETH_MAX_BUF_COUNT > > + int "Maximum number of buffers in private bpool" > > + range 64 2048 > > + default "128" > > + ---help--- > > + The maximum number of buffers to be by default allocated in the > DPAA-Ethernet private port's > > + buffer pool. One needn't normally modify this, as it has probably > been tuned for performance > > + already. This cannot be lower than DPAA_ETH_REFILL_THRESHOLD. > > + > > +config FSL_DPAA_ETH_REFILL_THRESHOLD > > + int "Private bpool refill threshold" > > + range 32 FSL_DPAA_ETH_MAX_BUF_COUNT > > + default "80" > > + ---help--- > > + The DPAA-Ethernet driver will start replenishing buffer pools whose > count > > + falls below this threshold. This must be related to > DPAA_ETH_MAX_BUF_COUNT. One needn't normally > > + modify this value unless one has very specific performance reasons. > > + > > config FSL_DPAA_CS_THRESHOLD_1G > > hex "Egress congestion threshold on 1G ports" > > range 0x1000 0x10000000 > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/