Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2016 14:17:10 +0200
From:      maxnix <maxnix.bsd@gmail.com>
To:        Rick Miller <vmiller@hostileadmin.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: AIO Enabled?
Message-ID:  <20160330141710.0c7d3500@max-BSD>
In-Reply-To: <CAHzLAVHx9o5PD45MUhnR28uZrxTGNCqd1eaQ0oqEYR1RaF85QQ@mail.gmail.com>
References:  <CAHzLAVHx9o5PD45MUhnR28uZrxTGNCqd1eaQ0oqEYR1RaF85QQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Il giorno Tue, 29 Mar 2016 14:42:57 -0400
Rick Miller <vmiller@hostileadmin.com> 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



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