This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: delay when querying /proc/loadavg
- From: Vince Rice <vrice at solidrocksystems dot com>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Mon, 22 Jun 2015 11:22:13 -0500
- Subject: Re: delay when querying /proc/loadavg
- Authentication-results: sourceware.org; auth=none
- References: <5588344D dot 6060901 at googlemail dot com>
On Jun 22, 2015, at 11:14 AM, m0viefreak <m0viefreak.cm@googlemail.com> 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