Michal Privoznik
f3b422d9cc
docs: Clarify 'burst' units for QoS
...
The burst attribute for bandwidth specifies how much bytes can be
transmitted in a single burst. Therefore, the unit is in
multiples of 1024 (thus kibibytes) not SI-like 1000. It has
always been like that.
The 'tc' output is still confusing though, for instance:
# tc class add dev $DEV parent 1: classid 1:1 htb rate 1000kbps burst 2097152
# tc class show dev vnet2
class htb 1:1 root rate 8Mbit ceil 8Mbit burst 2Mb cburst 1600b
Please note that 2097152 = 2*1024*1024. Even the man page is
confusing. From tc(8):
kb or k Kilobytes
mb or m Megabytes
But I guess this is because 'tc' predates IEC standardisation of
binary multiples and thus can't change without breaking scripts
parsing its output.
And while at it, adjust _virNetDevBandwidthRate struct member
description, to make it obvious which members use SI/IEC units.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2022-01-04 16:40:10 +01:00
..
2022-01-04 15:47:28 +01:00
2022-01-04 15:47:28 +01:00
2021-10-12 16:46:45 +02:00
2021-08-10 16:33:07 +02:00
2020-08-03 09:27:06 +02:00
2022-01-04 15:47:25 +01:00
2022-01-04 15:47:25 +01:00
2020-08-03 09:27:06 +02:00
2021-10-01 11:05:12 +02:00
2020-10-05 10:28:37 +01:00
2021-12-17 13:21:48 +01:00
2021-12-21 13:23:09 +01:00
2017-10-16 10:22:34 +01:00
2020-09-01 21:58:46 +02:00
2021-03-15 17:31:35 +01:00
2021-04-13 17:00:38 +02:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2021-04-13 17:00:38 +02:00
2022-01-04 15:47:25 +01:00
2017-08-02 17:00:11 +01:00
2021-03-15 17:31:35 +01:00
2021-03-15 17:31:57 +01:00
2021-03-23 17:55:06 +01:00
2020-09-01 21:58:46 +02:00
2021-12-09 12:16:17 +01:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2021-02-10 13:37:12 +01:00
2021-06-09 14:48:40 +01:00
2021-04-13 17:00:38 +02:00
2020-08-03 09:27:09 +02:00
2021-03-16 10:49:33 +01:00
2020-09-01 21:58:46 +02:00
2021-06-15 12:14:52 +02:00
2020-09-01 21:58:46 +02:00
2021-12-24 10:47:44 +01:00
2020-06-03 13:38:33 +02:00
2020-04-08 09:32:35 +02:00
2018-03-21 14:48:01 +00:00
2021-12-09 12:16:17 +01:00
2021-11-17 17:45:55 +01:00
2021-06-04 10:56:06 +01:00
2020-10-12 15:26:00 +04:00
2021-06-04 10:56:06 +01:00
2020-10-05 10:28:37 +01:00
2020-11-09 15:26:02 +00:00
2021-03-12 10:52:41 +01:00
2021-10-21 17:34:04 +01:00
2020-09-01 21:58:46 +02:00
2021-05-03 12:14:44 +02:00
2017-08-02 17:00:11 +01:00
2020-01-27 17:36:05 +01:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2021-03-24 14:24:55 +03:00
2020-09-01 21:58:46 +02:00
2021-03-12 10:52:51 +01:00
2018-05-03 12:40:37 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2020-11-04 17:21:45 +01:00
2020-10-05 10:28:37 +01:00
2020-12-08 15:12:34 +01:00
2021-09-15 17:00:19 +02:00
2020-12-04 16:15:03 +01:00
2021-12-17 13:18:54 +01:00
2021-12-14 16:04:17 +00:00
2022-01-04 16:40:10 +01:00
2021-04-01 13:32:25 +02:00
2021-10-21 17:34:04 +01:00
2020-11-04 17:21:45 +01:00
2020-01-28 18:10:36 +01:00
2021-01-08 15:27:00 +01:00
2021-12-21 13:23:09 +01:00
2020-12-02 16:15:43 +01:00
2021-11-09 14:42:23 +01:00
2020-10-02 14:10:44 +02:00
2022-01-04 15:47:25 +01:00
2019-01-25 14:04:20 +01:00
2020-10-02 14:10:40 +02:00
2020-10-05 10:28:37 +01:00
2021-02-03 16:33:18 +00:00
2022-01-04 15:47:25 +01:00
2020-09-01 21:58:46 +02:00
2021-06-07 17:04:14 +01:00
2021-06-07 17:04:14 +01:00
2020-09-01 21:58:46 +02:00
2017-08-02 15:00:28 -04:00
2022-01-04 15:47:27 +01:00
2022-01-04 15:47:25 +01:00
2017-08-02 17:00:11 +01:00
2021-09-15 08:37:40 +02:00
2020-06-11 12:03:41 +02:00
2020-09-01 21:58:46 +02:00
2022-01-04 15:47:27 +01:00
2021-04-15 15:42:21 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2021-04-12 16:09:41 +02:00
2020-11-12 15:01:42 +01:00
2020-04-20 14:06:25 +01:00
2021-11-12 12:37:29 +01:00
2020-10-05 10:28:37 +01:00
2020-08-04 17:06:33 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-05-11 13:55:27 +02:00
2020-10-09 09:12:39 +02:00
2020-08-04 17:06:33 +01:00
2018-05-03 12:40:37 +01:00
2020-06-03 13:38:33 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2021-02-16 08:35:09 +01:00
2021-02-05 16:02:22 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00