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 38C59200C29 for ; Tue, 28 Feb 2017 10:28:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 37577160B7C; Tue, 28 Feb 2017 09:28: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 827D0160B6A for ; Tue, 28 Feb 2017 10:28:46 +0100 (CET) Received: (qmail 93799 invoked by uid 500); 28 Feb 2017 09:28: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 93787 invoked by uid 99); 28 Feb 2017 09:28:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 09:28:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D86AEC094B for ; Tue, 28 Feb 2017 09:28:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.399 X-Spam-Level: ** X-Spam-Status: No, score=2.399 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id E3QpFAzU3H6Y for ; Tue, 28 Feb 2017 09:28:44 +0000 (UTC) Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A69465F23A for ; Tue, 28 Feb 2017 09:28:43 +0000 (UTC) Received: by mail-wr0-f180.google.com with SMTP id g10so4545247wrg.2 for ; Tue, 28 Feb 2017 01:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YNX+Z6usLnBzxaX1N0k+02EiVdYlKmmXVBfRdycp3CU=; b=RtjrcMaXu3y9V+UBVDLGYGKps3W23qusVSh8r5h3ZEGNMReoNYJXl6K/OGJZ6qx2kp OJsWpwkN7VwRBa1VJiqjlZcC3qaoyXePK+OvDYNLVzgXvgtlgWmYP29uApW+aQTxFYDn VMD6pfGYGipey1W5ohsR2qzKLy1vy6Oo026OibuUM06MG2hkWFPZB2Pynse9lkLHXqK3 cJLYPUroQTF7S9nZrr0lV4dBd8QRMveLwH1fV2rqAgd/wMO6NhprKbvmGLsywkQM5NvL l2iqgACgbZXKUCAQPM4nEvuryX48W9N2zSibY8fv+6FDzIKjoig4CCHlD3pd7m+loM82 6JHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YNX+Z6usLnBzxaX1N0k+02EiVdYlKmmXVBfRdycp3CU=; b=NEJy4WlEqxNejpnW8HkdedyAi/PFO/fWPJ5gVpmUPEiTR8TOyCRXkPE2oabI8vX80I tUzfofQC7iTVXyYF9AnZSF8qbFAClMI7Awj/8z50GPr946Dn2Vr3amz+pswTAr9bqw5L 5c1IYwJafnmLLRH6v/X2b5qmCilfKwPXrzWizeQuYKKAZFffQysigGwGJ2W6PnxX1Zn1 8BvQ3fiauuX0B2vJvdh72skyZ4qlHr3Qph5cuWcmhrsLezefqFcfuj9ed6dy7tGTAY8T +SKKk8egsfqpE1wgSDBHsEIUBeNj+JSFRjVzcJ1atoK4/zD4GoZ+qlBcKWTT86PHOtiU RV/g== X-Gm-Message-State: AMke39krNuDAnLuAJbeFYLIohZVyzKda8/HF/3wrWo3KPXhrc0kgKI4aw2m4sgG5JIThXQ+bw9Ag3xRVcCUIYA== X-Received: by 10.223.153.9 with SMTP id x9mr1377994wrb.196.1488274122622; Tue, 28 Feb 2017 01:28:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.146.52 with HTTP; Tue, 28 Feb 2017 01:28:02 -0800 (PST) From: Sergey Chugunov Date: Tue, 28 Feb 2017 12:28:02 +0300 Message-ID: Subject: IGNITE-4758 - introducing cache memory policies To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=f403045d581268530b054993d244 archived-at: Tue, 28 Feb 2017 09:28:47 -0000 --f403045d581268530b054993d244 Content-Type: text/plain; charset=UTF-8 Hello Ignite devs, I created new subtask under IGNITE-3477 with my vision of how *MemoryPolicy* may be implemented. In a nutshell my idea is as follows: instead of having only one instance of *PageMemory* and managing a mapping [cacheId->pageMemory region] I suggest introducing separate *PageMemory* instance (and corresponding *FreeList* and *ReuseList* structures) for each *MemoryPolicy* configuration. This instance will be stored in individual cache contexts instead of shared cache context as it is right now. I think this design is a very natural extension of *PageMemory* concept and should not introduce any performance degradation as no changes are introduced into *PageMemory* implementation itself. Please share any thoughts or concerns about suggested design in this thread or in comments under the subtask . Thanks, Sergey. --f403045d581268530b054993d244--