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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=DYW l/0ZjUuD+y1Zb+SXKFWVZ8/MrWDzFvGmScJ9HgAZgw+UZMkMFeGxClbF3YyxM4Lo h3aOK3Y1EB3FK77dyzhjNx7M9p+hVn7OlvPLY00EHFpgKFf4MhYo1sQl0JNE1xhI FbOWKIGWJszyIYbCF/Ih00GtIKLXcYTjxe0+YEnQ= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=VfsGda9dU OQ7euqCiYCOHidDT5c=; b=JYgRDVwFdYGsU/klnb3i55srp2n8ilTTFUOW8bDjO 2nLNy2zef8+UHRJtd4So1bPFrED9wXWKmwq9Tjhb4aM9fBmR+eugetWcZxDlOCyg McKsDzgCdsMPOh3HI5CVjYyDyAZfJLsUennZY8Vj1TcHlfnAPK1tTQ01/0u2jfah 20= 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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f169.google.com X-Received: by 10.180.24.40 with SMTP id r8mr2552829wif.24.1434989647451; Mon, 22 Jun 2015 09:14:07 -0700 (PDT) To: Cygwin Mailing List From: m0viefreak Subject: delay when querying /proc/loadavg X-Enigmail-Draft-Status: N1110 Message-ID: <5588344D.6060901@googlemail.com> Date: Mon, 22 Jun 2015 18:14:05 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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. -- m0vie -- 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