Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 5265 invoked from network); 12 Sep 2008 17:48:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 17:48:10 -0000 Received: (qmail 99500 invoked by uid 500); 12 Sep 2008 17:48:02 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 99326 invoked by uid 500); 12 Sep 2008 17:48:01 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 99310 invoked by uid 99); 12 Sep 2008 17:48:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 10:48:01 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [171.64.10.152] (HELO smtp-roam.Stanford.EDU) (171.64.10.152) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 17:47:02 +0000 Received: from tablet (dinozavra.Stanford.EDU [171.65.92.24]) (authenticated bits=0) by smtp-roam.Stanford.EDU (8.12.11/8.12.11) with ESMTP id m8CHlCH8013985 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Fri, 12 Sep 2008 10:47:13 -0700 From: "Dmitry Pushkarev" To: References: <000001c9148b$bbe386b0$33aa9410$@edu> <48CA9BA8.8030703@yahoo-inc.com> In-Reply-To: <48CA9BA8.8030703@yahoo-inc.com> Subject: RE: namenode multitreaded Date: Fri, 12 Sep 2008 10:47:12 -0700 Message-ID: <000001c914ff$96630ea0$c3292be0$@edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckU9n5Jid5aPwoWTUaypWx7tC4eoAAB8Uig Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org I have 15+ million small files I like to process and move around..Thus my operations doesn't really include datanodes - they're idle when I for example do FS operations (like sort a bunch of new files written by tasktracker to appropriate folders). Now I tried to use HADOOP_OPTS=-server and it seems to help a little, but still performance isn't great. Perhaps problem is in the way I play with files - it's perl script over davf2 over WebDav which uses native API. Can anyone give an example of a jython or jruby file that'd recursively go over a hdfs folder and move all files to a different folder? (My programming skills are very modest..) -----Original Message----- From: Raghu Angadi [mailto:rangadi@yahoo-inc.com] Sent: Friday, September 12, 2008 9:41 AM To: core-user@hadoop.apache.org Subject: Re: namenode multitreaded The core of namenode functionality happens in single thread because of a global lock, unfortunately. The other cpus would still be used to some extent by network IO and other threads. Usually we don't see just one cpu at 100% and nothing else on the other cpus. What kind of load do you have? Raghu. Dmitry Pushkarev wrote: > Hi. > > > > My namenode runs on a 8-core server with lots of RAM, but it only uses one > core (100%). > > Is it possible to tell namenode to use all available cores? > > > > Thanks. > >