Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 77F22194E9 for ; Wed, 27 Apr 2016 23:48:28 +0000 (UTC) Received: (qmail 3318 invoked by uid 500); 27 Apr 2016 23:48:28 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 3265 invoked by uid 500); 27 Apr 2016 23:48:28 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 3254 invoked by uid 99); 27 Apr 2016 23:48:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2016 23:48:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AF6C11A12B6 for ; Wed, 27 Apr 2016 23:48:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8Lq9-1o5DyPK for ; Wed, 27 Apr 2016 23:48:26 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE36E5F297 for ; Wed, 27 Apr 2016 23:48:25 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id BEB3E265131D for ; Wed, 27 Apr 2016 16:34:04 -0700 (PDT) Date: Wed, 27 Apr 2016 16:34:06 -0700 (PDT) From: ccanning To: user@ignite.apache.org Message-ID: <1461800046328-4628.post@n6.nabble.com> In-Reply-To: <1461622401994-4508.post@n6.nabble.com> References: <1461282071968-4433.post@n6.nabble.com> <1461355939874-4465.post@n6.nabble.com> <1461622401994-4508.post@n6.nabble.com> Subject: Re: Performance Issue - Threads blocking MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Matt, you nailed the problem. We have scenario where there are a bunch of hot keys that are accessed concurrently (about 1.2 billion requests/day but consistently 150 concurrent users and peaks of 10x). For us, this cache is meant to always be read-only and we never need to copy as data is never dirtied. To help with the problem, I moved all values into the off-heap memory and only kept the keys in-heap and disabled eagerTTL. We are still getting performance problems compared to using ehcache with the BigMemoryGo off-heap implementation. But, the above made it usable. Just to give you performance numbers: ~ 17 seconds per request with the blocking Median time: 64 ms, 90% 120ms, max time: 1.2 seconds The max was cold cache. Turning off copy should probably put it in the same ballpark as bigmemory as that option was called out in their documentation. A complete read-only option that only blocks when evisting (if even needed might provide even more head-room. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Performance-Issue-Threads-blocking-tp4433p4628.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.