From owner-freebsd-questions@FreeBSD.ORG Tue Dec 11 12:29:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40EF516A47A for ; Tue, 11 Dec 2007 12:29:57 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.8.60]) by mx1.freebsd.org (Postfix) with ESMTP id DCD6E13C44B for ; Tue, 11 Dec 2007 12:29:56 +0000 (UTC) (envelope-from kheuer2@gwdg.de) Received: from gwdu60.gwdg.de (localhost [127.0.0.1]) by gwdu60.gwdg.de (8.13.8/8.13.6) with ESMTP id lBBBwtxP084740; Tue, 11 Dec 2007 12:58:55 +0100 (CET) (envelope-from kheuer2@gwdg.de) Received: from localhost (kheuer2@localhost) by gwdu60.gwdg.de (8.13.8/8.13.6/Submit) with ESMTP id lBBBwjnS084736; Tue, 11 Dec 2007 12:58:55 +0100 (CET) (envelope-from kheuer2@gwdg.de) X-Authentication-Warning: gwdu60.gwdg.de: kheuer2 owned process doing -bs Date: Tue, 11 Dec 2007 12:58:45 +0100 (CET) From: Konrad Heuer To: Wojciech Puchar In-Reply-To: <20071211120127.F1536@wojtek.tensor.gdynia.pl> Message-ID: <20071211125137.T46172@gwdu60.gwdg.de> References: <20071211120127.F1536@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: why nfs is so slow? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2007 12:29:57 -0000 On Tue, 11 Dec 2007, Wojciech Puchar wrote: > i'm getting about 6MB/s with NFS (100Mbit cross-connect ethernet), while over > 9.5 by FTP. > > nfs is set to work over TCP. To my mind, this is because NFS is stateless because of being designed to share filesystem on a whole local network. Thus, every remote procedure call (the basic NFS operation) is self contained. Thus, every single read request causes the server to open the file, to read the number of bytes requested, and to close the file. If you compare this to a typical peer-to-peer ftp session, the overhead is obvious. On the other hand, ftp is a very special application. Best regards Konrad Heuer GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de