From owner-freebsd-arch@FreeBSD.ORG Sun Oct 30 00:27:16 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 5E66C1065672 for ; Sun, 30 Oct 2011 00:27:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1BAD98FC0A for ; Sun, 30 Oct 2011 00:27:15 +0000 (UTC) Received: by vws11 with SMTP id 11so6563419vws.13 for ; Sat, 29 Oct 2011 17:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=WHIUtkp7H6zi/GDHdUN/287LhnU0M7IICfPtRogOjtk=; b=uqMUx2CIXEFYhU+Ysp+/hf6lMNyk9ovFft0zsPsVBOe9MmbVAxitDxeOEvNdkz9gNm 6ZoItSmyZM8odZJ3aGzcvD2TVHd81wHNGeo3AMuNr7xNI2/Aq7K/kCdx+7Lz1blOLm4d RuYtqYXjLVUDOSyinA8Wf1Ie25b6FcCC87W04= MIME-Version: 1.0 Received: by 10.52.34.100 with SMTP id y4mr2029381vdi.66.1319933119714; Sat, 29 Oct 2011 17:05:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.164.101 with HTTP; Sat, 29 Oct 2011 17:05:19 -0700 (PDT) In-Reply-To: <458756137.20111030024046@serebryakov.spb.ru> References: <201110281426.00013.jhb@freebsd.org> <4EAB550E.3060603@FreeBSD.org> <458756137.20111030024046@serebryakov.spb.ru> Date: Sun, 30 Oct 2011 11:05:19 +1100 X-Google-Sender-Auth: 1NhiLTh5bcCPUmjhNkR54FCadd4 Message-ID: From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: arch@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 00:27:16 -0000 2011/10/30 Lev Serebryakov : > Hello, Doug. > You wrote 29 =D0=BE=D0=BA=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2011 =D0=B3., 5:2= 1:18: > >>> You can read the description of posix_fadvise() (which this implements)= here: >> If you want a real-world consumer of posix_fadvise you can take a look >> at net-p2p/libtorrent-rasterbar15. The code is ifdef'ed out for FreeBSD >> because we don't have that yet, but it should be obvious how to >> re-enable it. There are a few clients that use that lib, qbittorrent is >> probably the most straightforward. > =C2=A0net-p2p/transmission-daemon could be used, too. It shows very poor > performance on UFS (90% in pread() call and 50% of wall time to > saturate 40Mbit/s channel from fast disk) compared to Linux, where > such interface exists. ... why? Squid/Lusca doesn't suffer that way. Adrian