summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2016-12-31 00:00:00 -0600
committerCraig Small <csmall@enc.com.au>2017-01-05 06:48:38 +1100
commitea930f6f9e6e2a6feeed71610849b27d68854e51 (patch)
tree513aa76f1d8d5a56b6f9abdd8580a3378aa5c99f /Makefile.am
parent282ee362f0e1754604633db5e791266912d7b3ce (diff)
downloadprocps-ng-ea930f6f9e6e2a6feeed71610849b27d68854e51.tar.gz
library <stat>: input file buffer size must be dynamic
Since its introduction, our evolved /proc/stat API has relied on a static buffer of 8192 bytes. This approach is probably Ok for other /proc files but it would only accommodate around 100 processors. If such a threshold were exceeded then this interface could never succeed. Now days 100 processors doesn't seem at all excessive. So this commit trades that static buffer for a dynamic self-tuning one. And since so much former top CPU code was already rolled into this module, we just stole the already proven top dynamic buffer management code too. [ this also meant switching low level unbuffered I/O ] [ calls to standard library buffered I/O calls. that ] [ is exactly what <slabinfo> and <diskstats> employ. ] Reference(s): . 1st gen readstat introduction commit a410e236abb47c7c43194e61d0566686f81513af Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions