delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/10/30/03:44:08

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F3F43858C30
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1698651847;
bh=ASVnN5esPMPLSI39b8zBccK7cI6VxI3tf0hG/BtTnY4=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=B+P0fqHBcTvV0X++V6ZjAKtlvbEC+JVusN27Cgy91mqBmutiXw2joa+PcTUmvODt4
Y8B2OepqRl4pWE3SiuLjAPKDHKKz+OOtKERQXgMGOiiOfnznjqpOXuxbkpUwJGXoVa
39ftetDrG7P3U9UjQoCSaifuprsSsgEMydeaSHBU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DFF0B3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DFF0B3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698651812; cv=none;
b=cXu3/QRCK6x6YZyVO6FEaHJlNyc3D5TU59TbUvSauTnnd9Oc4XXL35ozb53Tdir5YKr2rWPt5vgMQv8bzOxQNJBQ/Y8kXZWPZb5fmyaFmaF0tnvKPOUkre2iQznT7YT+vTOEf+MznFsw9n01k/ucTuyWdh40OllAHof/PEiftnY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1698651812; c=relaxed/simple;
bh=7mxMgIZYzhcUVLaOPH9YC2x5yZBF4lXi2nCVQUU5HSs=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=m8HXdRHGj04+4ZUtakfsEHl7Wt3i2pk9FFfBRZg1N86gqW+PLBt9Mo70D4rkBTSz/j91TMaKdNHgv1Z3rnsWwoJ06Q3a22Pw5if4OIUn7caWRm/qQSJSpI5Xsw8XNzMs1fvTQUsL4K/V1WnPYGSq+3LkIuc9w/slUrLBraxjYWQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1698651809; x=1699256609;
h=content-transfer-encoding:to:subject:message-id:date:from
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=nPxTVu97PC9AfPceiNnF4j6DU+OD6Zm40LKJqA1p80Q=;
b=Q6aLzjzNKI7FUm0Ewz9ob6xVPgB0sJKFlL3K8D3SnQhX8sPOMjIb9i5EjwZCbRdFpY
shEeNeaY+WmFJMs/tQaM8+R2gWRgWQw2nLM8rsyQkC7IFKufSsXkVYlby/nLXuA964lm
V+3WZFacdHewNue4UYS79CvOk0JKxBS+QP2x3JdKhwMGGDTEXdgSaaT1UfdVb8+Xq/NS
XGu1YeoYsRQgRmS3FAg6FUOKz03w8EE4Dkxypaq/Ia8QOyAp3gHFd0Rmq+pVrqKZkkaY
6da2HhuHNuzfHur8he+GgG2xqc6hNPnENp5j9bNTYDhpSZ59JuAIubwpzWQt+noV+bI9
AYcw==
X-Gm-Message-State: AOJu0Yxq5VXKZwHHOcHJ0WlpOAWfc9F2WvNPmRa6s2qU/DrRjOY5+dew
HqcayEYQ+JusOZ1kfZL+dJXzTxkwBvZwW45WEyjQIK9fIyMO7A==
X-Google-Smtp-Source: AGHT+IGhomZHuXbmgtveWdimRubsxBg7aP3ONxnppW3ACFyb8uiifU3tV8Ky0SNUVkFDZw8HYWhS5VaDfmJ46IQbRpA=
X-Received: by 2002:a05:651c:11d3:b0:2bc:b75e:b88 with SMTP id
z19-20020a05651c11d300b002bcb75e0b88mr7237170ljo.18.1698651808749; Mon, 30
Oct 2023 00:43:28 -0700 (PDT)
MIME-Version: 1.0
References: <CALXu0UeiEH3gOYzwVjOqTgQ1OC8z=ZBOd4y4ky_-B0t5SrS9Pg AT mail DOT gmail DOT com>
<cfbece04-40d6-566d-a4b8-f5334b1d453a AT Shaw DOT ca>
<CALXu0Ufnz-uHKJfjDj3xShJR=w_Mwx8Xiw2qbRvJbxo=yqV_Uw AT mail DOT gmail DOT com>
In-Reply-To: <CALXu0Ufnz-uHKJfjDj3xShJR=w_Mwx8Xiw2qbRvJbxo=yqV_Uw@mail.gmail.com>
Date: Mon, 30 Oct 2023 00:43:17 -0700
Message-ID: <CAKwdsS8SAQsqhcJdVQvvSy9T8Hdo6H4FnuNpKA1hJivzFFmavQ@mail.gmail.com>
Subject: Re: Run a Cygwin process with "higher" scheduler priority
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Backwoods BC via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Backwoods BC <completely DOT and DOT totally DOT trash AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 39U7i72w026904

On Sat, Oct 14, 2023 at 4:41 AM Cedric Blancher via Cygwin
<cygwin AT cygwin DOT 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.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019