From issues-return-55915-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Jan 23 17:26:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 7596B180676 for ; Tue, 23 Jan 2018 17:26:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 61F56160C17; Tue, 23 Jan 2018 16:26:06 +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 7E164160C39 for ; Tue, 23 Jan 2018 17:26:05 +0100 (CET) Received: (qmail 80790 invoked by uid 500); 23 Jan 2018 16:26:04 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 80781 invoked by uid 99); 23 Jan 2018 16:26:04 -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; Tue, 23 Jan 2018 16:26:04 +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 55F471A0BD5 for ; Tue, 23 Jan 2018 16:26:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 40eW0OeSMXGM for ; Tue, 23 Jan 2018 16:26:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8F6D75F2AB for ; Tue, 23 Jan 2018 16:26:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C9E71E0F37 for ; Tue, 23 Jan 2018 16:26:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 88C6725C63 for ; Tue, 23 Jan 2018 16:26:00 +0000 (UTC) Date: Tue, 23 Jan 2018 16:26:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-7507) Ignite node performance drop during checkpoint start: store metapage eviction causes long checkpoint lock hold time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-7507?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 36011#comment-16336011 ]=20 ASF GitHub Bot commented on IGNITE-7507: ---------------------------------------- GitHub user dspavlov opened a pull request: https://github.com/apache/ignite/pull/3423 IGNITE-7507: Ignite node performance drop during checkpoint start Store metapage eviction causes long checkpoint lock hold time You can merge this pull request into a Git repository by running: $ git pull https://github.com/gridgain/apache-ignite ignite-7507 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/3423.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3423 =20 ---- commit 0d557e567d7b770f2c91306071af9b849f0e66b3 Author: dspavlov Date: 2018-01-23T16:20:43Z IGNITE-7507: Ignite node performance drop during checkpoint start: stor= e metapage eviction causes long checkpoint lock hold time ---- > Ignite node performance drop during checkpoint start: store metapage evic= tion causes long checkpoint lock hold time > -------------------------------------------------------------------------= ------------------------------------------ > > Key: IGNITE-7507 > URL: https://issues.apache.org/jira/browse/IGNITE-7507 > Project: Ignite > Issue Type: Bug > Components: persistence > Reporter: Dmitriy Pavlov > Assignee: Dmitriy Pavlov > Priority: Major > Fix For: 2.5 > > > Store metadata Page eviction becomes very expensive operation=C2=A0during= checkpoint start. > These pages reads hands ignite node until metadata will be loaded from di= sk. > Following store (paritition) metapages: > - Partition Metadata Page > - Freelist Meta Page > - Partition Counters IO > required during execution of saveStoreMetadata() & markCheckpointBegin() > If this page is not available in memory, it is loaded from disk. > But such loads are done while holding checkpointLock (in write mode). > Example of timing: > - checkpointLockWait=3D75ms, checkpointLockHoldTime=3D2653ms, pages=3D696= 120 > All this time worker threads are not able to put any data to any cache. > It is required to avoid eviction of such pages (evict it with lowest prio= rity than dirty page). > (Full stacktrace)=09 > {noformat} db-checkpoint-thread-#40%checkpoint.IgniteMassLoadSandboxTest1= % Id=3D63 WAITING=09 > =09 > at sun.misc.Unsafe.park(Native Method) > =09at java.util.concurrent.locks.LockSupport.park(LockSupport.java:304) > =09at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridF= utureAdapter.java:177) > =09at org.apache.ignite.internal.util.future.GridFutureAdapter.getUninter= ruptibly(GridFutureAdapter.java:145) > =09at org.apache.ignite.internal.processors.cache.persistence.file.AsyncF= ileIO.read(AsyncFileIO.java:95) > =09at org.apache.ignite.internal.processors.cache.persistence.file.FilePa= geStore.read(FilePageStore.java:324) > =09at org.apache.ignite.internal.processors.cache.persistence.file.FilePa= geStoreManager.read(FilePageStoreManager.java:306) > =09at org.apache.ignite.internal.processors.cache.persistence.file.FilePa= geStoreManager.read(FilePageStoreManager.java:291) > =09at org.apache.ignite.internal.processors.cache.persistence.pagemem.Pag= eMemoryImpl.acquirePage(PageMemoryImpl.java:656) > =09at org.apache.ignite.internal.processors.cache.persistence.pagemem.Pag= eMemoryImpl.acquirePage(PageMemoryImpl.java:576) > =09at org.apache.ignite.internal.processors.cache.persistence.DataStructu= re.acquirePage(DataStructure.java:130) > =09at org.apache.ignite.internal.processors.cache.persistence.freelist.Pa= gesList.saveMetadata(PagesList.java:301) > =09at org.apache.ignite.internal.processors.cache.persistence.GridCacheOf= fheapManager.saveStoreMetadata(GridCacheOffheapManager.java:196) > =09at org.apache.ignite.internal.processors.cache.persistence.GridCacheOf= fheapManager.onCheckpointBegin(GridCacheOffheapManager.java:168) > =09at org.apache.ignite.internal.processors.cache.persistence.GridCacheDa= tabaseSharedManager$Checkpointer.markCheckpointBegin(GridCacheDatabaseShare= dManager.java:3022) > =09at org.apache.ignite.internal.processors.cache.persistence.GridCacheDa= tabaseSharedManager$Checkpointer.doCheckpoint(GridCacheDatabaseSharedManage= r.java:2719) > =09at org.apache.ignite.internal.processors.cache.persistence.GridCacheDa= tabaseSharedManager$Checkpointer.body(GridCacheDatabaseSharedManager.java:2= 644) > =09at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.ja= va:110) > =09at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)