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 2EB7D200C4D for ; Wed, 5 Apr 2017 12:55:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2D709160B94; Wed, 5 Apr 2017 10:55:47 +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 79243160B91 for ; Wed, 5 Apr 2017 12:55:46 +0200 (CEST) Received: (qmail 4313 invoked by uid 500); 5 Apr 2017 10:55:45 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 4302 invoked by uid 99); 5 Apr 2017 10:55:45 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 10:55:45 +0000 Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 41FF31A00E8 for ; Wed, 5 Apr 2017 10:55:45 +0000 (UTC) Received: by mail-qk0-f178.google.com with SMTP id p22so7115722qka.3 for ; Wed, 05 Apr 2017 03:55:45 -0700 (PDT) X-Gm-Message-State: AN3rC/5sGvAW9w4lwEXjBu4F6bWn5+Xeo4OpwEwSLiK4DmWAsS3PSVfyOQK7G/AcJJdxu7ShwabTBpYvbS1HFswp X-Received: by 10.55.55.67 with SMTP id e64mr218732qka.262.1491389744322; Wed, 05 Apr 2017 03:55:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.231 with HTTP; Wed, 5 Apr 2017 03:55:03 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Wed, 5 Apr 2017 03:55:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: IGNITE-4535 : Add option to store deserialized values on-heap To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11479434eeb9a9054c693bec archived-at: Wed, 05 Apr 2017 10:55:47 -0000 --001a11479434eeb9a9054c693bec Content-Type: text/plain; charset=UTF-8 On Wed, Apr 5, 2017 at 2:52 AM, Ilya Lantukh wrote: > Dmitry, > > 1. Setting an eviction policy should not be a mechanism to enable the > > on-heap cache. We already have eviction policies off-heap as well, and > they > > don't enable anything. On top of that, the eviction policy should not be > a > > requirement for the on-heap cache. User should still be able to enable > the > > on-heap cache, even if it grows indefinitely without evictions. We should > > have a more intuitive flag here. > > > It doesn't make any sence to me to enable on-heap cache without evictions: > it will result in having all data both in on-heap and off-heap memory. If > we want to support such use case, we should implement a separate on-heap > only mode with page memory disabled. > I agree that this would cause a double memory consumption, but yet again, we don't have a pure on-heap cache yet. Until we do, we should not require an eviction policy present for the on-heap caches. --001a11479434eeb9a9054c693bec--