Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C67EDCEA for ; Sat, 11 Aug 2012 04:18:27 +0000 (UTC) Received: (qmail 31027 invoked by uid 500); 11 Aug 2012 04:18:25 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 30843 invoked by uid 500); 11 Aug 2012 04:18:25 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 30784 invoked by uid 99); 11 Aug 2012 04:18:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 04:18:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavan.baburao@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 04:18:17 +0000 Received: by obbtb18 with SMTP id tb18so4109632obb.35 for ; Fri, 10 Aug 2012 21:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=prwbqr1wUeEZAqs9wgQeJtt/r8YScPbZwrADpET+xCk=; b=TUsO+0u6Pewm7eYPmIDhXJsrEBnGcrONS/Tnp83KKqx+z5fusTQekUkoHo7pHBGJHd kXcagzoQYMEUKQUfbrgQzsB5FqQEjJVaGPbu8XKHSVfPlK44vpd26mfcWqflFhgRIOKS bti7YVotK1uskpoHz/Rx3Jgbk2Jkn6NlL672QjwjlXEMHntytciUbWLh6fezjGq79vK/ OljwTCSxMeyKGNCIiwQGTZ1912M8LTgjjKsPCcy1+B8NAjM1bmZ7ry6CUnBM8HvD//Li pvCzqnU7cz94eaIXOS9xImedG8/o9EsEtqXGugpT59CPIXyN9Qzjr95x9xryQPjGHtAB +aqg== MIME-Version: 1.0 Received: by 10.50.6.197 with SMTP id d5mr272557iga.44.1344658676815; Fri, 10 Aug 2012 21:17:56 -0700 (PDT) Received: by 10.50.87.69 with HTTP; Fri, 10 Aug 2012 21:17:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Aug 2012 21:17:56 -0700 Message-ID: Subject: Re: Setting number of parallel Reducers and Mappers for optimal performance From: Pavan Kulkarni To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f502dd0c6955f04c6f5bebb X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f502dd0c6955f04c6f5bebb Content-Type: text/plain; charset=ISO-8859-1 Arun, Thanks a lot for your response. I am running on a 16 core Xeon processor and 12 spindles.So running 12 Mappers with 2G and 6 Reducers with 3G might give me the best performance.Also is there a general formula to arrive at those numbers? On Fri, Aug 10, 2012 at 7:34 PM, Arun C Murthy wrote: > Pavan, > > A very important factor is how much CPU and how many spindles you have... > > Your proposal for memory (44G in all) seems reasonable. > > However, if you have 12 spindles and sufficient CPU I'd do something like > 10 or 12 maps of 2G each and 6 reduces with 3G/4G each depending on how you > want to slice/dice your slots. > > Arun > > On Aug 10, 2012, at 1:24 PM, Pavan Kulkarni wrote: > > > Hi, > > > > I was trying to optimize Hadoop-1.0.2 performance by setting > > *mapred.tasktracker.map.tasks.maximum > > ,**mapred.tasktracker.reduce.tasks.maximum* > > such that the entire memory is utilized. The tuning of this parameter is > > given as (CPUS > 2) ? (CPUS * 0.50): 1 for reduce and (CPUS > 2) ? (CPUS > * > > 0.75): 1 for map. > > I didn't quite get how they made this suggestion ? Isn't the setting > > dependent on main memory available? > > For example I had 48GB of memory and I split the parameters as 32 for > > mappers and 12 for reducers and remaining 4 for OS and other processes. > > Please correct me if my assumption is wrong.Also suggest a way to get the > > optimal performance by setting these parameters. Thanks. > > > > -- > > > > --With Regards > > Pavan Kulkarni > > -- > Arun C. Murthy > Hortonworks Inc. > http://hortonworks.com/ > > > -- --With Regards Pavan Kulkarni --e89a8f502dd0c6955f04c6f5bebb--