Date: Thu, 21 Mar 2013 09:58:47 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: Jeremy Chadwick <jdc@koitsu.org>, Michael Landin Hostbaek <mich@FreeBSD.org>, freebsd-stable@FreeBSD.org, John Baldwin <jhb@FreeBSD.org>, Andriy Gapon <avg@FreeBSD.org> Subject: Re: Core Dump / panic sleeping thread Message-ID: <20130321075847.GR3794@kib.kiev.ua> In-Reply-To: <223607151.4129243.1363828477555.JavaMail.root@erie.cs.uoguelph.ca> References: <20130320173100.GF3794@kib.kiev.ua> <223607151.4129243.1363828477555.JavaMail.root@erie.cs.uoguelph.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--lA9F05uMKC/Ah7SI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 20, 2013 at 09:14:37PM -0400, Rick Macklem wrote: > Well, read/write sharing of files over NFS is pretty rare, so I suspect > a truncation of a file by another client (or locally in the NFS server) > is a rare event. As such, not invalidating the buffers here doesn't seem > like a big issue? (The client uses np->n_size to determine EOF.) >=20 > Also, I think close-to-open consistency will typically throw away the > buffers on the next open when it sees the mtime changed. (Yes, there > won't necessarily be another open, but...) nfs buffers are VMIO. Each VMIO buffer wires the pages it references. Wired pages cannot be freed by vnode_pager_setsize() if the file is truncated. --lA9F05uMKC/Ah7SI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRSr22AAoJEJDCuSvBvK1BHKcP/irDDWtGtfynCFQfoYSLmWkT E4YQCN1QVPJ6gK0B6eGdOHV8x0F3nPhI7M5SebPNVWMdM5glWZgeSOL0sp7YHw1s SL6uTS6bOy70Wz6kK99HzC8Ga05WAJbghHAhc3jG32U6IbGyuW6IggCNl0laMMP2 iwV4X16IuGepQWWVcAViHokglDXHlh9bBAVBLFWCrRLUnTsVh1UVJtSaM5/oJ4E8 22cR5wP8ybmRPJ1KRp/K6xGwE+93XMhQThEcuBT0DuHcrWLamLzi0L1bPdO/W2BP ty8SvQIq8Dj05Fm69BOosLiiqTpLKIjuYokNYqUGLXQi4ItFZy+cYrP8zqQUhfN9 +1naxGFX4SbdlypWHimXWaDiptdRmVPynHUdIZYSAa+lKT1qQ5M6Mrm2ZkShfP9o 0mEOpcn/6b18yNew+X/Amaw9aSiRfQt45sAwGtGep7wfbkCq0SyAb06nq2ZvAKs4 D7rEu1bN7Ps6shXAIyfcJ870e9zRO4ln3fNK5RCs1J0ElOnnVrvd1PP2Tjhj7Yhh 40R5zJSNMcNYESLBGCCTR+3hUHf6m/SMtlI6L4sLgopqsixhtjFSsH1xUuAkokVO GNKWbhVxNNgjUJmeW+kwUbr+1MNT0M3lkgpQJP/OvT4r8b4snqiYsCGWxz+7l+6z jngayHwdaow0HOpImgpI =His/ -----END PGP SIGNATURE----- --lA9F05uMKC/Ah7SI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130321075847.GR3794>