• jim warner's avatar
    top: provide -E command line switch for memory scaling · fb48b5d9
    jim warner authored
    In their 3.2.7 version of top, Redhat introduced an -M
    switch to automatically scale Summary Area memory data
    to avoid truncation (and the resulting '+' indicator).
    
    The procps-ng top does not employ suffixes with memory
    data nor does it allow for different scaling with each
    separate value. Rather, scaling appears at line start.
    
    If built without ./configure --disable-modern-top, the
    Summary Area memory will be scaled at GiB which should
    lessen chance of truncation. Otherwise KiB was used to
    reflect such memory, increasing the truncation chance.
    
    And while 'W' can be used to preserve some appropriate
    scaling value, there are arguments against such rcfile
    approaches as cited in the issue and bug report below.
    
    So this commit will bump the Summary Area memory scale
    factor from KiB to MiB when using --disable-modern-top
    as a concession to that Redhat bug report noted below.
    
    And it also introduces a new command line switch which
    can force any desired scaling regardless of the rcfile
    or which ./configure option might have been specified.
    
    [ for top's help text we'll show 'E' as if it were a ]
    [ switch without arguments in order to keep the help ]
    [ text displayable without wrap in an 80x24 terminal ]
    
    [ the man page, however, will show all k-e arguments ]
    
    Reference(s):
    #53
    https://bugzilla.redhat.com/show_bug.cgi?id=1034466Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    fb48b5d9
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
include Loading commit data...
lib Loading commit data...
man-po Loading commit data...
misc Loading commit data...
po Loading commit data...
proc Loading commit data...
ps Loading commit data...
testsuite Loading commit data...
top Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
ChangeLog Loading commit data...
INSTALL.md Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
create-man-pot.sh Loading commit data...
free.1 Loading commit data...
free.c Loading commit data...
kill.1 Loading commit data...
pgrep.1 Loading commit data...
pgrep.c Loading commit data...
pidof.1 Loading commit data...
pidof.c Loading commit data...
pkill.1 Loading commit data...
pmap.1 Loading commit data...
pmap.c Loading commit data...
pwdx.1 Loading commit data...
pwdx.c Loading commit data...
skill.1 Loading commit data...
skill.c Loading commit data...
slabtop.1 Loading commit data...
slabtop.c Loading commit data...
snice.1 Loading commit data...
sysctl.8 Loading commit data...
sysctl.c Loading commit data...
sysctl.conf Loading commit data...
sysctl.conf.5 Loading commit data...
tload.1 Loading commit data...
tload.c Loading commit data...
translate-man.sh Loading commit data...
uptime.1 Loading commit data...
uptime.c Loading commit data...
vmstat.8 Loading commit data...
vmstat.c Loading commit data...
w.1 Loading commit data...
w.c Loading commit data...
watch.1 Loading commit data...
watch.c Loading commit data...