From owner-freebsd-arch@FreeBSD.ORG Sun Oct 30 12:03:41 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4340D106567A; Sun, 30 Oct 2011 12:03:41 +0000 (UTC) (envelope-from lev@freebsd.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 048458FC14; Sun, 30 Oct 2011 12:03:41 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:504f:9791:43c0:21ab]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id B24284AC1C; Sun, 30 Oct 2011 16:03:39 +0400 (MSK) Date: Sun, 30 Oct 2011 16:03:30 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1124900347.20111030160330@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <201110281426.00013.jhb@freebsd.org> <4EAB550E.3060603@FreeBSD.org> <458756137.20111030024046@serebryakov.spb.ru> <908954806.20111030130143@serebryakov.spb.ru> <1855260864.20111030155231@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org, lev@freebsd.org Subject: Re: [PATCH] fadvise(2) system call X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2011 12:03:41 -0000 Hello, Adrian. You wrote 30 =EE=EA=F2=FF=E1=F0=FF 2011 =E3., 15:57:23: > I bet in the torrent client case, massive speedups could be done with > correct use of either IO threads, or the POSIX AIO library. > I'm all for using fadvise() to hint to the OS about what's about to > happen (and I'll start leveraging it myself once it hits the tree) but > there are other ways to skin this cat.. Yes, but all "general-purpose" software is Linux-oriented. Replace simple model in transmission (I've thought about it) is not very simple task, and I don't think, that authors (Linux- and MacOS X-oriented) is not interested. --=20 // Black Lion AKA Lev Serebryakov