All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tc-tbf.8: Add parameter range to man page.
@ 2012-08-07  2:30 Li Wei
  2012-08-13 15:30 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Li Wei @ 2012-08-07  2:30 UTC (permalink / raw)
  To: shemminger; +Cc: netdev, Li Wei

Signed-off-by: Li Wei <lw@cn.fujitsu.com>
---
 man/man8/tc-tbf.8 |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/man/man8/tc-tbf.8 b/man/man8/tc-tbf.8
index 3abb238..7b76146 100644
--- a/man/man8/tc-tbf.8
+++ b/man/man8/tc-tbf.8
@@ -76,6 +76,7 @@ latency parameter, which specifies the maximum amount of time a packet can
 sit in the TBF. The latter calculation takes into account the size of the
 bucket, the rate and possibly the peakrate (if set). These two parameters
 are mutually exclusive. 
+The range of parameter limit is [1, UINT32_MAX] bytes.
 .TP
 burst
 Also known as buffer or maxburst.
@@ -85,6 +86,7 @@ if you want to reach your configured rate!
 
 If your buffer is too small, packets may be dropped because more tokens arrive per timer tick than fit in your bucket.
 The minimum buffer size can be calculated by dividing the rate by HZ.
+The range of this parameter is [1, UINT32_MAX] bytes.
 
 Token usage calculations are performed using a table which by default has a resolution of 8 packets. 
 This resolution can be changed by specifying the 
@@ -96,11 +98,13 @@ this. Must be an integral power of 2.
 mpu
 A zero-sized packet does not use zero bandwidth. For ethernet, no packet uses less than 64 bytes. The Minimum Packet Unit 
 determines the minimal token usage (specified in bytes) for a packet. Defaults to zero.
+The range of this parameter is [0, UINT32_MAX] bytes.
 .TP
 rate
 The speed knob. See remarks above about limits! See 
 .BR tc (8)
 for units.
+The range of this parameter is [1, UINT32_MAX] bps.
 .PP
 Furthermore, if a peakrate is desired, the following parameters are available:
 
@@ -108,12 +112,14 @@ Furthermore, if a peakrate is desired, the following parameters are available:
 peakrate
 Maximum depletion rate of the bucket. Limited to 1mbit/s on Intel, 10mbit/s on Alpha. The peakrate does 
 not need to be set, it is only necessary if perfect millisecond timescale shaping is required.
+The range of this parameter is [1, UINT32_MAX] bps.
 
 .TP
 mtu/minburst
 Specifies the size of the peakrate bucket. For perfect accuracy, should be set to the MTU of the interface.
 If a peakrate is needed, but some burstiness is acceptable, this size can be raised. A 3000 byte minburst
 allows around 3mbit/s of peakrate, given 1000 byte packets.
+The range of this parameter is [1, UINT32_MAX] bytes.
 
 Like the regular burstsize you can also specify a 
 .B cell
-- 
1.7.10.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] tc-tbf.8: Add parameter range to man page.
  2012-08-07  2:30 [PATCH] tc-tbf.8: Add parameter range to man page Li Wei
@ 2012-08-13 15:30 ` Stephen Hemminger
  2012-08-20  6:36   ` Li Wei
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2012-08-13 15:30 UTC (permalink / raw)
  To: Li Wei; +Cc: netdev

On Tue, 7 Aug 2012 10:30:32 +0800
Li Wei <lw@cn.fujitsu.com> wrote:

