Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 72CB5200C72 for ; Fri, 12 May 2017 21:53:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6C926160BB8; Fri, 12 May 2017 19:53:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B1525160BA8 for ; Fri, 12 May 2017 21:53:08 +0200 (CEST) Received: (qmail 41924 invoked by uid 500); 12 May 2017 19:53:02 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 41912 invoked by uid 99); 12 May 2017 19:53:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2017 19:53:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3F71B185E18 for ; Fri, 12 May 2017 19:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.082 X-Spam-Level: X-Spam-Status: No, score=-1.082 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6utxI1SVu77Z for ; Fri, 12 May 2017 19:53:01 +0000 (UTC) Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A2F4B5FB12 for ; Fri, 12 May 2017 19:53:00 +0000 (UTC) Received: by mail-wr0-f179.google.com with SMTP id l50so49504338wrc.3 for ; Fri, 12 May 2017 12:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=TY9pQq3p2+HFUGO5cg169+e2bUOw6NgrKQM9F6+YqQE=; b=ev/hHDAWSCraKzxCu3FRtkYW48BjXU2+cbaIiegghPhK+WKo9hDjprMJQYaU2ykOpB ySkcrYIACRSXjsEryVzOEd0ayZZIdOD5zYURiTfUBQRzjC91vWArXPsxb5iRBw/oCtFV yfwPWST2JTijCpemXMz0pZYBIjFWTbUVHbNpFWHSqiPEXat4dhqNjvIncIwT0oNU2S0e zNYupwqGEnK+RQSt7+puk9U8jXTuECyEFxvKN9CO8q1ulP1OOVvZexwQDrjFn2KVyjkn IGkm2OJX/17XE64ejy/HnOTbTNus6w+EVqbJdu9wizpTnjNXWrYr7J1M+lfYjF9GLyrV x07A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=TY9pQq3p2+HFUGO5cg169+e2bUOw6NgrKQM9F6+YqQE=; b=oTa9AK1QODEaOsAHUQj8Hwmin4DkFTwVlmA2FBmzziJmnhFOeS1ZgJevgtNkFhvbdx bPHgd343+i5OvOYyp/HYFVsf/ejLQB0hzGt3ix3tiuFgsdTqksm/VGoI0CbVtFItAz5X hIbKc6AgL2y41m2V3rcFa53SEuWVgOX55cSdcYOXpQ0qvNJpWwChlNDpd+wUuvr9+5d/ umdQKolwvlsGSDG6WtS0QZ3xPEvgnBt8WwLeXglfGutumoP7H2Sx7N9xU9ADXFtpdaWv 7XaDccYc37Gvvy7Mvg/LJYFJNJBqccLlsLyRONTMgO1nLtJigJggh90RjTrdNbUnM0oM mV4g== X-Gm-Message-State: AODbwcAkqox8y77Uz5AS7NRNzH9EakRtsUQt6+4ZDrPcsiX4Nx/1/XKl DV5n8CxjBD66zgttc6M1148NrjPwJdQXSnM= X-Received: by 10.223.135.50 with SMTP id a47mr4135542wra.138.1494618779540; Fri, 12 May 2017 12:52:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.176.103 with HTTP; Fri, 12 May 2017 12:52:59 -0700 (PDT) In-Reply-To: <6B94E5D2-3428-46FB-AABD-7A543A9DFC34@me.com> References: <1494405051509-4725875.post@n4.nabble.com> <1494446886827-4725924.post@n4.nabble.com> <1494447940562-4725927.post@n4.nabble.com> <1494596187032-4726037.post@n4.nabble.com> <1494600482076-4726057.post@n4.nabble.com> <33D5C16C-3C6F-4DDB-85DD-430B5C46EB87@me.com> <6B94E5D2-3428-46FB-AABD-7A543A9DFC34@me.com> From: Clebert Suconic Date: Fri, 12 May 2017 15:52:59 -0400 Message-ID: Subject: Re: [DISCUSS] Artemis IOPS Limiter strategy To: "dev@activemq.apache.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Fri, 12 May 2017 19:53:09 -0000 The only difference in IO applied was: https://issues.apache.org/jira/browse/ARTEMIS-1117 There's also the MaxSize that we now set the maxSize at half the -Xmx (if you create a new broker).. that may have some implications on your GC depending on the test you are doing.. perhaps you could use a global max defined? On Fri, May 12, 2017 at 3:42 PM, Michael Andr=C3=A9 Pearce wrote: > Ok so it isn't the times buffer changes. Just deployed 2.1.0 with and wit= hout the timed buffer changes. Running the same tests no difference. > > Must be something else. Causing the behaviour change. > > Sent from my iPhone > >> On 12 May 2017, at 18:10, Michael Andr=C3=A9 Pearce wrote: >> >> I've left for the day now. If I get time over the weekend I'll try see i= f I can make a build of 2.1.0 without that change and see if it makes any d= ifference. >> >> Can someone point me to the PR for that change, so I know what I'm unpic= king locally? >> >> Sent from my iPhone >> >>> On 12 May 2017, at 17:58, Clebert Suconic w= rote: >>> >>> As the only thing that could affect this is the Change on timed buffer. >>> Afaik >>> >>> >>> On Fri, May 12, 2017 at 12:57 PM Clebert Suconic >>> wrote: >>> >>>> I'm considering only keeping the pooled buffer part and switch back to= the >>>> ole sleep or an improved sleep we had. >>>> >>>> >>>> >>>> On Fri, May 12, 2017 at 12:49 PM Michael Andr=C3=A9 Pearce < >>>> michael.andre.pearce@me.com> wrote: >>>> >>>>> As it seems I can't send images to mail list, just sent to you both= via >>>>> email. Some graphs we have comparing versions. >>>>> >>>>> Not sure what changes might cause it. >>>>> >>>>>> On 12 May 2017, at 17:37, Clebert Suconic >>>>> wrote: >>>>>> >>>>>> There is a class we use on producer. TokenLimiter. Perhaps you cou= ld >>>>>> reuse that one ? >>>>>> >>>>>> >>>>>>> On Fri, May 12, 2017 at 11:00 AM nigro_franz >>>>> wrote: >>>>>>> >>>>>>> I was thinking of a similar solution but I've discovered that could= n't >>>>> work >>>>>>> (in the old or the new TimedBuffer too), because of the >>>>>>> TimedBuffer::checkSize method that could force a flush if the batch >>>>> buffer >>>>>>> if not big enough to receive new data, going IOPS. >>>>>>> Sadly TimedBuffer::checkSize is outside any timeout, but depends on= the >>>>>>> writers. >>>>>>> >>>>>>> That's why I've implemented the "compensation" right after any flus= h, >>>>> in >>>>>>> order to work with forced flushes too: >>>>>>> >>>>>>> >>>>>>> >>>>> https://github.com/franz1981/activemq-artemis/blob/4b831021dab3e0dd27= 6f477e3ea665e11ab54d0e/artemis-journal/src/main/java/org/apache/activemq/ar= temis/core/io/buffer/TimedBuffer.java#L338 >>>>>>> >>>>>>> Doing it on TimedBuffer::flush all the flushes on disk will be >>>>> compensated >>>>>>> (half of the story: ASYNCIO is async so depends on libAIO partially= !) >>>>>>> Regarding the IOPS computation I've built this, as you've suggested= : >>>>>>> >>>>>>> >>>>> https://github.com/franz1981/activemq-artemis/blob/4b831021dab3e0dd27= 6f477e3ea665e11ab54d0e/artemis-journal/src/main/java/org/apache/activemq/ar= temis/core/io/buffer/TimedBuffer.java#L119 >>>>>>> >>>>>>> The performance seems pretty good, it compensates well but it is fa= ster >>>>>>> than >>>>>>> the original version, limiting IOPS too! >>>>>>> >>>>>>> Thanks, >>>>>>> Franz >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> >>>>> http://activemq.2283324.n4.nabble.com/DISCUSS-Artemis-IOPS-Limiter-st= rategy-tp4725875p4726057.html >>>>>>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >>>>>>> >>>>>> -- >>>>>> Clebert Suconic >>>>> >>>> -- >>>> Clebert Suconic >>>> >>> -- >>> Clebert Suconic --=20 Clebert Suconic