ibm_newemac: Increase number of default rx-/tx-buffers
Subsystems (2)
PATCH 1/1 ibm_newemac: Increase number of default rx-/tx-buffers
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
--- drivers/net/ibm_newemac/Kconfig | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ibm_newemac/Kconfig +2 -2
@@ -9,12 +9,12 @@ config IBM_NEW_EMAC config IBM_NEW_EMAC_RXB int "Number of receive buffers" depends on IBM_NEW_EMAC - default "128" + default "256" config IBM_NEW_EMAC_TXB int "Number of transmit buffers" depends on IBM_NEW_EMAC - default "64" + default "256" config IBM_NEW_EMAC_POLL_WEIGHT int "MAL NAPI polling weight"
Signature · 1 line
1.5.4.rc2
Quoted 6 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
Ben.
Quoted 22 lines
drivers/net/ibm_newemac/Kconfig | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/net/ibm_newemac/Kconfig +2
-2@@ -9,12 +9,12 @@ config IBM_NEW_EMAC config IBM_NEW_EMAC_RXB int "Number of receive buffers" depends on IBM_NEW_EMAC - default "128" + default "256" config IBM_NEW_EMAC_TXB int "Number of transmit buffers" depends on IBM_NEW_EMAC - default "64" + default "256" config IBM_NEW_EMAC_POLL_WEIGHT int "MAL NAPI polling weight"
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 6 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
Best regards,
Stefan
Quoted 6 lines · Stefan Roese
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 4 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
Ok. Well, it's just a .config option so I suppose the patch is fine. Can you also update the defconfigs (at least for the recent AMCC boards) ?
Ben.
Quoted 11 lines · On Sun, 06 Jan 2008 07:53:06 +1100 Benjamin Herrenschmidt…
Quoted 9 lines · Stefan Roese
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 6 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Signed-off-by Stefan Roese <[email protected]>---
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Do we have the numbers ? Did they also measure latency ?
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
Ok. Well, it's just a .config option so I suppose the patch is fine. Can you also update the defconfigs (at least for the recent AMCC boards) ?
No need for a defconfig update patch. Paul or I usually do a general defconfig update for most boards before the next kernel version. This will get picked up then.
josh
Quoted 3 lines · Josh Boyer
No need for a defconfig update patch. Paul or I usually do a general defconfig update for most boards before the next kernel version. This will get picked up then.
Will it ? I think the defconfigs will stick to the old value.
Ben.
Quoted 7 lines · On Sun, 06 Jan 2008 08:54:28 +1100 Benjamin Herrenschmidt…
Quoted 3 lines · Josh Boyer
No need for a defconfig update patch. Paul or I usually do a general defconfig update for most boards before the next kernel version. This will get picked up then.
Will it ? I think the defconfigs will stick to the old value.
Put another way, if Kconfig doesn't update it automagically, I'll be sure to do it myself. :)
josh
Quoted 6 lines · Stefan Roese
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 4 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
This cannot be true for all chips. Default numbers I selected weren't random. In particular, 256 for Tx doesn't make a lot of sense for 405. You just gonna waste memory.
I'd be quite reluctant to follow such advices from AMCC without actual details.
Signature · 1 line
Eugene
Quoted 15 lines · Eugene Surovegin
Quoted 6 lines · Stefan Roese
Quoted 5 lines · Benjamin Herrenschmidt
Quoted 4 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
Quoted 6 lines
This cannot be true for all chips. Default numbers I selected weren't random. In particular, 256 for Tx doesn't make a lot of sense for 405. You just gonna waste memory.
I'd be quite reluctant to follow such advices from AMCC without actual details.
I think we can make defaults based on other config options nowadays. Not very nice but we could do things like
default 128 if PPC_40x default 256
Or even more detailed.
Cheers,
Ben.
Quoted 13 lines · Benjamin Herrenschmidt
Quoted 12 lines · Eugene Surovegin
Quoted 11 lines · Stefan Roese
Quoted 9 lines · Benjamin Herrenschmidt
Quoted 6 lines · Stefan Roese
Performance tests done by AMCC have shown that 256 buffer increase the performance of the Linux EMAC driver. So let's update the default values to match this setup.
Signed-off-by Stefan Roese <[email protected]>---
Do we have the numbers ? Did they also measure latency ?
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
I hoped this question would not come. ;) No, unfortunately I don't have any numbers. Just the recommendation from AMCC to always use 256 buffers.
This cannot be true for all chips. Default numbers I selected weren't random. In particular, 256 for Tx doesn't make a lot of sense for 405. You just gonna waste memory.
This may be the case with the "old" 405 PPC's. But with the new ones coming out right now, like the up to 666MHz 405EX with GBit support, 256 could be an improvement. I still owe you figures though. Will try to do some testing in a short while.
Quoted 10 lines
Quoted 2 lines
I'd be quite reluctant to follow such advices from AMCC without actual details.
I think we can make defaults based on other config options nowadays. Not very nice but we could do things like
default 128 if PPC_40x default 256Or even more detailed.
We shouldn't make it too complicated. We can always select different settings in the defconfig file. My thinking here is to better wast a little memory with a potential performance improvement. Just me 0.02$
Best regards,
Stefan
Quoted 6 lines · Stefan Roese
We shouldn't make it too complicated. We can always select different settings
in the defconfig file. My thinking here is to better wast a little memory
with a potential performance improvement. Just me 0.02$
If it gets really critical, then we can move those settings to the device-tree.
Ben.
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 6 lines · Stefan Roese
We shouldn't make it too complicated. We can always select different settings
in the defconfig file. My thinking here is to better wast a little memory
with a potential performance improvement. Just me 0.02$If it gets really critical, then we can move those settings to the device-tree.
Come on guys, it's not that critical. I guess I just don't trust a certain company :)
Signature · 1 line
Eugene