Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2007 20:39:51 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-hackers@freebsd.org
Subject:   Disable mutex spinning?
Message-ID:  <f4hghp$ojq$1@sea.gmane.org>

next in thread | raw e-mail | index | archive | help
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f4hghp$ojq$1>