From yarn-issues-return-145333-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed May 16 22:10:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 57763180671 for ; Wed, 16 May 2018 22:10:04 +0200 (CEST) Received: (qmail 71818 invoked by uid 500); 16 May 2018 20:10:03 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 71807 invoked by uid 99); 16 May 2018 20:10:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2018 20:10:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BE574C00CD for ; Wed, 16 May 2018 20:10:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id dr1xNG9HZH25 for ; Wed, 16 May 2018 20:10:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A2F9A5F41B for ; Wed, 16 May 2018 20:10:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0B9E8E02ED for ; Wed, 16 May 2018 20:10:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4F10E217B0 for ; Wed, 16 May 2018 20:10:00 +0000 (UTC) Date: Wed, 16 May 2018 20:10:00 +0000 (UTC) From: "Miklos Szegedi (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4599) Set OOM control for memory cgroups MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-4599?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16478= 004#comment-16478004 ]=20 Miklos Szegedi commented on YARN-4599: -------------------------------------- [~snemeth], thanks for the review. oomHandlerTemp is necessary since we may throw an exception after we set it= . An external code optimized by JVM (setting a variable before the construc= tor is finished) may get a partial copy of this object in case of the excep= tion. It is better to set the fields after the exception is not thrown. 3) This code has to be very fast do the same conversion for 1000s of contai= ners potentially, so I will keep the plain=C2=A0multiplication instead of c= alling int external code that deals with strings. =C2=A0 > Set OOM control for memory cgroups > ---------------------------------- > > Key: YARN-4599 > URL: https://issues.apache.org/jira/browse/YARN-4599 > Project: Hadoop YARN > Issue Type: Sub-task > Components: nodemanager > Affects Versions: 2.9.0 > Reporter: Karthik Kambatla > Assignee: Miklos Szegedi > Priority: Major > Labels: oct16-medium > Attachments: Elastic Memory Control in YARN.pdf, YARN-4599.000.pa= tch, YARN-4599.001.patch, YARN-4599.002.patch, YARN-4599.003.patch, YARN-45= 99.004.patch, YARN-4599.005.patch, YARN-4599.006.patch, YARN-4599.007.patch= , YARN-4599.008.patch, YARN-4599.009.patch, YARN-4599.010.patch, YARN-4599.= 011.patch, YARN-4599.sandflee.patch, yarn-4599-not-so-useful.patch > > > YARN-1856 adds memory cgroups enforcing support. We should also explicitl= y set OOM control so that containers are not killed as soon as they go over= their usage. Today, one could set the swappiness to control this, but clus= ters with swap turned off exist. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org