Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 890F848EB for ; Wed, 8 Jun 2011 16:01:22 +0000 (UTC) Received: (qmail 60430 invoked by uid 500); 8 Jun 2011 16:01:22 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 60279 invoked by uid 500); 8 Jun 2011 16:01:22 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 60267 invoked by uid 99); 8 Jun 2011 16:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 16:01:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 16:01:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 126131080AB for ; Wed, 8 Jun 2011 16:00:59 +0000 (UTC) Date: Wed, 8 Jun 2011 16:00:59 +0000 (UTC) From: "Nathan Roberts (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1549498761.3555.1307548859072.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1253777271.389.1307455378937.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-2572) Throttle the deletion of data from the distributed cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046036#comment-13046036 ] Nathan Roberts commented on MAPREDUCE-2572: ------------------------------------------- One option might be to just do something very simple after we wakeup from every CheckPeriod. Rather than throttling logic that could be a little sophisticated and error prone. Maybe just something like: - If below low water mark - do nothing - If between low and high water marks - delete up-to a configurable number of archives (e.g. 1 is probably a nice default), or until LWM is reached - If above high water mark, delete archives until back at low water mark > Throttle the deletion of data from the distributed cache > -------------------------------------------------------- > > Key: MAPREDUCE-2572 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2572 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: distributed-cache > Affects Versions: 0.20.205.0 > Reporter: Robert Joseph Evans > Assignee: Robert Joseph Evans > Attachments: THROTTLING-security-v1.patch > > > When deleting entries from the distributed cache we do so in a background thread. Once the size limit of the distributed cache is reached all unused entries are deleted. MAPREDUCE-2494 changes this so that entries are deleted in LRU order until the usage falls below a given threshold. In either of these cases we are periodically flooding a disk with delete requests which can slow down all IO operations to a drive. It would be better to be able to throttle this deletion so that it is spread out over a longer period of time. This jira is to add in this throttling. > On investigating it seems much simpler to backport MPAREDUCE-2494 to 20S before implementing this change rather then try to implement it without LRU deletion, because LRU goes a long way towards reducing the load on the disk anyways. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira