RE: [PATCH 03/10] dpaa_eth: add configurable bpool thresholds
From: Madalin-Cristian Bucur <hidden>
Date: 2015-07-24 15:49:45
Also in:
linuxppc-dev, lkml
-----Original Message----- From: Joe Perches [mailto:joe@perches.com] On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote:quoted
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.
quoted
+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 theDPAA-Ethernet private port'squoted
+ buffer pool. One needn't normally modify this, as it has probablybeen tuned for performancequoted
+ 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 whosecountquoted
+ falls below this threshold. This must be related toDPAA_ETH_MAX_BUF_COUNT. One needn't normallyquoted
+ 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