diff options
author | Jim Warner <james.warner@comcast.net> | 2020-06-26 00:00:00 -0500 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2020-06-29 21:13:40 +1000 |
commit | 81f4a6acdf204c5c898fa707e285cdbd2389150e (patch) | |
tree | 88b6bd8c5b151bae7e1fe95d3c1057317b811935 | |
parent | 3df74e7f3c3ea8d801d78cea04bf9bf4717331b7 (diff) | |
download | procps-ng-81f4a6acdf204c5c898fa707e285cdbd2389150e.tar.gz |
library: raise amount by which the <stat> buffer grows
We won't go as far as the merge request shown below in
increasing buffer size, but we will reduce by half the
total iterations while growing it to achieve one read.
[ and this seems in line with what was recently done ]
[ to help top under a massively parallel environment ]
[ thru 2 abreast ('4') and combined cpus ('!') modes ]
Reference(s:
https://gitlab.com/procps-ng/procps/-/merge_requests/105
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r-- | proc/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proc/stat.c b/proc/stat.c index d889f55..93b23bf 100644 --- a/proc/stat.c +++ b/proc/stat.c @@ -35,9 +35,9 @@ #define STAT_FILE "/proc/stat" -#define BUFFER_INCR 4096 // amount i/p buffer allocations grow -#define STACKS_INCR 32 // amount reap stack allocations grow -#define NEWOLD_INCR 32 // amount jiffs hist allocations grow +#define BUFFER_INCR 8192 // amount i/p buffer allocations grow +#define STACKS_INCR 64 // amount reap stack allocations grow +#define NEWOLD_INCR 64 // amount jiffs hist allocations grow /* ------------------------------------------------------------------------- + because 'reap' would be forced to duplicate the global SYS stuff in every | |