From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: 100% CPU on TCP servers Date: Thu, 18 Aug 2005 17:51:41 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1124380870 10689 80.91.229.2 (18 Aug 2005 16:01:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2005 16:01:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 18:01:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5mmj-0008Mn-HT for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 17:58:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5mpE-0007FG-KV for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 12:01:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5ml7-0006OS-I9 for emacs-devel@gnu.org; Thu, 18 Aug 2005 11:56:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5mkq-0006GI-EF for emacs-devel@gnu.org; Thu, 18 Aug 2005 11:56:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5mkp-0006FY-OX for emacs-devel@gnu.org; Thu, 18 Aug 2005 11:56:31 -0400 Original-Received: from [64.233.182.205] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5mw8-0006pl-C3 for emacs-devel@gnu.org; Thu, 18 Aug 2005 12:08:12 -0400 Original-Received: by nproxy.gmail.com with SMTP id x37so124935nfc for ; Thu, 18 Aug 2005 08:51:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K9bru/Ert7ckQXje4z6DeTGKHrRw4khCHOjQ5Pb5OFStNEV0IDHAFup22ww8FaUoaNfCvZ8yfQF9ZG/00JTSzEM8ij9/R167loZvRa67fJQl0v1z0Zz4hcT3JkPXCKaHC2mM7BimBKwmC++ryn7PhToWPHDrxcUmsAH8lXFyECY= Original-Received: by 10.48.30.20 with SMTP id d20mr62741nfd; Thu, 18 Aug 2005 08:51:41 -0700 (PDT) Original-Received: by 10.48.42.13 with HTTP; Thu, 18 Aug 2005 08:51:41 -0700 (PDT) Original-To: Emacs Devel In-Reply-To: Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42231 (A question for process-savvy people) It seems like=20 > (make-network-process :name "test" :server t :service t) on Windows makes the server process to call server_accept_connection() continuously (in a 2.8 GHz Pentium IV I've measured around 10,200 calls in 3,5 s, almost 2,900 calls per second). It's no wonder Emacs is munching 50% CPU. Any idea why that can be happening? --=20 /L/e/k/t/u