From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 6 12:34:05 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72F81DE for ; Sun, 6 Jul 2014 12:34:05 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F01EE2E1B for ; Sun, 6 Jul 2014 12:34:04 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s66CXxNb057855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Jul 2014 15:34:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua s66CXxNb057855 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id s66CXxls057854; Sun, 6 Jul 2014 15:33:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 6 Jul 2014 15:33:59 +0300 From: Konstantin Belousov To: Stefan Parvu Subject: Re: run-queue length question Message-ID: <20140706123359.GD93733@kib.kiev.ua> References: <20140706143212.3d22d0adfa5dece52de203a3@systemdatarecorder.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aq8B+PobjgurrfqM" Content-Disposition: inline In-Reply-To: <20140706143212.3d22d0adfa5dece52de203a3@systemdatarecorder.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 12:34:05 -0000 --aq8B+PobjgurrfqM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 06, 2014 at 02:32:12PM +0300, Stefan Parvu wrote: > Hi, >=20 > Im trying to understand what FreeBSD kernel counts for run-queue length.= =20 >=20 > Traditional we count as queue length: number of processes which are runni= ng plus=20 > the number that are runnable (waiting to execute) - we *dont* count proce= sses waiting=20 > for storage, network etc.=20 >=20 > Linux kernel has added into run-queue length the iowait processes which m= akes > load average values big and disproportionate to the reality for example d= uring=20 > disk io tests. >=20 > How does FreeBSD handle this part ? Is the queue length simple the number= of=20 > running processes + waiting to run or not as we used to have in UNIX worl= d ? It is the Linux which follows the traditional definition of the load, by counting running, ready to run and 'blocked on the fast i/o' processes as adding to the load average. Also, I remember that FreeBSD up to 4.x followed this definition. Sometime during the 5.x rewrites the load was redefined to only count running + ready to run threads, which is the current definition, used by LA. --aq8B+PobjgurrfqM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJTuUI3AAoJEJDCuSvBvK1BBTAP/2rodsb979Wc3jEbC2zDxHXN WOa9thboYfLf7JRaicBS9ydyO0NPtHhg4B2GDhBdbQ4DYUwPaBqa+EGuyuhhVR4V YaPUzWt8wxezX24H2+VkZiJxfL/tMmo+EEHYEFPPlsfZSc/IGL1csCwLASjYrqZ0 dSRSaF5Omm/wmt3MNUIgIQgCtL5Ik++f7RxkvuTuyNS8p1SYLWa/3/RefMJwywkX fO76q8HgRdm3Q9DYqCOFxvlaapnVpNWNa4YvJg82BUz0T+l01jjly5xt8CuPJ+MW YVKJPE04lnr4pzQTVjqHPAqY6juFoz/KWx+qfbM9XBhLvjLss+S22zWIGOIiywzT C00uDh16jUrddrQ5Rfk27JhBtR83L9+5LacOpTFgxu5q4YoZ8m0DXSHjAVmBHDCL 9wb+dDIbPOT/HNIkT4wQ9YNrgdl4deoE+yF9XIhH+Zlh+RkPHkLa1Csdh3+1gbrE EzstgI8r3kiHct/WZgvPkkOSDrgtncxnHzYucN9/ATBFHNccKYlMtjqtceTBgib3 R0VUZXBe8WYEUBeiUfA6HT8RwtcN9eqvjNN5hMc6yHZ9aTkx38AALw6RvXnApQk3 RF4C4kp05j0FhhEdOjaI7BbnNSoGpFEtl1fNX2tL0Vq4bbrcp700ebro4DW8uBAV kogQIcJJx7t5vLxY3ust =wU+P -----END PGP SIGNATURE----- --aq8B+PobjgurrfqM--