From owner-freebsd-questions@FreeBSD.ORG Thu Dec 12 20:25:41 2013 Return-Path: Delivered-To: freebsd-questions@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 A1F35E5E for ; Thu, 12 Dec 2013 20:25:41 +0000 (UTC) Received: from mail-ob0-x22c.google.com (mail-ob0-x22c.google.com [IPv6:2607:f8b0:4003:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 64DFC1507 for ; Thu, 12 Dec 2013 20:25:41 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id gq1so1007949obb.3 for ; Thu, 12 Dec 2013 12:25:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khera.org; s=google11; h=mime-version:date:message-id:subject:from:to:content-type; bh=iYirEJ4Ic84YEAl5osIyPuBycqEDvERIyrlLnFoeQjM=; b=aB0mrcQ7alj+0cILwwFJYmEy53pt0/g30Ab1cVCN/e1BVAjwk2SHKuRyNZ/LFpKG4F 23r6YB/ot3n4+BnN0OQ4830TwDhxwkViU/dDKNdHlqkGAKYJK9iMYwTHKfFyWCZmMv5y vzQcypjmbUnG+jibebPWyR9A3T58Px/Jsbths= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=iYirEJ4Ic84YEAl5osIyPuBycqEDvERIyrlLnFoeQjM=; b=EWxwlU1p36dDaokh5m3tnlAvUS6ciYcIuTamwVui7ZMbjB/wEH/QbCv4/tvIgs1WIH 0Vp38RIulOZqhu2bi8RVbMJocZMILYsok/CovNZ+6tNxPc6KgNus+hrLrBna2JSBIxl9 xWbWy5DeIDdqyU9cJu/IGBGyjc/L5veAMjG6DYMz3QkNs6XCSOOyKXCBrNEsWFOkHlJG HmYmzSBTpZfMTRgsGsledD6isv7gOM+pgfAN1d5t928cWPd10yE5zXSXKFvTaj+MQRbS 6YBKpgYLo55Z5sSpVvI3oJWfhAut9GkQ8KX3xY7iRoDh6B/fWoUSXaSVy3OLO0BdyIfK qPuw== X-Gm-Message-State: ALoCoQk3qr9vKKaLI4apOGrUb3ru07BGRrPUktUm5F6cHRz+9/jsI4tGic1YhjlNI90Gbi76CLQh MIME-Version: 1.0 X-Received: by 10.60.115.164 with SMTP id jp4mr7062689oeb.19.1386879940106; Thu, 12 Dec 2013 12:25:40 -0800 (PST) Received: by 10.76.167.229 with HTTP; Thu, 12 Dec 2013 12:25:39 -0800 (PST) Date: Thu, 12 Dec 2013 15:25:39 -0500 Message-ID: Subject: Mac OS X NFS server with FreeBSD client non-responsive From: Vick Khera To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 20:25:41 -0000 For the last two days I've been fighting with using my mac desktop (running 10.9 aka Mavericks) as an NFS server to a freebsd 9.2 client. Everything works great when first mounted. I can do file listings, edits, etc. but after a fair amount of file ops, the freebsd system just locks up for tens of seconds at a time doing a simple ls. TL;DR: the FreeBSD 9.2 (and 10.0-PRERELEASE) NFS client does not work with OSX 10.9 NFS server using TCP. Details: NFS Server is OSX 10.9 exporting a single directory, all settings default. NFS Client is FreeBSD 9.2 mounting with options rw,intr. The directory contains a subversion checkout of a reasonably large project. I then run "svn update" and it takes way longer than one would expect. Once that is done, I copy a file of about 3MB to another name on the same directory. At this point the cp process gets wedged in "newnfsreq" state. If I kill the cp process, then do an ls, it will just sit there for a couple of minutes in newnfsreq state, then finally succeed. FreeBSD *sometimes* logs that the NFS server went away, then came back, but not always. I mounted the same directory from my desktop to a CentOS 6.5 system, and I could not make it fail this way. Same test when using a remote FreeBSD NFS server never locks up. After much searching on google and not finding anything about this combination, I tried changing all sorts of options to try to isolate the problem. I removed all TCP tuning on the FreeBSD client. Ultimately, the one thing that "fixed" my issue is telling the client to mount using UDP instead of the default TCP. Once I did this, all operations on the mounted file system were speedy like one would hope. I double-checked on the CentOS server and made sure it was mounting using TCP, and it indeed was -- there was no failure with that implementation of the NFS client. So my conclusion is that the FreeBSD NFS client does not work (ie is not usable) in TCP mode with an OS X 10.9 NFS server. Has anyone else run into this? I can reliably reproduce it.