delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/20/09:47:24

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BKElN3Z1437240
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 4BKElN3Z1437240
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=vSL50PGF
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B402F3858CD1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1734706042;
bh=Hk6Ss7E5a/MmhPLQ7JarzTibJPTT0GFr9wdnCpM3b6k=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=vSL50PGFJycGPDLVZaAmHkugkYjCAl1yIyMR9Kc+U/18+qT9VWD95cgb5okcqscAX
szrbJjUz53siAeX3YMdQQN8llsxugrfBS5qjUghgI53YOuRJmRsk/BTRbMyPgn+qZs
8vbno/E1U4cxqdGK69xU/lhlTlU2C/6Bv//ePdc0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C03BA3858D38
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C03BA3858D38
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734706008; cv=none;
b=JB0sW0y9hVGUC1gWAtwaz0ELSmgg+KHVw+xh4RGxMeslxKx58/HeTcKpAeHrlJmbM2gRyqGp990DWiEzSw3+TETBWN2osSttUKU0zoA/fbBSSevFqpdCCYXhdFku+3q6iCxJxrdcWCgG/SpH892PXEUyjW7sjb9h29ehRcxqhj4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734706008; c=relaxed/simple;
bh=CEjf3PGxi/HV8A4wk6F62n7m2T2yiuCnWSCQ5rThQRk=;
h=Subject:To:From:Message-ID:Date:MIME-Version;
b=b7zicByncHZkXarz00NEaN0IZ+YSNvsy5PORVTeTUyZHz6QePMhLjGIw9eRUvGNv+k0806nPExU3/h9ZbnIbt88MQgocC6ZXKoQnV5RABg5wSt44sAAPjDfM1Mk76bVLnpEbDlJoXAfbd948zALUvDUtZ+cCjI7RcOI+mwg01cc=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C03BA3858D38
Subject: Re: 2 SCHED_IDLE bugs in Cygwin 3.6
To: cygwin AT cygwin 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>
<98645c44-a883-ba43-4000-36e5818a0c83 AT cs DOT umass DOT edu>
<e666265a-2fdf-4c1d-9a8c-c0a92ee9fbd8 AT gmail DOT com>
<bca82413-0b44-443d-8f19-b1d1f22a236e AT SystematicSW DOT ab DOT ca>
<CALXu0Ufa9Qb-y-e-vkLFxNecMX6akdBz5iaSsEzU=yxyTwfV9w AT mail DOT gmail DOT com>
Message-ID: <8b233360-e4c8-5f1a-7f15-f227892cf02d@t-online.de>
Date: Fri, 20 Dec 2024 15:47:11 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
SeaMonkey/2.53.19
MIME-Version: 1.0
In-Reply-To: <CALXu0Ufa9Qb-y-e-vkLFxNecMX6akdBz5iaSsEzU=yxyTwfV9w@mail.gmail.com>
X-TOI-EXPURGATEID: 150726::1734706005-DAFFA9EF-89DEC194/0/0 CLEAN NORMAL
X-TOI-MSGID: da107c4d-c512-490e-8c14-c43dc5964d81
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Christian Franke via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Christian Franke <Christian DOT Franke AT t-online DOT de>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin 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 4BKElN3Z1437240

Cedric Blancher via Cygwin wrote:
> On Fri, 20 Dec 2024 at 07:36, Brian Inglis via Cygwin <cygwin AT cygwin DOT com> wrote:
>> On 2024-12-19 14:08, René Berber via Cygwin wrote:
>>> On 12/19/2024 2:01 PM, Eliot Moss via Cygwin wrote:
>>>> On 12/19/2024 1:43 PM, Cedric Blancher via Cygwin wrote:
>>>>> 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.
>>> Version 3.6 is not a release, so unless you're using a snapshot...
>> The maintainer can flip Cygwin to test 3.6... and use that to build a test
>> release of util-linux with Cygwin >= 3.6 as a dependency and make that test
>> release available.
> So you say util-linux only needs to be recompiled?

Yes, otherwise the options related to the newly added SCHED_* defines 
have no effect:

util-linux-2.39.3/schedutils/chrt.c:
int main(...)
...
         case 'b':
#ifdef SCHED_BATCH
             ctl->policy = SCHED_BATCH;
#endif
             break;
...
         case 'i':
#ifdef SCHED_IDLE
             ctl->policy = SCHED_IDLE;
#endif
             break;


The 'chrt --help' output is misleading because it always advertises '-b, 
--batch', '-i, --idle', ...

-- 
Regards,
Christian


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