From owner-freebsd-arch@FreeBSD.ORG Sun Oct 30 11:44:45 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 3F835106564A; Sun, 30 Oct 2011 11:44:45 +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 B57928FC08; Sun, 30 Oct 2011 11:44:44 +0000 (UTC) Received: by vws11 with SMTP id 11so6759318vws.13 for ; Sun, 30 Oct 2011 04:44:43 -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=lai8vpDZM0AYYnfsnJULmldr6V/vvZWnwHJ6VjtRD0Y=; b=qCTzg89NuVVqUWJtJ6W2sReic4419Cm0nnHC2pjIJO5NqkchJ6QFE0GkPq6WxQGmoU VIJu1jpgxwg/l1bj08lOe0mUa/9bMaIDjauKuIwBNFYI0SA98NjS56vxu70hvl/XWNAd zRPgGXAeYUZRA1MpInVOqJ5Ev/eVhz6zNlfKA= MIME-Version: 1.0 Received: by 10.52.100.70 with SMTP id ew6mr2493920vdb.49.1319975083531; Sun, 30 Oct 2011 04:44:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.52.164.101 with HTTP; Sun, 30 Oct 2011 04:44:43 -0700 (PDT) In-Reply-To: <908954806.20111030130143@serebryakov.spb.ru> References: <201110281426.00013.jhb@freebsd.org> <4EAB550E.3060603@FreeBSD.org> <458756137.20111030024046@serebryakov.spb.ru> <908954806.20111030130143@serebryakov.spb.ru> Date: Sun, 30 Oct 2011 22:44:43 +1100 X-Google-Sender-Auth: MrKh8i-uQyKhSJCYDZmHDiEjGW4 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 11:44:45 -0000 On 30 October 2011 20:01, Lev Serebryakov wrote: > =A0 I don't know. But I could show your results of typical ktrace, where > =A0transmission-daemon spends 590 seconds of 600 (Wall time) in > =A0pread() syscall , and real read speed is only about 30Mbit/s (and > =A0this FS could be read at speed about 300MiB/s, 100 times faster, > =A0with linear read). Is the app doing multi-threaded disk IO? How random is the IO? How is fadvise being used in the torrent client? Is it being used to force in data into cache? I'm not knocking the fadvise work (far from it!), I'd just like to better understand what's going on here. adrian