Skip to contentSkip to conversation

igb PMD should set the default tx wthresh correctly.

DISCUSSION Stephen Hemminger 4 participants 6 messages Jul 16, 2015 – Jul 20, 2015

lore
Share & tools
lore
#0 lore raw

Why doesn't igb driver set the wthresh it wants as default?

I see:
PMD: eth_igb_tx_queue_setup(): To improve 1G driver performance, consider setting the TX WTHRESH value to 4, 8, or 16.

But the default tx_conf has wthresh of 0.

	#define IGB_DEFAULT_TX_WTHRESH      0

Either message should be removed or default TX wthresh should change.

#1 lore raw

Hi Stephen,
I don't think there's a conflict. The message just reminder us that we can adjust the values to achieve better performance. I saw ixgbe and i40e also use 0 as the same default value. To my opinion, it's good to keep the same behavior. Thanks.

Quoted 19 lines

-----Original Message-----
From: Stephen Hemminger [mailto:[email protected]]
Sent: Friday, July 17, 2015 1:17 AM
To: Lu, Wenzhuo
Cc: [email protected]
Subject: igb PMD should set the default tx wthresh correctly.

Why doesn't igb driver set the wthresh it wants as default?

I see:
PMD: eth_igb_tx_queue_setup(): To improve 1G driver performance,
consider setting the TX WTHRESH value to 4, 8, or 16.

But the default tx_conf has wthresh of 0.

	#define IGB_DEFAULT_TX_WTHRESH      0

Either message should be removed or default TX wthresh should change.

#2 lore raw
Quoted 4 lines · Wenzhuo

Hi Stephen,
I don't think there's a conflict. The message just reminder us that we can adjust the values to achieve better performance. I saw ixgbe and i40e also use 0 as the same default value. To my opinion, it's good to keep the same behavior. Thanks.

In my opnion, no application should have to make special case setup for each device type. Having to have a table that lists all the parameters for each device name is not supportable or scaleable.

The DPDK started out as "lets do benchmarks fast" but as a production toolkit it needs to stop having this kind of thing.

The message shows up to the end-user, who thinks it is a driver bug. The "us" is now real customers not DPDK developers.

#3 lore raw

2015-07-16 19:49, Stephen Hemminger:

Quoted 12 lines
Quoted 4 lines · Wenzhuo

Hi Stephen,
I don't think there's a conflict. The message just reminder us that we can adjust the values to achieve better performance. I saw ixgbe and i40e also use 0 as the same default value. To my opinion, it's good to keep the same behavior. Thanks.

In my opnion, no application should have to make special case setup for each device type. Having to have a table that lists all the parameters for each device name is not supportable or scaleable.

Quoted 5 lines

The DPDK started out as "lets do benchmarks fast" but as a production toolkit it needs to stop having this kind of thing.

The message shows up to the end-user, who thinks it is a driver bug. The "us" is now real customers not DPDK developers.

+1 to have better default values and less scary messages.

#4 lore raw
Quoted 16 lines · dev on behalf of Thomas Monjalon

2015-07-16 19:49, Stephen Hemminger:

Quoted 15 lines
Quoted 2 lines · Wenzhuo

Hi Stephen,
I don't think there's a conflict. The message just reminder us that

we can adjust the values to achieve better performance.

Quoted 1 line

I saw ixgbe and i40e also use 0 as the same default value. To my

opinion, it's good to keep the same behavior.

Quoted 1 line

Thanks.

In my opnion, no application should have to make special case setup for each device type. Having to have a table that lists all the parameters
for each device name is not supportable or scaleable.

Quoted 7 lines
Quoted 5 lines

The DPDK started out as "lets do benchmarks fast" but as a production toolkit it needs to stop having this kind of thing.

The message shows up to the end-user, who thinks it is a driver bug. The "us" is now real customers not DPDK developers.

+1 to have better default values and less scary messages.

+1 I agree we should have default values. The scary message is for debugging only in the best of cases and just wrong for the normal case.

Quoted 1 line
#5 lore raw

Hi,

Quoted 30 lines

-----Original Message-----
From: Wiles, Keith
Sent: Friday, July 17, 2015 7:06 PM
To: Thomas Monjalon; Stephen Hemminger; Lu, Wenzhuo
Cc: [email protected]
Subject: Re: [dpdk-dev] igb PMD should set the default tx wthresh correctly.

Quoted 18 lines · dev on behalf of Thomas Monjalon

2015-07-16 19:49, Stephen Hemminger:

Quoted 17 lines
Quoted 2 lines · Wenzhuo

Hi Stephen,
I don't think there's a conflict. The message just reminder us that

we can adjust the values to achieve better performance.

Quoted 1 line

I saw ixgbe and i40e also use 0 as the same default value. To my

opinion, it's good to keep the same behavior.

Quoted 1 line

Thanks.

In my opnion, no application should have to make special case setup for each device type. Having to have a table that lists all the parameters for each device name is not supportable or scaleable.

The DPDK started out as "lets do benchmarks fast" but as a production toolkit it needs to stop having this kind of thing.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The message shows up to the end-user, who thinks it is a driver bug. The "us" is now real customers not DPDK developers.

+1 to have better default values and less scary messages.

+1 I agree we should have default values. The scary message is for debugging only in the best of cases and just wrong for the normal case.

After checking the code, igb and ixgbe/i40e's behavior is different for tx_rs_thresh and tx wthresh, so now I think it's no necessary to let them have the same default value. Agree that we shall remove the message or set an appropriate value for tx wthresh.

Quoted 1 line
Quoted 1 line