From f5b4c6111b91c978fe739fee6729ebd1b93fe865 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Thu, 25 Jul 2019 22:41:20 +0800 Subject: [PATCH] Update tools/README.md for traffic. --- tools/README.md | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/tools/README.md b/tools/README.md index 72337d7c7..2ee3a6701 100644 --- a/tools/README.md +++ b/tools/README.md @@ -102,7 +102,7 @@ For more details, see [Manual page](https://www.freebsd.org/cgi/man.cgi?route). # top Usage: ``` -top [-p ] [-P ] [-d ] [-n num] +top [-p ] [-P ] [-d ] [-n ] ``` Examples: ``` @@ -234,29 +234,33 @@ For more details, see [Manual page](https://www.freebsd.org/cgi/man.cgi?arp). # traffic Usage: ``` -traffic [-p ] [-d ] [-n num] +traffic [-p ] [-P ] [-d ] [-n ] ``` Examples: ``` -./sbin/traffic +./sbin/traffic -p 0 -P 3 -|--------------------|--------------------|--------------------|--------------------| -| rx packets| rx bytes| tx packets| tx bytes| -|--------------------|--------------------|--------------------|--------------------| -| 0| 0| 0| 0| -| 298017| 30590860| 590912| 230712836| -| 475808| 49008224| 951616| 372081856| -| 474720| 48896160| 949440| 371231040| -| 475296| 48955488| 950592| 371681472| -| 475040| 48929120| 950080| 371481280| -| 474368| 48859904| 948736| 370955776| -| 475616| 48988448| 951232| 371931712| -| 475552| 48981856| 951104| 371881664| -| 476128| 49041184| 952256| 372332096| -| 475680| 48995040| 951360| 371981760| -| 475552| 48981856| 951104| 371881664| -| 475488| 48975264| 950976| 371831616| -| 473440| 48764320| 946880| 370230080| +|---------|--------------------|--------------------|--------------------|--------------------| +| proc_id| rx packets| rx bytes| tx packets| tx bytes| +|---------|--------------------|--------------------|--------------------|--------------------| +| 0| 39594| 3721836| 79218| 30945013| +| 1| 43427| 4082138| 86860| 33918830| +| 2| 37708| 3544552| 75448| 29462444| +| 3| 41306| 3882764| 82598| 32254519| +| total| 162035| 15231290| 324124| 126580806| +| | | | | | +| 0| 40849| 3839831| 81686| 31898383| +| 1| 44526| 4185444| 89056| 34776368| +| 2| 38491| 3618154| 76974| 30058347| +| 3| 41631| 3913314| 83244| 32506782| +| total| 165497| 15556743| 330960| 129239880| +| | | | | | +| 0| 41136| 3866750| 82268| 32125654| +| 1| 42184| 3965296| 84372| 32947266| +| 2| 39182| 3683108| 78358| 30598799| +| 3| 41458| 3897052| 82926| 32382603| +| total| 163960| 15412206| 327924| 128054322| +| | | | | | ``` # how to implement a custom tool for communicating with F-Stack process