Return-Path: Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: (qmail 20693 invoked from network); 2 Mar 2011 16:18:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 16:18:29 -0000 Received: (qmail 61502 invoked by uid 500); 2 Mar 2011 16:18:29 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 61079 invoked by uid 500); 2 Mar 2011 16:18:25 -0000 Mailing-List: contact hdfs-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-user@hadoop.apache.org Delivered-To: mailing list hdfs-user@hadoop.apache.org Received: (qmail 61070 invoked by uid 99); 2 Mar 2011 16:18:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:18:25 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jason.rutherglen@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:18:18 +0000 Received: by qyk30 with SMTP id 30so175406qyk.14 for ; Wed, 02 Mar 2011 08:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=1uhRs6Uh514tvHYbB9v1czFTqNuCxbiKQUJ19QggcbA=; b=NCGnFFPnAdcfqveWjKUolxjrZZYGoo26zqPDiBJG/gZIhZV9csinVdfQ14sNCcJNgu zlCfcTSRCLl3o32oiupXDZVJU+xUeQLratDv3ZqbvNMn/xYU/+/hVBZ5T/wrZFxMvz11 TI6SfnFo8th1mfZYR13IWEDK1yKZog/usg8Cs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=VuOjR8Mpot737YchD7cs28fzzwpY2ipQF/F9Y7shswbhCbE6dLGHlnPiHJ2mTHhMb3 riqo1y7feyY0rEcIIL7QWSOegvTnuc49f/J978PE4iydWurA4bKibyOosbgNb0QAiFod r163ck8i0TjYTZcrHrSAgPKqv408GcgLIjK3E= MIME-Version: 1.0 Received: by 10.229.246.136 with SMTP id ly8mr6504560qcb.244.1299082678008; Wed, 02 Mar 2011 08:17:58 -0800 (PST) Received: by 10.229.65.198 with HTTP; Wed, 2 Mar 2011 08:17:57 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Mar 2011 08:17:57 -0800 Message-ID: Subject: Re: Is DFSInputStream.read(long position,...) designed for multi threaded access? From: Jason Rutherglen To: Todd Lipcon Cc: hdfs-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Todd, Thanks for the reply. I looked at HDFS-941 which seems to remove the redundant creation of BlockReaders. That and HDFS-347 will solve some of the issues, however I think there's also the sendmsg() of the file descriptor that also needs to be implemented? Jason On Tue, Mar 1, 2011 at 5:58 PM, Todd Lipcon wrote: > Hi Jason, > > Yes, this method is currently very inefficient.. HDFS-941 will > hopefully improve this situation, but currently there's no > particularly efficient way to do multithreaded random access. > > -Todd > > On Tue, Mar 1, 2011 at 4:24 PM, Jason Rutherglen > wrote: >> It's unsynchronized however it's creating a new BlockReader on each >> call, that seems like a problem? >> > > > > -- > Todd Lipcon > Software Engineer, Cloudera >