Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 31144 invoked from network); 20 Jul 2009 23:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jul 2009 23:02:29 -0000 Received: (qmail 91295 invoked by uid 500); 20 Jul 2009 23:03:34 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 91199 invoked by uid 500); 20 Jul 2009 23:03:33 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 91191 invoked by uid 99); 20 Jul 2009 23:03:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 23:03:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.rutherglen@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 23:03:25 +0000 Received: by qw-out-2122.google.com with SMTP id 8so1008837qwh.53 for ; Mon, 20 Jul 2009 16:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=F06yK2KEbqvH93NNvLPtcyzkg1cjkEaTEHH45Jg7rYM=; b=aIvorNBuce7tQ/+Due5YVxxWwBMjuGtpNHOBPu6B9bMc5eL3CFXscpNAC1H5ngoCHV LVwsqZULUz88O2mJXlX+lIqZPM1Yr5abPux/c7bAvdsczvV7utcah8AaQ5aDLBRQQqFQ D+fXF0AAVGWTDU/sLmty33/YePvRI7D2t0BQM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CLx9ZhbP0NYIrQfrATGBIT48dPGa5jC8DK1BjVHEZ5R30hHNQ+N3M8BET8oag24mLd 3auiYUsZB5GT4H1gusaU6MuUNTY0XKrr5IncuNZVLLDH629gpOyZjVPaMScN7oc0DEFn s6BpQ1V2pczF1o9a3dkia8CFhvJiz+wezvQA4= MIME-Version: 1.0 Received: by 10.224.11.66 with SMTP id s2mr3178818qas.226.1248130985118; Mon, 20 Jul 2009 16:03:05 -0700 (PDT) In-Reply-To: <9ac0c6aa0907180912q3114fea4ta752dafaccef57e1@mail.gmail.com> References: <85d3c3b60907180737te76fa11lffbd0a7f88ae32ae@mail.gmail.com> <9ac0c6aa0907180912q3114fea4ta752dafaccef57e1@mail.gmail.com> Date: Mon, 20 Jul 2009 16:03:05 -0700 Message-ID: <85d3c3b60907201603y3bc8f39bse522ced325e2ec29@mail.gmail.com> Subject: Re: Throttling merges From: Jason Rutherglen To: java-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yep, pretty much like "ionice" for Linux. At the Directory level makes the most sense with the context passed in. > then somehow add throttling in there. Yeah I'm not sure how exactly that will work yet. On Sat, Jul 18, 2009 at 9:12 AM, Michael McCandless wrote: > The goal is to be like "ionice" right? =A0Meaning, lower the priority of > IO caused by merging? =A0I agree that makes sense. > > I wonder if we could implement it in the Directory level, so that when > openInput/createOutput is called we can optionally specify the > "context" (reader, merging, writer, etc.), and then somehow add > throttling in there. > > Mike > > On Sat, Jul 18, 2009 at 10:37 AM, Jason > Rutherglen wrote: >> It may be useful to allow users to throttle merges. A callback >> that IW passes into SegmentMerger would suffice where individual >> SM methods make use of the callback. I suppose this could slow >> down overall merging by adding a potentially useless method >> call. However if merging typically consumes IO resources for an >> extended period of time, this offers a way for the user to tune >> IO consumption and at preferred times free up IO for other >> tasks. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org