Artificial intelligent assistant

Why does "slabtop -o" only return the first 23 lines when the command is piped? I was trying to parse the output of `slabtop -o` with awk to compute the sum of the cache size, but when the output is piped it only returns the first 23 lines. I tried this on Ubuntu and Centos. # slabtop --version slabtop from procps-ng 3.3.10 # slabtop -o | wc -l 23 Why does it only return the first 23 lines when the command is piped ?

`slabtop`, even with `-o`, always limits itself to one screenful of output. It normally does so by asking the terminal what its size is, but when its standard output isn’t a terminal, it assumes that the screen is 80 columns by 24 rows and only outputs 23 rows (to avoid any scrolling).

This since has been fixed, and the fix is present in `procps-ng` 3.3.13 and later.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 2d7f599801097f5c417dbd8509a131eb