From owner-svn-src-head@FreeBSD.ORG Thu Jan 6 23:37:21 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98E7C106566B; Thu, 6 Jan 2011 23:37:21 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8BAF8FC12; Thu, 6 Jan 2011 23:37:20 +0000 (UTC) Received: by ywp6 with SMTP id 6so7154834ywp.13 for ; Thu, 06 Jan 2011 15:37:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=6IHD51zOrs+s99WbafwoMx4HvQBhnRy5GYcOiyxyshg=; b=N29JJYhsVeIlVRURTV3aSWPzKZ1n5bE5iTQxstNR31zDbaIMIFOcaEIkWFYXfZwfKN aT3650RtmnBqgNEIpJlL+imXeV+SNwwlscMnhx0sYR6maG1+ohikDPZQJqtYWo4sjWUH 8UqXCsAmNL9XuSuwJeo3qkJLjyVOYNRRjW7UE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=qVoRyh77hHgTRoKd423V+HyyOsWPB4/BgjMNEmWUpKkH3CiMRri0AXubO/lk6bQhFl x5+q2KnfzDjtnWHVMUiZGHQ4dA8aiEnKjB1WNYAHTMX/34WG1B4Na+uV05ZYiqBOmtbn dnk7O3gSnc3kfzxhDOE1eljcQNbTG3D7ctd8o= Received: by 10.147.40.1 with SMTP id s1mr35151202yaj.15.1294357040127; Thu, 06 Jan 2011 15:37:20 -0800 (PST) Received: from dhcp-173-37-0-197.cisco.com (nat.ironport.com [63.251.108.100]) by mx.google.com with ESMTPS id a52sm1191160yhd.15.2011.01.06.15.37.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 Jan 2011 15:37:18 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <20110106224139.GA62043@freebsd.org> Date: Thu, 6 Jan 2011 15:37:15 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <3AFB20EC-3BEF-4C52-B51F-94F0A9338CBB@gmail.com> References: <201101041413.p04EDA4f038360@svn.freebsd.org> <20110106211017.GA46874@freebsd.org> <201101061618.39695.jhb@freebsd.org> <20110106214243.GA51802__16340.9905079336$1294350178$gmane$org@freebsd.org> <86bp3the8p.fsf@gmail.com> <20110106224139.GA62043@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1082) Cc: src-committers@freebsd.org, John Baldwin , svn-src-all@freebsd.org, Garrett Cooper , svn-src-head@freebsd.org, Konstantin Belousov , Anonymous Subject: Re: svn commit: r216955 - head/usr.sbin/rtprio X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 23:37:21 -0000 On Jan 6, 2011, at 2:41 PM, Alexander Best wrote: > On Fri Jan 7 11, Anonymous wrote: >> Alexander Best writes: >>=20 >>> On Thu Jan 6 11, John Baldwin wrote: >>>> Note that that usage is rather pointless since it means you apply = rtprio to=20 >>>> the 'rtprio' process that is about to exit. :) >>>=20 >>> yeah but at least it makes the usage of -X consistent. ;) also = consider the >>> following: the current shell has idle priority and you want to run = rtprio in >>> normal priority. then rtprio -t -0 would be a neat way of doing >>> rtprio -t rtprio. ;) wel...not quite, because the priotity gets set = to "NORMAL" >>> when rtprio is almost finished running. ;) >>=20 >> I think it'd be useful if the syntax allowed smth like >>=20 >> $ rtprio 1 -0 -111 -222 -333 -444 -555 ... >=20 > defenately, but that would require quite some code. also please bear = in mind: > in its current form rtprio *DOES* process -0. my code doesn't change = that. the > only thing that it changes is that before hand -0 was processed *AND* = then also > executed. now the execution doesn't take place. Same thing, no code change: sh -c 'for i in 1 -0 -111 -222 -333 -444 -555; do rtprio $i; done' Yes, there's more of a processing cost to doing it this way with = exec/fork jazz and shell logic -- but how often do you execute rtprio, = and is the required code change really necessary? Simple is better in my = book. Thanks, -Garrett=