X-Spam-Check-By: sourceware.org Message-ID: <44327892.6010707@byu.net> Date: Tue, 04 Apr 2006 07:45:54 -0600 From: Eric Blake User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: nice under tcsh does not register under top? [Attn top maintainer] References: <20060404133613 DOT GA4584 AT ingber DOT com> In-Reply-To: <20060404133613.GA4584@ingber.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. By the way, following these directions, > Problem reports: http://cygwin.com/problems.html and including 'cygcheck -svr' output as a text attachment, would have let us know if you need to upgrade your installation. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEMniS84KuGfSFAYARAgj4AJ90REfdaBUb4MlXd1HKLOkDIvxG+wCgqIot 3ySRUGdjDHXSQkacn94jLJQ= =2yiR -----END PGP SIGNATURE----- -- 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/