From: Rick Peralta Subject: Re: chunkd design notes Date: Fri, 4 Sep 2009 11:17:18 -0400 (EDT) Message-ID: <22571352.1252077438627.JavaMail.root@mswamui-thinleaf.atl.sa.earthlink.net> Reply-To: Rick Peralta Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik Cc: Project Hail , Pete Zaitcev Hi Jeff, After looking at the ChunkD code and related systems it is not clear that multi-threading will be a performance win and may have adverse effects. The critical issues come down to the storage, network and application. Given the server cluster application, a Gbe network interface and rotating media storage, it is clear that the disk media speed is the bottleneck and seek time a significant hazard. The set-up time for a transfer is relatively small compared to the disk time for large transfers. Allowing multiple threads may cause thrashing of the I/O system, driving seek time into the lead bottleneck. We need a better model and testing to see what really makes sense in order to proceed intelligently. Also, there are a wide variety of threading options. Using Pthreads is probably the most broadly understood and supported. - Rick