Date: Mon, 13 Jan 2014 14:19:45 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Jilles Tjoelker <jilles@stack.nl> Subject: Re: [patch] libc/resolv: use poll() instead of kqueue() Message-ID: <201401131419.45188.jhb@freebsd.org> In-Reply-To: <20140108225951.GB87058@stack.nl> References: <20140108225951.GB87058@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, January 08, 2014 5:59:52 pm Jilles Tjoelker wrote: > The resolver in libc creates a kqueue for watching a single file > descriptor. This can be done using poll() which should be lighter on the > kernel and reduce possible problems with rlimits (file descriptors, > kqueues). I agree that a kqueue for a single fd is a bit silly in terms of overhead compared to just calling poll. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401131419.45188.jhb>