> Signed-off-by: Li Wei <lw@cn.fujitsu.com>
> ---
>  man/man8/tc-tbf.8 |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/man/man8/tc-tbf.8 b/man/man8/tc-tbf.8
> index 3abb238..7b76146 100644
> --- a/man/man8/tc-tbf.8
> +++ b/man/man8/tc-tbf.8
> @@ -76,6 +76,7 @@ latency parameter, which specifies the maximum amount of time a packet can
>  sit in the TBF. The latter calculation takes into account the size of the
>  bucket, the rate and possibly the peakrate (if set). These two parameters
>  are mutually exclusive. 
> +The range of parameter limit is [1, UINT32_MAX] bytes.
>  .TP
>  burst
>  Also known as buffer or maxburst.
> @@ -85,6 +86,7 @@ if you want to reach your configured rate!
>  
>  If your buffer is too small, packets may be dropped because more tokens arrive per timer tick than fit in your bucket.
>  The minimum buffer size can be calculated by dividing the rate by HZ.
> +The range of this parameter is [1, UINT32_MAX] bytes.
>  
>  Token usage calculations are performed using a table which by default has a resolution of 8 packets. 
>  This resolution can be changed by specifying the 
> @@ -96,11 +98,13 @@ this. Must be an integral power of 2.
>  mpu
>  A zero-sized packet does not use zero bandwidth. For ethernet, no packet uses less than 64 bytes. The Minimum Packet Unit 
>  determines the minimal token usage (specified in bytes) for a packet. Defaults to zero.
> +The range of this parameter is [0, UINT32_MAX] bytes.
>  .TP
>  rate
>  The speed knob. See remarks above about limits! See 
>  .BR tc (8)
>  for units.
> +The range of this parameter is [1, UINT32_MAX] bps.
>  .PP
>  Furthermore, if a peakrate is desired, the following parameters are available:
>  
> @@ -108,12 +112,14 @@ Furthermore, if a peakrate is desired, the following parameters are available:
>  peakrate
>  Maximum depletion rate of the bucket. Limited to 1mbit/s on Intel, 10mbit/s on Alpha. The peakrate does 
>  not need to be set, it is only necessary if perfect millisecond timescale shaping is required.
> +The range of this parameter is [1, UINT32_MAX] bps.
>  
>  .TP
>  mtu/minburst
>  Specifies the size of the peakrate bucket. For perfect accuracy, should be set to the MTU of the interface.
>  If a peakrate is needed, but some burstiness is acceptable, this size can be raised. A 3000 byte minburst
>  allows around 3mbit/s of peakrate, given 1000 byte packets.
> +The range of this parameter is [1, UINT32_MAX] bytes.
>  
>  Like the regular burstsize you can also specify a 
>  .B cell

Not sure about this, other qdisc don't document ranges on their man pages.
Probably better to fix the generic documentation about qdisc parameters
which already exists on 'tc-qdisc' man page.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tc-tbf.8: Add parameter range to man page.
  2012-08-13 15:30 ` Stephen Hemminger
@ 2012-08-20  6:36   ` Li Wei
  2012-08-20 17:58     ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Li Wei @ 2012-08-20  6:36 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On 08/13/2012 11:30 PM, Stephen Hemminger wrote:
> On Tue, 7 Aug 2012 10:30:32 +0800
> Li Wei <lw@cn.fujitsu.com> wrote:
> 
>> Signed-off-by: Li Wei <lw@cn.fujitsu.com>
>> ---
>>  man/man8/tc-tbf.8 |    6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>> diff --git a/man/man8/tc-tbf.8 b/man/man8/tc-tbf.8
>> index 3abb238..7b76146 100644
>> --- a/man/man8/tc-tbf.8
>> +++ b/man/man8/tc-tbf.8
>> @@ -76,6 +76,7 @@ latency parameter, which specifies the maximum amount of time a packet can
>>  sit in the TBF. The latter calculation takes into account the size of the
>>  bucket, the rate and possibly the peakrate (if set). These two parameters
>>  are mutually exclusive. 
>> +The range of parameter limit is [1, UINT32_MAX] bytes.
>>  .TP
>>  burst
>>  Also known as buffer or maxburst.
>> @@ -85,6 +86,7 @@ if you want to reach your configured rate!
>>  
>>  If your buffer is too small, packets may be dropped because more tokens arrive per timer tick than fit in your bucket.
>>  The minimum buffer size can be calculated by dividing the rate by HZ.
>> +The range of this parameter is [1, UINT32_MAX] bytes.
>>  
>>  Token usage calculations are performed using a table which by default has a resolution of 8 packets. 
>>  This resolution can be changed by specifying the 
>> @@ -96,11 +98,13 @@ this. Must be an integral power of 2.
>>  mpu
>>  A zero-sized packet does not use zero bandwidth. For ethernet, no packet uses less than 64 bytes. The Minimum Packet Unit 
>>  determines the minimal token usage (specified in bytes) for a packet. Defaults to zero.
>> +The range of this parameter is [0, UINT32_MAX] bytes.
>>  .TP
>>  rate
>>  The speed knob. See remarks above about limits! See 
>>  .BR tc (8)
>>  for units.
>> +The range of this parameter is [1, UINT32_MAX] bps.
>>  .PP
>>  Furthermore, if a peakrate is desired, the following parameters are available:
>>  
>> @@ -108,12 +112,14 @@ Furthermore, if a peakrate is desired, the following parameters are available:
>>  peakrate
>>  Maximum depletion rate of the bucket. Limited to 1mbit/s on Intel, 10mbit/s on Alpha. The peakrate does 
>>  not need to be set, it is only necessary if perfect millisecond timescale shaping is required.
>> +The range of this parameter is [1, UINT32_MAX] bps.
>>  
>>  .TP
>>  mtu/minburst
>>  Specifies the size of the peakrate bucket. For perfect accuracy, should be set to the MTU of the interface.
>>  If a peakrate is needed, but some burstiness is acceptable, this size can be raised. A 3000 byte minburst
>>  allows around 3mbit/s of peakrate, given 1000 byte packets.
>> +The range of this parameter is [1, UINT32_MAX] bytes.
>>  
>>  Like the regular burstsize you can also specify a 
>>  .B cell
> 
> Not sure about this, other qdisc don't document ranges on their man pages.
> Probably better to fix the generic documentation about qdisc parameters
> which already exists on 'tc-qdisc' man page.

