I should add that after the pager limit is exceeded, it simply disables the pager (if that does not work and it eats the output, please let me know!)
This is to limit memory consumption more than anything since it has to keep all the CLI output in memory to be able to paginate it. 100K lines was thought a reasonable default limit for this – at 80 characters per line this would be about 8MB+overhead and thus doesn’t put too much pressure on the heap. I would recommend you use vppctl and send the output to a file, or pipe to less, if you really do generate that much output. Chris. From: [email protected] [mailto:[email protected]] On Behalf Of Chris Luke Sent: Thursday, September 06, 2018 9:18 AM To: siddarth rai <[email protected]>; [email protected] Subject: Re: [EXTERNAL] [vpp-dev] Pager Buffer limit Siddarth, A quick Google reveals these resources in the first three responses that may answer your question: · https://docs.fd.io/vpp/16.12/clicmd_vlib_vlib_unix_cli_c.html#clicmd_set_terminal_pager · https://wiki.fd.io/view/VPP/Command-line_Arguments#.22unix.22_parameters · https://docs.fd.io/vpp/16.12/syscfg_vlib_vlib_unix.html Chris. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of siddarth rai Sent: Thursday, September 06, 2018 7:07 AM To: [email protected]<mailto:[email protected]> Subject: [EXTERNAL] [vpp-dev] Pager Buffer limit Hi, I am working on creating a VPP cli which dumps a lot of info. Is there any limitation to the number of lines we can print in a paged format using vlib_cli_output ? I am not able to print more than 100K lines. Beyond that i get the error "-- pager buffer overflowed --" . Also, how do I modify this limit ? Thanks & Regards, Siddarth
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10411): https://lists.fd.io/g/vpp-dev/message/10411 Mute This Topic: https://lists.fd.io/mt/25237454/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
