Cygwin 32 procps-ng procps values incorrect

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Sat Sep 25 17:05:10 GMT 2021


Hi Achim,

Running builds and bumping them in priority looks okay on current 
procps-ng procps under current Cygwin 64, sanitized as in attached which 
was limited to COLUMNS=120, also spaces squished and output truncated 
for examples below:

F S UID     PID  PPID C PRI  NI ADDR SZ WCHAN STIME TTY      TIME CMD
0 S $USER 11102 11101 0  80   0 -   137 -     Sep19 pty0 00:00:33 -bash
0 S $USER  5891 11102 0  80   0 -   123 -     08:23 pty0 00:00:00  /_
...
0 S $USER 13448 12388 0  72  -8 -    92 -     08:37 pty0 00:00:24  |
0 S $USER 53596 13448 5  72  -8 -    91 -     10:14 pty0 00:00:00  |
...

but current procps-ng procps under current Cygwin 32 with the equivalent 
process priority bumps gives apparently incorrect %Cpu, PRIority, NIce, 
and STIME values:

F S UID     PID  PPID C PRI  NI ADDR SZ WCHAN STIME TTY      TIME CMD
0 S $USER  1975  1974 0 2278  0 -   103 -     Sep14 pty0 00:00:01 -bash
0 S $USER  5266  1975 0 778   0 -   105 -     Sep14 pty0 00:00:00  /_
...
0 S $USER 12724 11665 0 23622 0 -    81 -     Sep14 pty0 00:00:03  |
0 S $USER 40148 12724 0  60   0 -    75 -     Sep14 pty0 00:00:00  |
...

as the sessions are running identical workloads, and the latter was 
started at earliest yesterday, the builds today.
I have never managed to catch %Cpu != 0 even though I see that 
frequently during builds under Cygwin 64.

Also procps -l without -f does not right align PID and PPID columns 
correctly on either arch, or I would have used that instead.

Could you please have a look at this if you get some free time.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
-------------- next part --------------
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
0 S $USER     1975  1974  0 2278  0 -   103 -      Sep14 pty0     00:00:01 -bash
0 S $USER     5266  1975  0 778   0 -   105 -      Sep14 pty0     00:00:00  /_ /bin/bash /usr/bin/cygport bison.cygport 
0 S $USER    11494  5266  0 185   0 -    67 -      Sep14 pty0     00:00:00  |   /_ tee -a $HOME/src/cygwin/bison/bis
0 S $USER    11493  5266  0 106   0 -   101 -      Sep14 pty0     00:00:00  |   /_ /bin/bash /usr/bin/cygport bison.cygp
0 S $USER    11602 11493  0 794   0 -   150 -      Sep14 pty0     00:00:00  |       /_ make -k check
0 S $USER    11613 11602  0 606   0 -   147 -      Sep14 pty0     00:00:00  |           /_ make check-recursive
0 S $USER    11623 11613  0  91   0 -    66 -      Sep14 pty0     00:00:00  |               /_ /bin/sh -c fail=; / if (t
0 S $USER    11631 11623  0 1528  0 -   179 -      Sep14 pty0     00:00:00  |                   /_ make check-am
0 S $USER    11665 11631  0 1200  0 -   172 -      Sep14 pty0     00:00:00  |                       /_ make check-TESTS 
0 S $USER    12724 11665  0 23622 0 -    81 -      Sep14 pty0     00:00:03  |                           /_ /bin/sh /...
0 S $USER    40148 12724  0  60   0 -    75 -      Sep14 pty0     00:00:00  |                               /_ /bin/sh /
0 S $USER    40150 40148  0  91   0 -    66 -      Sep14 pty0     00:00:00  |                               |   /_ cat
0 S $USER    40147 12724  0 341   0 -    75 -      Sep14 pty0     00:00:00  |                               /_ /bin/sh /
0 R $USER    40200  1975  0 200   0 -   101 -      Sep14 pty0     00:00:00  /_ /bin/procps -fl --forest
-------------- next part --------------
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
0 S $USER    11102 11101  0  80   0 -   137 -      Sep19 pty0     00:00:33 -bash
0 S $USER     5891 11102  0  80   0 -   123 -      08:23 pty0     00:00:00  /_ /bin/bash /usr/bin/cygport bison.cygport 
0 S $USER    12216  5891  0  80   0 -   120 -      08:35 pty0     00:00:00  |   /_ /bin/bash /usr/bin/cygport bison.cygp
0 S $USER    12325 12216  0  80   0 -   167 -      08:36 pty0     00:00:00  |   |   /_ make -k check
0 S $USER    12336 12325  0  80   0 -   163 -      08:36 pty0     00:00:00  |   |       /_ make check-recursive
0 S $USER    12346 12336  0  80   0 -    77 -      08:36 pty0     00:00:00  |   |           /_ /bin/sh -c fail=; / if (t
0 S $USER    12354 12346  0  80   0 -   204 -      08:36 pty0     00:00:01  |   |               /_ make check-am
0 S $USER    12388 12354  0  80   0 -   192 -      08:36 pty0     00:00:01  |   |                   /_ make check-TESTS 
0 S $USER    13448 12388  0  72  -8 -    92 -      08:37 pty0     00:00:24  |   |                       /_ /bin/sh /...
0 S $USER    53596 13448  5  72  -8 -    91 -      10:14 pty0     00:00:00  |   |                           /_ /bin/sh /
0 Z $USER    53771 53596  0  72  -8 -     0 -      10:15 pty0     00:00:00  |   |                           |   /_ [sed]
0 S $USER    53597 13448  0  72  -8 -    91 -      10:14 pty0     00:00:00  |   |                           /_ /bin/sh /
0 S $USER    53599 53597  0  72  -8 -    80 -      10:14 pty0     00:00:00  |   |                               /_ cat
0 S $USER    12217  5891  0  80   0 -    79 -      08:35 pty0     00:00:00  |   /_ tee -a /...
0 R $USER    53768 11102  0  80   0 -   100 -      10:15 pty0     00:00:01  /_ /bin/procps -fl --forest


More information about the Cygwin mailing list