diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-10 22:26:42 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-10 22:26:42 +0200 |
commit | 7ebae5df505c81dcfe61fbe86f2af38adf5b52b0 (patch) | |
tree | 1c40e87eea63eb2db2cbcc67cf2e6824cd6e46db | |
parent | 59b7a4e868188f2fe7cbbf303da0fb826b78cc8e (diff) |
ifpps: Reduce default number of top hitter CPUs to 5
Since we now also display the average (and in the future possibly also
the standard deviation), reduce the default number of CPUs displayed to
5, to keep terminal space usage low.
Suggested-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | ifpps.8 | 2 | ||||
-rw-r--r-- | ifpps.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -36,7 +36,7 @@ statistics, which are also fairly reliable under high packet load. .PP ifpps also periodically displays CPU load, interrupt, software interrupt data per sample interval as well as total interrupts, all per CPU. In case -the number of CPUs exceeds 10 or the number specified by the user with the +the number of CPUs exceeds 5 or the number specified by the user with the \[lq]\-n\[rq] command line option, ifpps will only display this number top heavy hitters. The topmost heavy hitter CPU will be marked with \[lq]+\[rq]. The least heavy hitter will always be displayed and is marked with @@ -112,7 +112,7 @@ static void __noreturn help(void) " -d|--dev <netdev> Device to fetch statistics for e.g., eth0\n" " -t|--interval <time> Refresh time in ms (default 1000 ms)\n" " -n|--num-cpus <num> Number of top hitter CPUs to display\n" - " in ncurses mode (default 10)\n" + " in ncurses mode (default 5)\n" " -p|--promisc Promiscuous mode\n" " -c|--csv Output to terminal as Gnuplot-ready data\n" " -l|--loop Continuous CSV output\n" @@ -1160,7 +1160,7 @@ int main(int argc, char **argv) { short ifflags = 0; int c, opt_index, ret, cpus, promisc = 0; - unsigned int top_cpus = 10; + unsigned int top_cpus = 5; uint64_t interval = 1000; char *ifname = NULL; int (*func_main)(const char *ifname, uint64_t ms_interval, |