From: Backwoods BC <completely.and.totally.trash@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Run a Cygwin process with "higher" scheduler priority
Date: Mon, 30 Oct 2023 00:43:17 -0700 [thread overview]
Message-ID: <CAKwdsS8SAQsqhcJdVQvvSy9T8Hdo6H4FnuNpKA1hJivzFFmavQ@mail.gmail.com> (raw)
In-Reply-To: <CALXu0Ufnz-uHKJfjDj3xShJR=w_Mwx8Xiw2qbRvJbxo=yqV_Uw@mail.gmail.com>
On Sat, Oct 14, 2023 at 4:41 AM Cedric Blancher via Cygwin
<cygwin@cygwin.com> wrote:
> Is there anything in /proc which can tell me the current *Windows*
> scheduler priority level? Or a command line tool?
'pslist' from Sysinternals (owned by MS) will tell you the Windows priority.
<https://learn.microsoft.com/en-ca/sysinternals/downloads/pslist>
As for mapping Cygwin priorities to Windows, I ran a test using
'renice' to change the priority of a job and found the follosing
non-linear mapping:
Cygwin priority 1-3 is Windows priority 8
Cygwin priority 4-11 is Windows priority 6
Cygwin priority 12-19 is Windows priority 4
I only tested priorities 1 to 19.
prev parent reply other threads:[~2023-10-30 7:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 15:44 Cedric Blancher
2023-08-11 17:14 ` Brian Inglis
2023-10-14 11:39 ` Cedric Blancher
2023-10-14 13:47 ` Eliot Moss
2023-10-15 3:55 ` Brian Inglis
2023-10-15 13:04 ` Christian Franke
2023-10-14 22:52 ` Mark Geisert
2023-10-30 6:09 ` Chris Wagner
2023-10-30 7:43 ` Backwoods BC [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=CAKwdsS8SAQsqhcJdVQvvSy9T8Hdo6H4FnuNpKA1hJivzFFmavQ@mail.gmail.com \
--to=completely.and.totally.trash@gmail.com \
--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).