commit | 0ec04ef116c4bf35e6c84c552c259c15aaa7f96b | [log] [tgz] |
---|---|---|
author | vinayakb <vinayakb@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 15 21:42:00 2012 +0000 |
committer | vinayakb <vinayakb@eaa15691-b419-025a-1212-ee371bd00084> | Sun Jul 15 21:42:00 2012 +0000 |
tree | b13a9edc4797c0dae731926e7aa8ab6ec8ac7cf1 | |
parent | 3ffa18544283309efc76a0b8a7bba61d83d066df [diff] |
Fixed correlation between frame sizes and buffer cache page sizes git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization_hyracks_scheduling@510 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java index 36e8a4c..af20c8b 100644 --- a/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java +++ b/asterix-common/src/main/java/edu/uci/ics/asterix/common/context/AsterixAppRuntimeContext.java
@@ -20,8 +20,10 @@ import edu.uci.ics.hyracks.storage.common.file.IFileMapProvider; public class AsterixAppRuntimeContext { + private static final int DEFAULT_BUFFER_CACHE_PAGE_SIZE = 32768; + private final INCApplicationContext ncApplicationContext; - + private IndexRegistry<IIndex> indexRegistry; private IFileMapManager fileMapManager; private IBufferCache bufferCache; @@ -52,7 +54,7 @@ } private int getBufferCachePageSize() { - int pageSize = ncApplicationContext.getRootContext().getFrameSize(); + int pageSize = DEFAULT_BUFFER_CACHE_PAGE_SIZE; String pageSizeStr = System.getProperty(GlobalConfig.BUFFER_CACHE_PAGE_SIZE_PROPERTY, null); if (pageSizeStr != null) { try {