From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 10 18:40:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6FD6116A485 for ; Sun, 10 Jun 2007 18:40:17 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id EE33413C4B7 for ; Sun, 10 Jun 2007 18:40:16 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HxSKb-00016U-C7 for freebsd-hackers@freebsd.org; Sun, 10 Jun 2007 20:40:05 +0200 Received: from 78-0-92-215.adsl.net.t-com.hr ([78.0.92.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jun 2007 20:40:05 +0200 Received: from ivoras by 78-0-92-215.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Jun 2007 20:40:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 10 Jun 2007 20:39:51 +0200 Lines: 44 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig022CB04A79A8D162FDF5A501" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-92-215.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) X-Enigmail-Version: 0.94.3.0 Sender: news Subject: Disable mutex spinning? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 18:40:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig022CB04A79A8D162FDF5A501 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I'm not sure I'm thinking the right way here, so this could be just nonsense. Since I started using VMWare (and that was a long time ago) and other virtual machine applications, I've noticed FreeBSD spends a lot of time in system space (i.e. much time is allocated to "sys" in utilities like top and time) during IO intensive operations. At first I thought this is because the emulated IO devices are much slower than real devices, so IO requests take a long time to complete, leading to sys time. It occurred to me that this might be bogus thinking - yes, emulated IO devices take a long time to perform IO but during that time the system doesn't do anything, so that time should be effectively described as idle, waiting for IO completion... or does it? I'm thinking of experiment - removing all spinning from mutex-like code and try running such kernel in a VMWare machine. For start, is there anything else except turning off ADAPTIVE_MUTEXES, ADAPTIVE_GIANT and ADAPTIVE_RWLOCKS I can do via the kernel config file? If someone has more insight to share on this topic, I'm listening :) --------------enig022CB04A79A8D162FDF5A501 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbEV3ldnAQVacBcgRAjuaAJ0b/2p/tX012hfAq90chaXVRu7nVwCcDskN pJWRRjcpdEEKFOfT2XQKzCY= =CvVJ -----END PGP SIGNATURE----- --------------enig022CB04A79A8D162FDF5A501--