Skip to content

Commit

Permalink
Dirty pages flush algorithm was changed to be based on dirty pages li…
Browse files Browse the repository at this point in the history
…mit.
  • Loading branch information
andrii0lomakin committed Aug 13, 2019
1 parent 912af6f commit 554f3ad
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 364 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -325,12 +325,6 @@ public enum OGlobalConfiguration { // ENVIRONMENT
DISK_CACHE_PAGE_SIZE("storage.diskCache.pageSize", "Size of page of disk buffer (in kilobytes). !!! NEVER CHANGE THIS VALUE !!!", DISK_CACHE_PAGE_SIZE("storage.diskCache.pageSize", "Size of page of disk buffer (in kilobytes). !!! NEVER CHANGE THIS VALUE !!!",
Integer.class, 64), Integer.class, 64),


DISK_CACHE_PRINT_CACHE_STATISTICS("storage.diskCache.printCacheStatistics",
"Print information about write cache performance metrics", Boolean.class, false),

DISK_CACHE_STATISTICS_INTERVAL("storage.diskCache.cacheStatisticsInterval",
"Period in sec. after which information about write cache performance metrics will be printed", Integer.class, 10),

DISK_CACHE_PRINT_FLUSH_TILL_SEGMENT_STATISTICS("storage.diskCache.printFlushTillSegmentStatistics", DISK_CACHE_PRINT_FLUSH_TILL_SEGMENT_STATISTICS("storage.diskCache.printFlushTillSegmentStatistics",
"Print information about write cache state when it is requested to flush all data operations on which are logged " "Print information about write cache state when it is requested to flush all data operations on which are logged "
+ "till provided WAL segment", Boolean.class, true), + "till provided WAL segment", Boolean.class, true),
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public void startup() {
pages.clear(); pages.clear();
} }


readCache = new AsyncReadCache(OByteBufferPool.instance(null), diskCacheSize, pageSize, readCache = new AsyncReadCache(OByteBufferPool.instance(null), diskCacheSize, pageSize, false);
OGlobalConfiguration.DISK_CACHE_PRINT_CACHE_STATISTICS.getValueAsBoolean());


} }


Expand Down
Loading

0 comments on commit 554f3ad

Please sign in to comment.