From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40723 invoked by alias); 8 Apr 2019 22:10:46 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 40712 invoked by uid 89); 8 Apr 2019 22:10:46 -0000 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 Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 08 Apr 2019 22:10:45 +0000 Received: from [150.203.106.72] (dhcp-jwright07.anu.edu.au [150.203.106.72]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 28E92401BF02; Mon, 8 Apr 2019 18:10:42 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: taskset in util-linux? To: cygwin@cygwin.com References: <9948a394-19ab-d838-16fb-9adb9feae3d2@cs.umass.edu> <8e1254b03d51e13e9f92cbaa7a4039c205181f6d.camel@cygwin.com> From: Eliot Moss Message-ID: <28e8ef96-fdc1-5d96-f7e1-67537785d5d7@cs.umass.edu> Date: Mon, 08 Apr 2019 22:10:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00074.txt.bz2 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