vldpyatkov commented on code in PR #13774:
URL: https://github.com/apache/ignite/pull/13774#discussion_r4441623114


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java:
##########
@@ -5392,8 +5392,19 @@ private class CacheRecoveryLifecycle implements 
MetastorageLifecycleListener, Da
         /** {@inheritDoc} */
         @Override public void beforeBinaryMemoryRestore(
             IgniteCacheDatabaseSharedManager mgr) throws 
IgniteCheckedException {
-            for (DynamicCacheDescriptor cacheDescriptor : persistentCaches())
-                preparePageStore(cacheDescriptor, true);
+            // Reserve at least 2 threads for system operations.
+            int parallelismLvl = U.availableThreadCount(ctx, 
GridIoPolicy.SYSTEM_POOL, 2);
+
+            doInParallel(

Review Comment:
   @zstan Look here. The patch demonstrates a speed-up of the [Uploading 
IGNITE-29234_(TEST)_Parallelize_page_store_initialization_during_persistent_node_recovery.patch…]()
   ```
   Metric                 | Sequential, ms |   Parallel, ms |    Speedup
   -----------------------+----------------+----------------+-----------
   Page stores            |       4188.000 |       1011.000 |      4.14x
   Total to ACTIVE        |      12758.929 |       7506.163 |      1.70x
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to