X-Spam-Check-By: sourceware.org
Message-ID: <2ce9650b0604040850u4931283bm418f5946f7fdcd16@mail.gmail.com>
Date: Tue, 4 Apr 2006 16:50:42 +0100
From: "Chris January" <chris@atomice.net>
To: cygwin@cygwin.com
Subject: Re: nice under tcsh does not register under top? [Attn top maintainer]
In-Reply-To: <44327892.6010707@byu.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <20060404133613.GA4584@ingber.com> <44327892.6010707@byu.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k34FosG7025411

> According to Lester Ingber on 4/4/2006 7:36 AM:
> > I have a tcsh script that runs some processes, e.g., `nice +19 gmake run`.
> > I monitor the NI and %CPU columns under `top`.  This works fine under
> > FreeBSD and Solaris/SPARC, but under Cygwin the NI column always reads 0?
> >
> > Is it not possible to affect Windows priorities via Cygwin?
>
> It's possible, since cygwin 1.5.13 or so (for example, '/bin/nice
> /bin/nice' outputs 10, since the first nice defaults the second to +10,
> and the second displays its current nice value with no argument).  In
> tcsh, nice is a shell builtin, which defaults to +4 instead of +10, but my
> testing shows that it works.  It looks like top is not displaying nice
> values properly.

This isn't a problem with top but a missing feature of the /proc filesystem.

Chris

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


