delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/19/13:40:04

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BJIe4fS1022704
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 4BJIe4fS1022704
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 6FF4F3858C52
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6FF4F3858C52
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734633589; cv=none;
b=aL9FSMqxM/m0GpXncThMiHD2muj2m66ytwValpG7EQEzHs80iwauZ2VZ3Z0xset/YxIgv+CYpF8foZR6deEqhiYgi/qgixLU6+g/+nbjMSd4Ba4XMsGTFFQoTXhlrdoRVihMFsXngrjIW5WSN6NhwVJXV3w2+8Ly123GmA530Bg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734633589; c=relaxed/simple;
bh=ByDysGmvM10UgvYb1r/UUv6lQ40A4YUVYr7rPbJSJTQ=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=eZLcoxU9kd3r5OxwfP3YajiWxLyasjAhMNsTfwX8PnnMfJwdmiBCIL56Ogi90Hln52BV95odUndh+onGlZY6hr6kQv58svVUnZWohUCmuD2hBTaV0+0R6l+e8etFIxOsaCzstR4XAEMPrIoHpUgF243nDgcyqm2IgJJbK0PAWLo=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-ASG-Debug-ID: 1734633588-24039d08f43a6110001-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 205C85BDC9
X-Barracuda-RBL-Trusted-Forwarder: 172.27.236.11
Message-ID: <583f91c3-fb89-dd45-463d-c76189e17c48@cs.umass.edu>
Date: Thu, 19 Dec 2024 13:39:47 -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>
In-Reply-To: <CALXu0Uc9UcXoH6kTr_BvHxSYQVa=8n4d8tVRK+tW5LCrbSFaPA@mail.gmail.com>
X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136]
X-Barracuda-Start-Time: 1734633588
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: 956
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.134704
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 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.

Cheers - Eliot

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