From owner-freebsd-stable@freebsd.org Mon Sep 5 20:26:32 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47A75B962B9 for ; Mon, 5 Sep 2016 20:26:32 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DF6D233 for ; Mon, 5 Sep 2016 20:26:32 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi0-x234.google.com with SMTP id m11so130746495oif.1 for ; Mon, 05 Sep 2016 13:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=q0EFZH49jrKMgtuaTHtLCmRFDERE0hTRYmqYi1Yg2yA=; b=jnRJbVm6HYqWYE6yjHOLaA7BkQeu8TC6dJqr4C8fhZdk0+45z3a0egFdm9b7XuQOuB 9Z7WCrdHUonYa7XeKtIxF97k39Ouqvkbr4CdhwfMrADEf9hrg/I9/a2gv0trP2OV6wq/ vYgQiOgOyqoHRLF93V/LTVGG7K2ge3Up/MBRqWiMh4ZsLMDEuLJYClJDzVD5gTpExb1N ZQzPMB3dPQMjgjAG5MSP8a/H1+0zSHrssqu0XDTNCr3YGkeYPxhQorhfhgPeQgrXVPl1 QAlHJITsZVy28SPtlCZE/c8ZHsacxsN1s3G/L3hfxoc+f7XYb8WR7JM1aC+uLBoeSr+a bUOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=q0EFZH49jrKMgtuaTHtLCmRFDERE0hTRYmqYi1Yg2yA=; b=aOqH5WMEd5KdoJVuvCKUL6Mhvzhkok/itiIn9muq3Ld1he+13JEa6x5+m4sY9RVgSh rzwcF8w7A0i2MqSQTzr5J5Xf1Sf7m4k6yw2Fwc54QTUYzrqxhrhUfHTJbhcC3k1PrlKB 01HpYGflg/n2wNT/iFDhKqZkV+j+9l6iDOgmQo+4xf1r5jFJ6KCI4GVVlj86gn8cZRIX hwgR8yJPJlT23T1pqKD80LN+7vM27pPy67XImlOCpJgnNO94mH4nzno33SGfPVN7Gjnr pfkHNOR9UCitnUxC3okjvFf9Bc50yuHvVkSbO9sWhM8bwG0w99MflJT0N2/2mB6ZAopa EH+g== X-Gm-Message-State: AE9vXwNbrExxIqwJCTysG/kkbo38mZfrz3b43W03UlhD5AwdFNmB9u/uINI1Kd7+0Ozcs6Cr51GTNl7EUiIaeQ== X-Received: by 10.157.7.137 with SMTP id 9mr33140085oto.108.1473107191277; Mon, 05 Sep 2016 13:26:31 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.202.75.216 with HTTP; Mon, 5 Sep 2016 13:26:30 -0700 (PDT) In-Reply-To: <6c9093cd-1323-77b1-b27e-f53b58ec86e4@ohlste.in> References: <6c9093cd-1323-77b1-b27e-f53b58ec86e4@ohlste.in> From: Alan Somers Date: Mon, 5 Sep 2016 14:26:30 -0600 X-Google-Sender-Auth: gF6_Gf53zyZsijLQrsIoynYHvMM Message-ID: Subject: Re: AIO not working on NFS share - ? Regression To: Jim Ohlstein Cc: FreeBSD Stable ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2016 20:26:32 -0000 Just to get your webserver out of the picture, could you please try running the aio test suite on an NFS share? Do it like this: $ cd /usr/tests/sys/aio $ export TMPFS=/path/to/some/nfs/share $ kyua test -Alan On Mon, Sep 5, 2016 at 2:14 PM, Jim Ohlstein wrote: > Hello, > > For sometime now we've used a backend (non-internet accessible) server to > generate static content that is shared via NFS to a front-end server for > internet access. Both machines use ZFS exclusively. > > The webserver is nginx and we had AIO set to on, with the AIO module built > into the kernel.In 10.x it "just worked". > > About two weeks ago I upgraded that backend machine to 11-STABLE in order to > start building packages for 11. I've just updated it again to r305417. I > don't recall it not working as expected. > > More recently I upgraded the front-end machine to 11-STABLE @r305311. Since > then, AIO is not working and I get a critical error in the nginx logs like > this: > > 2016/09/05 15:58:02 [crit] 21145#0: *649 aio_read("/path/to/file") failed > (45: Operation not supported) while sending response to client ... > > In 11 AIO is built into the kernel by default, and I have confirmed that it > works as expected in files from a local file system. Since the webserver > isn't aware that the file system in question is shared via NFS, it seems > this is an operating system issue. > > -- > Jim Ohlstein > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"