X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=af0FWGabl+6EFanFZNW9hkKUKZV5 fKxAadCYE6v/PlIDbgpxaNDbcu5uGEOIuGAb0QKiYV2zXyNrPOu9L5hYGHVfUiC9 k2RVOsQHDrG398Z58GVXoLpcA7ElQ+3Nzt2HKk9tOoLuAMQw1F08Il5kBCKT4RXU NIOtZm1XbQEgZJs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=R4EVvJrVN9I66q01bYcOcyV+Fkk=; b=fq CnsjIuB598gSAP1BZKmrc6JG1xy8ghpcTuOLt8X+hCAP2ZHMyAh388gUi7rf/DiP IYC0Oe5ZfogC+wrXFb5USBG0vMCY+ShqS22IbZF4oLCQtwcomrsS6KbpETe615k6 hemhLtUrUmyS4IL2A4x8sLjvmL0FZwKH84gT4RfCk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: gproxy6-pub.mail.unifiedlayer.com X-Authority-Analysis: v=2.1 cv=KdZB72oD c=1 sm=1 tr=0 a=x/h8IXy5FZdipniTS+KQtQ==:117 a=x/h8IXy5FZdipniTS+KQtQ==:17 a=cNaOj0WVAAAA:8 a=f5113yIGAAAA:8 a=kj9zAlcOel0A:10 a=z1iSbGl3AAAA:8 a=CnPQkyIfcMwA:10 a=HuP01ReZ-C4A:10 a=XAFQembCKUMA:10 a=mK_AVkanAAAA:8 a=2AwPO3eQGs_vW4JgGngA:9 a=CjuIK1q_8ugA:10 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: delay when querying /proc/loadavg From: Vince Rice In-Reply-To: <5588344D.6060901@googlemail.com> Date: Mon, 22 Jun 2015 11:22:13 -0500 Message-Id: References: <5588344D DOT 6060901 AT googlemail DOT com> To: Cygwin Mailing List X-Identified-User: {3986:box867.bluehost.com:solidrr2:solidrocksystems.com} {sentby:smtp auth 99.106.192.34 authed with vrice AT solidrocksystems DOT com} X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t5MGMbtU030150 On Jun 22, 2015, at 11:14 AM, m0viefreak wrote: > > > Hello, > > I noticed that there is long delay when getting the content of /proc/ladavg: > > $ time cat /proc/loadavg > 0.00 0.00 0.00 1/16 > cat /proc/loadavg 0.01s user 1.47s system 100% cpu 1.480 total > > I am aware that loadavg is not meaningful on cygwin and always returns > "0 0 0", but it is used in many programs and scripts. For example I > noticed it with my .bashrc/.zshrc that I copied from another (native > linux) system. > > This slowdown also seems to affect programs like 'top' which takes a > long time to start and behaves very sluggish when navigating due to > updating those values. > > Is there a reason it takes that long to react? On every other system > getting the value is instant. WFM. $ uname -a CYGWIN_NT-6.1 SRSMBPROWIN 2.0.4(0.287/5/3) 2015-06-09 12:20 i686 Cygwin $ time cat /proc/loadavg 0.00 0.00 0.00 1/3 real 0m0.031s user 0m0.015s sys 0m0.000s -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple