delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/08/18:10:56

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=A0zCkLlvG+T7Olcc
C7uKgcWU6veL3bDEfD+G/GPYVF6gpEZv6porlBHhnU7DvBEf+EY0hxwqEMDyddym
XGb7J75mn6VWpn6dW9gAV04EoDNse1mRDOyLU/cJCaZGcuplSwGZn45LzFf69OnU
PaSrDsqsqkx+a+voDEuGUHfpq0E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kUaMHhFrF9EwcZT31Fqhlk
5lgBw=; b=bcdj9MK96/nWw6AGsA7CYFponhnr/LQaxNWyPLtW2Ev8rvea6Gz/9T
TBoUlGkk7sxtSIpzbW4R98ki0g0lYsHXVoCBaSpGvOo0MiGXSclLBbAe/akPOq1f
Lcs8Gt7hNXylCwV63Xt/1hZiOOGln/54iy2upY1Vc0mo69IgQthTA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1803, H*Ad:D*edu
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: taskset in util-linux?
To: cygwin AT cygwin DOT com
References: <9948a394-19ab-d838-16fb-9adb9feae3d2 AT cs DOT umass DOT edu> <8e1254b03d51e13e9f92cbaa7a4039c205181f6d DOT camel AT cygwin DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <28e8ef96-fdc1-5d96-f7e1-67537785d5d7@cs.umass.edu>
Date: Mon, 8 Apr 2019 18:10:41 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <8e1254b03d51e13e9f92cbaa7a4039c205181f6d.camel@cygwin.com>
X-IsSubscribed: yes

On 4/7/2019 10:15 PM, Yaakov Selkowitz wrote:
> On Fri, 2019-04-05 at 20:37 -0400, Eliot Moss wrote:
>> I am wondering about the absence of tasket from Cygwin's
>> util-linux package.  While I can imagine that the Linux
>> version of that program might no port directly, Windows
>> does seem to support similar functionality -- cmd.exe
>> accepts a /affinity switch.  It is ugly, perhaps comparatively
>> slow, etc., to have to run a Cygwin task with affinity
>> going through cmd (and I found no way to make that work
>> without popping up a cmd window, that then goes away when
>> the task completes).
>>
>> Any possibility of getting this supported under Cygwin?
>> I have no idea what underlying calls, etc., might need
>> support ...
> 
> Cygwin does not have the requisite sched_[gs]etaffinity functions; PTC.

Yes, I knew that, so I probably should have mentioned it.  I can
rephrase: Any chance of getting those functions added, and *then*
having taskset as part of Cygwin's util-linux?

I've not tinkered with Cygwin internals much, so I'm not sure I
could develop a worthy patch.

>> Likewise, it would be nice to be able to control the
>> performance settings (clock speed) via the /sys method
>> supported under (some) Linux versions:
>>
>> /sys/devices/system/cpu/intel_pstate/{no_turbo,{min,max}_perf_pct}
>>
>> One might link these to something (probably new) in /proc.
> 
> Cygwin does not support /sys at all.

Yes, again, I could see that.  I'm asking more about the functionality
as opposed to where exactly it is found.  Again, I can use CMD commands
to accomplish it, but it is somewhat ugly.  Reading / writing some new
/proc entries would be fine :-) ...  If necessary I could build /sys
links to the /proc entries to make it more transparent.

Regards - Eliot

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

- Raw text -


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