From owner-freebsd-arch@FreeBSD.ORG Sun Oct 30 11:57:25 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 07A51106566C; Sun, 30 Oct 2011 11:57:25 +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 7F62B8FC0C; Sun, 30 Oct 2011 11:57:24 +0000 (UTC) Received: by vws11 with SMTP id 11so6763146vws.13 for ; Sun, 30 Oct 2011 04:57:23 -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; bh=RoIq4wxrcTMEwNW/Jlh/8XdoOwC9HXs4xeAHear/YSo=; b=U4rr/WxBrpfaedI6w3ZsmzE4YD30t4nrvxUZpO0B9k2NZAVb8MiWSsAfBcLUblBqWO 2mXhI+nj9A2d7xkJTqCQfHW8Wh/99cH0csVsRMMDOk2jOBpvjdfFSTIVymNL1s7w7VRg A5qe0G/eAFCgh5GrMwTH0VpUb4mNz7qGtb/+Y= MIME-Version: 1.0 Received: by 10.52.36.237 with SMTP id t13mr2501963vdj.45.1319975843791; Sun, 30 Oct 2011 04:57:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.164.101 with HTTP; Sun, 30 Oct 2011 04:57:23 -0700 (PDT) In-Reply-To: <1855260864.20111030155231@serebryakov.spb.ru> 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> Date: Sun, 30 Oct 2011 22:57:23 +1100 X-Google-Sender-Auth: uYKyLQVHFbo2bZEEOAxCFhUgwOY Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 11:57:25 -0000 Right, that's why Squid/Lusca sucks much less there. The IO is done using a pool of threads. 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.. Adrian