delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/03/22:11:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B427710.8B07694@myrealbox.com>
Date: Tue, 03 Jul 2001 18:53:20 -0700
From: James Grishaw <jgrishaw AT myrealbox DOT com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Robert Collins <robert DOT collins AT itdomain DOT com DOT au>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: inetd: how does one change the priority?
References: <3B425A48 DOT D6A25F09 AT myrealbox DOT com> <03e001c10421$e8fb4de0$806410ac AT local>

Robert,

     Adding nice() to the inetd daemons didn't seem to be working
very well for whatever reason, so I solved the problem by wrapping
Netscape in a script with a call to nice.

     Works like a champ now.  Many thanks for the assist!

Jim Grishaw.

Robert Collins wrote:

> ----- Original Message -----
> From: "James Grishaw" <jgrishaw AT myrealbox DOT com>
> To: <cygwin AT sourceware DOT cygnus DOT com>
> Sent: Wednesday, July 04, 2001 9:50 AM
> Subject: inetd: how does one change the priority?
>
> > Team,
> >
> >      I am having a problem with poor performance with an imapd
> > daemon that I am running under Cygwin inetd.  The symptoms are as follows:
> > (1)  I can connect to the imapd server from any external box (other
> >      than the server) and everything works fine.
> > (2)  If I run Netscape on the server, I connect fine and all the commands
> >      work, but the performance is horrible (up to 30 seconds to
> >      open a mailbox, with CPU usage at 100% during the wait).
> > (3)  If I use task manager to decrease the priority of the Netscape
> >      process or increase the priority of the imapd processes, performance
> >      is good again.
> > (4)  This problem only occurs on Windows 2000.  Windows NT works fine.
> >
> >      I am surmising that Netscape is consuming all of the CPU while it
> > is waiting for a response from the starved imapd daemon.
> >
> >      I am running inetd as a service.  Is there a way to increase the
> priority
> > of the Cygwin inetd.exe process (and all of its children)?  I will accept
> any clues.
>
> nice can do it, or you could wrap the imapd in a script with nice().
> Personally I suggest patching inetd to make a call to nice() so that you
> won't be delayed while waiting for inted to spawn the child. You may need to
> call nice in the child as well - YMMV.
>
> Rob
>
> >
> > Many thanks,
> > Jim Grishaw.
> >
> >
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting:         http://cygwin.com/bugs.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
> >


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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