From owner-freebsd-questions@freebsd.org Wed Mar 30 12:17:19 2016 Return-Path: Delivered-To: freebsd-questions@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 4F00EAE2A7D for ; Wed, 30 Mar 2016 12:17:19 +0000 (UTC) (envelope-from maxnix.bsd@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 DBF111E88 for ; Wed, 30 Mar 2016 12:17:18 +0000 (UTC) (envelope-from maxnix.bsd@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id p65so14218980wmp.1 for ; Wed, 30 Mar 2016 05:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=M9GG5RXgYG2zv45bwxqot9iYWS/SwTKNrcWiAUK308A=; b=PxobUGjqxIksPbh1eJAbTgjZmUxYx9Yq9ITYgSYESxCacSJVR/+Lsx5k6Gh3CKB6oU HikPpU2My4wrHkiwZIFfUAaQwi7Pw3xVjcsuxyonedLuPU0KGLM72WfMGEwPd6shK/Kh 1UUOKbP6iJGgn2UAfK2Ugu7bF2DsKhIbumAF2d1+g8r5UeFiPRNK4GM6PHv2+HsJqma9 YNQ7nLLVMY8xMOK+t1PKqfQUKuee1mKhxiG8+RPVavjF61LeivNMJVZO1IEH+AaMy1nO rAXCUIPdyB1xtfovJ6Ch9ZnbVRM4MFnQLvJvLupRCyQkFYbEBcMOA1OPVadHVzWkWePw q3Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=M9GG5RXgYG2zv45bwxqot9iYWS/SwTKNrcWiAUK308A=; b=mLgcOfVpcLykLTmdgMPCAdISBT96Dh3Vy5xD0Vcg4f6uuIK0CN1mdVtJ9aMnKBDluj gsQm4n4SAHbVh0v/ppAP0LdP06/L+cmsa9cvQ4/1LZNGy806ymqN5oTwiyCSrGZ8myY0 d26j3U6tkgPlfpQ9Z1YZTguLchAcDQ4KBjlP7qXBCUqloJhVBVnbeSOsFCyfz9JljSKw 4hCiS5/nSXujIFamncEfP70FAby6QCahbYO3MDOgw2gmmah9TAULTnUyeu43y5rYA2TY v1xgsSfTygjnHlzX4+J6aukU/SLAWTUw/3NKmxkqIavSbO7Eh+yDJ9k4YDt52V0AHxGI CQ4g== X-Gm-Message-State: AD7BkJKcz7OO9vw78S06UUYgiYHuAl2y2xYHR4u9+H/TXh0fLVdWzKkRP7l3qDFirt5BQw== X-Received: by 10.28.179.84 with SMTP id c81mr22749847wmf.13.1459340236997; Wed, 30 Mar 2016 05:17:16 -0700 (PDT) Received: from max-BSD ([94.163.160.58]) by smtp.gmail.com with ESMTPSA id m130sm19528472wmf.18.2016.03.30.05.17.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Mar 2016 05:17:16 -0700 (PDT) Date: Wed, 30 Mar 2016 14:17:10 +0200 From: maxnix To: Rick Miller Cc: FreeBSD Questions Subject: Re: AIO Enabled? Message-ID: <20160330141710.0c7d3500@max-BSD> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 12:17:19 -0000 Il giorno Tue, 29 Mar 2016 14:42:57 -0400 Rick Miller ha scritto: > Hi all, > > I found old mail threads and blog posts (circa 2006 - 2010) that > stated AIO is not enabled by default in FreeBSD. However, when > running strings on the kernel, it appears AIO bits may be available... > > $ sudo strings -n3 /boot/kernel/kernel | grep -i aio > aio_swake > freebsd32_aio_read > freebsd32_aio_write > freebsd32_aio_return > freebsd32_aio_suspend > freebsd32_aio_cancel > freebsd32_aio_error > freebsd32_oaio_read > freebsd32_oaio_write > freebsd32_aio_waitcomplete > freebsd32_aio_fsync > freebsd32_aio_mlock > AIOSTOP: bad channel 0x%x > AIOSYNC chan 0x%03lx pos %lu unimplemented > AIONWRITE > AIOGSIZE > AIOSSIZE > AIOGFMT > AIOSFMT > AIOGMIX > AIOSMIX > AIOSTOP > AIOSYNC > AIOGCAP > nfsaio > aio_prio_delta_max > aio_max > aio_listio_max > > aio(4) states it can be linked in t he kernel using options VFS_AIO or > dynamically using loader.conf or kldload suggesting it still is not > enabled by default. This brings me to a couple questions I hope are > easily answered. > > 1) Is AIO still disabled by default in FreeBSD 10.x and newer? > 2) Does strings send the same output above to STDOUT irregardless of > whether AIO is enabled/disabled? > > > Thanks. > 1) I just checked the GENERIC config file, there is no VFS_AIO line in it, so aio(4) is still disabled by default. Don't know about FreeBSD 11, however. 2) Yes. I have a custom kernel without neither VFS_AIO nor aio.ko and strings(1) reports an output similar to yours. Maxnix