Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49CCA10333 for ; Fri, 21 Jun 2013 20:51:25 +0000 (UTC) Received: (qmail 11696 invoked by uid 500); 21 Jun 2013 20:51:20 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 11541 invoked by uid 500); 21 Jun 2013 20:51:20 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 11532 invoked by uid 99); 21 Jun 2013 20:51:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 20:51:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of acm@hortonworks.com designates 209.85.220.50 as permitted sender) Received: from [209.85.220.50] (HELO mail-pa0-f50.google.com) (209.85.220.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 20:51:15 +0000 Received: by mail-pa0-f50.google.com with SMTP id fb1so8330250pad.9 for ; Fri, 21 Jun 2013 13:50:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=mlc4G6di1N/M0F+s9ftqqjnTQqSFKx9UXUL0X/tKxf8=; b=fQG5a283Srz34cfP5OK4e4/JSAVpeQNK8T1JBlEMhgOuNxSi/YsRYdtUDfCZcLyp0C 8HdBgtRTgrivVVL5d2vtTFldn6ntspp2AFL4G2UOp6YxqovJzgvFGtay+b5d5+J12b89 Twx6kwAi7gMFk0PoMOFQK6Bw7gEMQVgsZhxlP29Acs8X5fYT/hiH77h2hpbJuExkcNrS iaiR7CXFeshZgrFxW7oQ9cBNvS/ia5KNUUuO8Q5pT+6nOP/IsTsCVHGgekZ2NYD/59mk OuEe9wlmrxKh6AYkJ5F8MCSZOsvQZReFFxV8Z7voY7dvzcHUjQFsuXa3U+P0UVvNS8Gl sygQ== X-Received: by 10.68.217.38 with SMTP id ov6mr9784192pbc.9.1371847854740; Fri, 21 Jun 2013 13:50:54 -0700 (PDT) Received: from [10.11.2.177] ([192.175.27.2]) by mx.google.com with ESMTPSA id xu10sm7168181pab.3.2013.06.21.13.50.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Jun 2013 13:50:51 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: How is the memory usage of containers controlled? From: Arun C Murthy In-Reply-To: <51C4B7C9.3030509@gmail.com> Date: Fri, 21 Jun 2013 13:50:49 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <9D440623-759D-4564-9A17-59C12C424E7F@hortonworks.com> References: <51C0B53A.5090500@gmail.com> <2A852BE6-D4F0-409D-B6C2-BAE2310986E9@hortonworks.com> <51C4B7C9.3030509@gmail.com> To: user@hadoop.apache.org X-Mailer: Apple Mail (2.1508) X-Gm-Message-State: ALoCoQkyMxnYFLx/I5nHU69IbcX1mceCbGnJx3h5ll+43RCKexn5cPFMWTJ3lf5JDdQQqQ/6WU2X X-Virus-Checked: Checked by ClamAV on apache.org Start with LinuxResourceCalculatorPlugin. Arun On Jun 21, 2013, at 1:30 PM, Yuzhang Han = wrote: > Thank you Arun. >=20 > I am trying to study how YARN works. Can someone tell me which = class(es) monitors containers w.r.t. memory usage? >=20 >=20 > On 6/18/2013 4:07 PM, Arun C Murthy wrote: >> NodeManagers monitor containers w.r.t memory usage, and put = containers in cgroups with cpu limits to restrict CPU usage. >>=20 >> On Jun 18, 2013, at 12:30 PM, Yuzhang Han = wrote: >>=20 >>> Hi, >>> I am curious about how YARN containers control their memory usage. = Say, I have a MR job, and I configure that every map task should be = assigned a 1 GB container, and every reduce task a 1.5 GB one. So, when = YARN runs the containers, how is it ensured that all map containers use = less than 1 GB memory and all reduce containers less than 1.5 GB? Is = container memory control realized via -Xmx arguments in the scripts = generated by YARN to invoke the MR program in the containers? >>>=20 >>> Thank you. >>=20 >> -- >> Arun C. Murthy >> Hortonworks Inc. >> http://hortonworks.com/ >>=20 >>=20 >=20 -- Arun C. Murthy Hortonworks Inc. http://hortonworks.com/