Skip to content

Commit db54f37

Browse files
committed
Merge the current master and stock
2 parents c078ccd + 6f62fdd commit db54f37

File tree

17 files changed

+624
-250
lines changed

17 files changed

+624
-250
lines changed

build.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,18 @@ sudo rm -rf CMakeFiles/*
1818
if [ "$1" = "--origin" ]; then
1919
# No caching
2020
BUILD_FLAGS=""
21-
elif [ "$1" = "--nc-ol" ]; then
21+
elif [ "$1" = "--nc" ]; then
2222
# Cache New-Orders and Order-Line pages
23-
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_NO -DUNIV_NVDIMM_CACHE_OL"
23+
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE"
2424
elif [ "$1" = "--nc-st" ]; then
25-
# Cache New-Orders and Stock pages
26-
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_NO -DUNIV_NVDIMM_CACHE_ST"
27-
elif [ "$1" = "--nc-ol-st" ]; then
2825
# Cache New-Orders, Order-Line and Stock pages
29-
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_NO -DUNIV_NVDIMM_CACHE_OL -DUNIV_NVDIMM_CACHE_ST"
30-
elif [ "$1" = "--mtr" ]; then
31-
# Cache New-Orders, Order-Line with mtr-logging enabled
32-
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_NO -DUNIV_NVDIMM_CACHE_OL -DUNIV_LOG_HEADER"
26+
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_ST"
27+
elif [ "$1" = "--nc-st-od" ]; then
28+
# Cache New-Orders, Order-Line, Stock and Orders pages
29+
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_ST -DUNIV_NVDIMM_CACHE_OD"
3330
else
3431
# Cache New-Orders and Order-Line pages (default)
35-
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_NO -DUNIV_NVDIMM_CACHE_OL"
32+
BUILD_FLAGS="-DUNIV_NVDIMM_CACHE"
3633
fi
3734

3835
echo "Start build using $BUILD_FLAGS"

my-origin.cnf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ innodb_page_size=4KB
4646
innodb_file_per_table=1
4747

4848
#buffer settings
49-
innodb_buffer_pool_size=5000M
49+
innodb_buffer_pool_size=6G
5050
innodb_buffer_pool_instances=8
5151
innodb_max_dirty_pages_pct_lwm=0
5252

@@ -64,7 +64,7 @@ innodb_log_buffer_size=32M
6464
innodb_flush_neighbors=0
6565

6666
#doublewrite and flush method
67-
innodb_doublewrite=OFF
67+
innodb_doublewrite=ON
6868
innodb_flush_method=O_DIRECT
6969

7070
#AIO control

my.cnf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ innodb_page_size=4KB
4646
innodb_file_per_table=1
4747

4848
#buffer settings
49-
innodb_buffer_pool_size=5G
49+
innodb_buffer_pool_size=4G
5050
innodb_buffer_pool_instances=8
5151
innodb_max_dirty_pages_pct_lwm=0
5252

@@ -56,9 +56,9 @@ innodb_page_cleaners=8
5656

5757
#nvdimm settings
5858
innodb_use_nvdimm_buffer=true
59-
innodb_nvdimm_buffer_pool_size=1G
60-
innodb_nvdimm_buffer_pool_instances=1
61-
innodb_nvdimm_pc_threshold_pct=5
59+
innodb_nvdimm_buffer_pool_size=2G
60+
innodb_nvdimm_buffer_pool_instances=2
61+
innodb_nvdimm_pc_threshold_pct=15
6262

6363
#transaction log settings
6464
innodb_log_file_size=2G
@@ -70,7 +70,7 @@ innodb_log_buffer_size=32M
7070
innodb_flush_neighbors=0
7171

7272
#doublewrite and flush method
73-
innodb_doublewrite=OFF
73+
innodb_doublewrite=ON
7474
innodb_flush_method=O_DIRECT
7575

7676
#AIO control

0 commit comments

Comments
 (0)