Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-7182

Slow sorting of pages collection on checkpoint begin can cause zero dropdown even with throttling enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.3
    • None
    • persistence
    • None

    Description

      Tests show that GridCacheDatabaseSharedManager#splitAndSortCpPagesIfNeeded call can last several seconds on nodes with big amount of memory (>10GB). We should optimize sorting algorithm, possibly making it multithreaded.
      Another option to make pages write throttling more smooth is to get rid of this heuristic:

                      // Starting with 0.05 to avoid throttle right after checkpoint start
                      // 7/12 is maximum ratio of dirty pages
                      dirtyRatioThreshold = (dirtyRatioThreshold * 0.95 + 0.05) * 7 / 12;
      

      We should replace "magic" lower bound 0.05 * 7 / 12 with the real percentage of dirty pages at the moment of GridCacheDatabaseSharedManager.Checkpointer#markCheckpointBegin call return.

      Attachments

        Issue Links

          Activity

            People

              dpavlov Dmitry Pavlov
              ivan.glukos Ivan Rakov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m