Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 18:00:18 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Roger Pau Monn? <roger.pau@citrix.com>
Cc:        "current@freebsd.org" <current@freebsd.org>
Subject:   Re: FreeBSD-HEAD gets stuck on vnode operations
Message-ID:  <20130513150018.GL3047@kib.kiev.ua>
In-Reply-To: <5190F9A0.3000005@citrix.com>
References:  <5190CBEC.5000704@citrix.com> <5190F9A0.3000005@citrix.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--1Zxv8fCI4MRL5zf7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 13, 2013 at 04:33:04PM +0200, Roger Pau Monn? wrote:
> On 13/05/13 13:18, Roger Pau Monn? wrote:
> > The VM can be stuck in this state for quite some time, it generally
>=20
> I would like to explain this a little bit more, the syncer process
> doesn't get blocked on the _mtx_trylock_flags_ call, it just continues
> looping forever in what seems to be an endless loop around
> mnt_vnode_next_active/ffs_sync. Also while in this state there is no
> noticeable disk activity, so I'm unsure of what is happening.
How many CPUs does your VM have ?

The loop you describing means that other thread owns the vnode
interlock. Can you track what this thread does ? E.g. look at the
vp->v_interlock.mtx_lock, which is basically a pointer to the struct
thread owning the mutex, clear low bits as needed. Then you can
inspect the thread and get a backtrace.

Does the loop you described stuck on the same vnode during the whole
lock-step time, or is the progress made, possibly slowly ?

I suppose that your HEAD is recent.

>=20
> > varies between a couple of minutes (5-10min) to an hour or two, after
> > this the VM recovers itself and resumes normal operation. I still have
> > to test this on a bare metal FreeBSD install, but I would like to ask
> > if someone has seen a similar behaviour, or if someone is suspicious of
> > a change that could cause this.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

--1Zxv8fCI4MRL5zf7
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQIcBAEBAgAGBQJRkQABAAoJEJDCuSvBvK1BmMoQAJO66spaQ/rjZQU5Py+sH8T9
mLPVoJ0l494K4ImhqeU1JuvzmGEigqGSJNlZ6AHecsvAxAUiVFWLTo3nOlquMebK
vUr3ENOFNia/kPr5KhTYOfxelO6ITwcZFmXBg5USz8EAGbNWscLtMncxQ8P7hHjZ
Dx16CEUFeYTnvs1vG0tyse5jCZYhmWqFEg6gIpqViL+GoKNzcSVHOj/SOujqHKlK
R2lVVLsI5CHWUAcJ5lHhtwFPuohRV7gnJ2oQA7/exSRuUgNehaL5i5BbRUq/zfls
zBSXlHIok6ZzpIXE4NQ+MABw6fO/0jr0VTCl4GwPJ6SHbQ+iEq9s9jjBwMal1So2
SIRQiW4dIfeBusC/ZvrKUPanbzsnZ+J4BNlkq42c8D/wgT1LI8myBj/byzUMuT9S
VXWnyC7lXF+i45tYyvtpWWvyffJAtZwKSPmEE1noxEAhk9SWI/Qro0U2WPt+FnGV
ZLjL/MgPq1+asqa942DKLQaxlV0sVCSnaGqCs0e/D24rTGuPVHcyZauObcFXWIoe
4YjwLLZra0/BdkokaF2irv4laXwKrDUExWp4aVR23MOOcAabXp7lFT7DsCurrnvG
pvgdrO8ryrsWlIZ7W9S2YVDyEx85FvnkwfRtc1EmO9ZjrpALTlIVBW2JbmWtxY5J
8cVWgkvlodohJpPGiO92
=gREQ
-----END PGP SIGNATURE-----

--1Zxv8fCI4MRL5zf7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130513150018.GL3047>