From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Cygwin 32 procps-ng procps values incorrect
Date: Sat, 25 Sep 2021 11:05:10 -0600 [thread overview]
Message-ID: <2a705413-8e87-0bf4-df55-55ea797c9158@SystematicSw.ab.ca> (raw)
In-Reply-To: <announce.87a6rytrz8.fsf@Rainer.invalid>
[-- Attachment #1: Type: text/plain, Size: 1793 bytes --]
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.]
[-- Attachment #2: procps-ng-32.log --]
[-- Type: text/plain, Size: 1672 bytes --]
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
[-- Attachment #3: procps-ng-64.log --]
[-- Type: text/plain, Size: 1771 bytes --]
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
prev parent reply other threads:[~2021-09-25 17:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-20 20:16 [ANNOUNCEMENT] Updated: procps-ng 3.3.17-1 Achim Gratz
2021-09-25 17:05 ` Brian Inglis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a705413-8e87-0bf4-df55-55ea797c9158@SystematicSw.ab.ca \
--to=brian.inglis@systematicsw.ab.ca \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).