Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4BC392AC for ; Thu, 16 Feb 2012 17:06:05 +0000 (UTC) Received: (qmail 4211 invoked by uid 500); 16 Feb 2012 17:06:02 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 4154 invoked by uid 500); 16 Feb 2012 17:06:02 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 4146 invoked by uid 99); 16 Feb 2012 17:06:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 17:06:02 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markq2011@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 17:05:54 +0000 Received: by vbjk13 with SMTP id k13so2551589vbj.35 for ; Thu, 16 Feb 2012 09:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=juKGigGr5tjDvnKNFBT1GpU6uda/kPmo6Ma3POjEtDM=; b=urhlI3oDy+VLUjp1jjNsAgClGZC/myQo91b1iong5Dzbzki5rnwh7TPPaqh2Y8rNZE J8013MloAtfWgclysGRhaza1Bpwzo4AEfVvDATqc2GLbtDYOTBUG3JCZFhPpbHYz0lyS EeILdPHKyK9MfB0vkM4qkgB4a0t9aorbykgW4= MIME-Version: 1.0 Received: by 10.52.29.75 with SMTP id i11mr1352797vdh.23.1329411933743; Thu, 16 Feb 2012 09:05:33 -0800 (PST) Received: by 10.220.117.142 with HTTP; Thu, 16 Feb 2012 09:05:33 -0800 (PST) In-Reply-To: References: Date: Thu, 16 Feb 2012 09:05:33 -0800 Message-ID: Subject: Re: memory of mappers and reducers From: Mark question To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=20cf307cfd46122c3e04b917d6b6 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307cfd46122c3e04b917d6b6 Content-Type: text/plain; charset=ISO-8859-1 Great! thanks a lot Srinivas ! Mark On Thu, Feb 16, 2012 at 7:02 AM, Srinivas Surasani wrote: > 1) Yes option 2 is enough. > 2) Configuration variable "mapred.child.ulimit" can be used to control > the maximum virtual memory of the child (map/reduce) processes. > > ** value of mapred.child.ulimit > value of mapred.child.java.opts > > On Thu, Feb 16, 2012 at 12:38 AM, Mark question > wrote: > > Thanks for the reply Srinivas, so option 2 will be enough, however, when > I > > tried setting it to 512MB, I see through the system monitor that the map > > task is given 275MB of real memory!! > > Is that normal in hadoop to go over the upper bound of memory given by > the > > property mapred.child.java.opts. > > > > Mark > > > > On Wed, Feb 15, 2012 at 4:00 PM, Srinivas Surasani > wrote: > > > >> Hey Mark, > >> > >> Yes, you can limit the memory for each task with > >> "mapred.child.java.opts" property. Set this to final if no developer > >> has to change it . > >> > >> Little intro to "mapred.task.default.maxvmem" > >> > >> This property has to be set on both the JobTracker for making > >> scheduling decisions and on the TaskTracker nodes for the sake of > >> memory management. If a job doesn't specify its virtual memory > >> requirement by setting mapred.task.maxvmem to -1, tasks are assured a > >> memory limit set to this property. This property is set to -1 by > >> default. This value should in general be less than the cluster-wide > >> configuration mapred.task.limit.maxvmem. If not or if it is not set, > >> TaskTracker's memory management will be disabled and a scheduler's > >> memory based scheduling decisions may be affected. > >> > >> On Wed, Feb 15, 2012 at 5:57 PM, Mark question > >> wrote: > >> > Hi, > >> > > >> > My question is what's the difference between the following two > settings: > >> > > >> > 1. mapred.task.default.maxvmem > >> > 2. mapred.child.java.opts > >> > > >> > The first one is used by the TT to monitor the memory usage of tasks, > >> while > >> > the second one is the maximum heap space assigned for each task. I > want > >> to > >> > limit each task to use upto say 100MB of memory. Can I use only #2 ?? > >> > > >> > Thank you, > >> > Mark > >> > >> > >> > >> -- > >> -- Srinivas > >> Srinivas@Cloudwick.com > >> > > > > -- > -- Srinivas > Srinivas@Cloudwick.com > --20cf307cfd46122c3e04b917d6b6--