Hi Stephen,

Not very clear with "the generic documentation about qdisc parameters
which already exists on 'tc-qdisc' man page", is there a separate man page
that describe qdisc parameters?

I'm reading the iproute2 and kernel code which related to TC and record the
value range for each parameter, I think that would be helpful for somebody
else.

Thanks.

> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tc-tbf.8: Add parameter range to man page.
  2012-08-20  6:36   ` Li Wei
@ 2012-08-20 17:58     ` Stephen Hemminger
  2012-08-21  0:48       ` Li Wei
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Hemminger @ 2012-08-20 17:58 UTC (permalink / raw)
  To: Li Wei; +Cc: netdev


> 
> Not very clear with "the generic documentation about qdisc parameters
> which already exists on 'tc-qdisc' man page", is there a separate man page
> that describe qdisc parameters?
> 
> I'm reading the iproute2 and kernel code which related to TC and record the
> value range for each parameter, I think that would be helpful for somebody
> else.
> 

Rather than putting range on each parameter on every sub-page of tc man
page. Why not put something in tc.8 under UNITS.

The following implies everything is floating-point which it isn't:

UNITS
       All parameters accept a floating point number, possibly followed  by  a
       unit.

I would like this section broken down to cover all the generic types
  PARAMETERS
     RATES
     TIMES
     SIZES
     VALUES

Also needs to explain IEC units here.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tc-tbf.8: Add parameter range to man page.
  2012-08-20 17:58     ` Stephen Hemminger
@ 2012-08-21  0:48       ` Li Wei
  0 siblings, 0 replies; 5+ messages in thread
From: Li Wei @ 2012-08-21  0:48 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On 08/21/2012 01:58 AM, Stephen Hemminger wrote:
> 
>>
>> Not very clear with "the generic documentation about qdisc parameters
>> which already exists on 'tc-qdisc' man page", is there a separate man page
>> that describe qdisc parameters?
>>
>> I'm reading the iproute2 and kernel code which related to TC and record the
>> value range for each parameter, I think that would be helpful for somebody
>> else.
>>
> 
> Rather than putting range on each parameter on every sub-page of tc man
> page. Why not put something in tc.8 under UNITS.
> 
> The following implies everything is floating-point which it isn't:
> 
> UNITS
>        All parameters accept a floating point number, possibly followed  by  a
>        unit.
> 
> I would like this section broken down to cover all the generic types
>   PARAMETERS
>      RATES
>      TIMES
>      SIZES
>      VALUES
> 
> Also needs to explain IEC units here.
> 
> 
>

Thanks Stephen, I got it and will try to work it out.
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-21  0:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07  2:30 [PATCH] tc-tbf.8: Add parameter range to man page Li Wei
2012-08-13 15:30 ` Stephen Hemminger
2012-08-20  6:36   ` Li Wei
2012-08-20 17:58     ` Stephen Hemminger
2012-08-21  0:48       ` Li Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.