You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2020/09/14 06:56:10 UTC
[incubator-iotdb] branch master_with_chunk_size created (now
20db36f)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch master_with_chunk_size
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.
at 20db36f master with chunk size log
This branch includes the following new commits:
new 20db36f master with chunk size log
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-iotdb] 01/01: master with chunk size log
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master_with_chunk_size
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
commit 20db36f0f04fe3eb35ebeede0136cf9f343f015e
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Sep 14 14:55:37 2020 +0800
master with chunk size log
---
server/src/assembly/resources/conf/iotdb-engine.properties | 4 ++--
.../main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 5f1b0b7..c74f541 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -175,7 +175,7 @@ wal_buffer_size=16777216
time_zone=+08:00
# When a TsFile's file size (in byte) exceeds this, the TsFile is forced closed. The default threshold is 512 MB.
-tsfile_size_threshold=536870912
+tsfile_size_threshold=0
# When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. The default threshold is 1 GB.
memtable_size_threshold=1073741824
@@ -227,7 +227,7 @@ enable_parameter_adapter=true
# Memory Allocation Ratio: Write, Read, and Free Memory.
# The parameter form is a:b:c, where a, b and c are integers. for example: 1:1:1 , 6:3:1
-write_read_free_memory_proportion=6:3:1
+write_read_free_memory_proportion=5:3:2
# primitive array size (length of each array) in array pool
primitive_array_size=128
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java b/server/src/main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java
index b05e348..d1794a1 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/flush/MemTableFlushTask.java
@@ -78,6 +78,10 @@ public class MemTableFlushTask {
*/
public void syncFlushMemTable()
throws ExecutionException, InterruptedException, IOException {
+ logger.info("The memTable size of SG {} is {}, the avg series points num in chunk is {} ",
+ storageGroup,
+ memTable.memSize(),
+ memTable.getTotalPointsNum() / memTable.getSeriesNumber());
long start = System.currentTimeMillis();
long sortTime = 0;