delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/19/15:02:27

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BJK2Rlp1055880
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BJK2Rlp1055880
X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 81FE83858417
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 81FE83858417
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734638511; cv=none;
b=nmkzZMsB8SjA6akTYS6Q3QK+Dgy4MUB+cjAOojgUFik3P6Jph/E0JzuTVOzHLUJSQuuMq8mFF6cU/FaRmoxzomi5vNjFeJ/38oxl2xazDoBkKqcXl6ZK1NHKPIPVr9YeJyp+DQnTxFUvt9mj0AnjbKgrWXXmASDe8PFlnzrcw+Y=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734638511; c=relaxed/simple;
bh=SjaG6sYbVAZAwvZ753s0u9el3cTN9uG7q20TbrY76s8=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=kNLjaOHvmloCbQ89KcWOaRUg/1/lkHLrwthgutDahVtnA7aeyA9p+MWinC50Dcc4B6+1AzmyiWWv0gITXYH2MHidyTe+PxsagNsbBVRmtIU+T/wC9qDaj3/5CPW30wLBpNrjyoSCBBaPM2MHKucP+8+cTva+ntZOOQvkWQBIV+o=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-ASG-Debug-ID: 1734638507-24039d08f43b33e0001-w5GHUG
X-Barracuda-Envelope-From: moss AT cs DOT umass DOT edu
X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136
DKIM-Filter: OpenDKIM Filter v2.11.0 mailsrv.cs.umass.edu 4E55E5BDC9
X-Barracuda-RBL-Trusted-Forwarder: 172.27.236.11
Message-ID: <98645c44-a883-ba43-4000-36e5818a0c83@cs.umass.edu>
Date: Thu, 19 Dec 2024 15:01:44 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Subject: Re: 2 SCHED_IDLE bugs in Cygwin 3.6
X-ASG-Orig-Subj: Re: 2 SCHED_IDLE bugs in Cygwin 3.6
To: Cedric Blancher <cedric DOT blancher AT gmail DOT com>, cygwin AT cygwin DOT com
References: <CALXu0Uc9UcXoH6kTr_BvHxSYQVa=8n4d8tVRK+tW5LCrbSFaPA AT mail DOT gmail DOT com>
<583f91c3-fb89-dd45-463d-c76189e17c48 AT cs DOT umass DOT edu>
<CALXu0UdDScdXDB4uY_=7HjnN044nnZVWz_qqmn-mPBhTDuzcCg AT mail DOT gmail DOT com>
In-Reply-To: <CALXu0UdDScdXDB4uY_=7HjnN044nnZVWz_qqmn-mPBhTDuzcCg@mail.gmail.com>
X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136]
X-Barracuda-Start-Time: 1734638507
X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384
X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at cs.umass.edu
X-Barracuda-Scan-Msg-Size: 1418
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.7 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.134706
Rule breakdown below
pts rule name description
---- ---------------------- --------------------------------------------------
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: Eliot Moss via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Eliot Moss <moss AT cs DOT umass DOT edu>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 12/19/2024 1:43 PM, Cedric Blancher via Cygwin wrote:
> On Thu, 19 Dec 2024 at 19:39, Eliot Moss <moss AT cs DOT umass DOT edu> wrote:
>>
>> On 12/19/2024 11:38 AM, Cedric Blancher via Cygwin wrote:
>>> Good afternoon!
>>>
>>> 2 bugs with SCHED_IDLE support in Cygwin 3.6 after SCHED_IDLE support was added:
>>>
>>> 1. /bin/chrt does not list SCHED_IDLE
>>> $ chrt --max
>>> SCHED_OTHER min/max priority    : 0/0
>>> SCHED_FIFO min/max priority     : 1/32
>>> SCHED_RR min/max priority       : 1/32
>>>
>>> 2. Prio 0 does not work:
>>> chrt --idle 0 bash -c 'do something' gives an error in Cygwin 3.6, but
>>> works on Linux and other Oses
>>>
>>> Ced
>>
>> I wonder if this note from the man page is relevant:
>>
>> "Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes
>> may be ignored on some systems."
>>
>> Of course is SCHED_IDLE was advertised as being available, this does seem to be a bug (I see it on my system as well).
>>
>> I was able to use some commands under WSL (presumably more Linux-y), but none at all on Cygwin.
> 
> https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=61c2f075cd55d4a52b4713383f75870c1e416923
> added SCHED_IDLE support for Cygwin 3.6. It should work.

Cygwin should support it, but I wonder if chrt (in util-linux) has been updated in light of the change.

Regards - Eliot Moss


-- 
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