Please wait a minute...
Frontiers of Computer Science

ISSN 2095-2228

ISSN 2095-2236(Online)

CN 10-1014/TP

邮发代号 80-970

2019 Impact Factor: 1.275

Frontiers of Computer Science  2023, Vol. 17 Issue (2): 172202   https://doi.org/10.1007/s11704-022-1056-2
  本期目录
Scalable and quantitative contention generation for performance evaluation on OLTP databases
Chunxi ZHANG, Yuming LI, Rong ZHANG(), Weining QIAN, Aoying ZHOU
School of Data Science and Engineering, East China Normal University, Shanghai 200062, China
 全文: PDF(20135 KB)   HTML
Abstract

Massive scale of transactions with critical requirements become popular for emerging businesses, especially in E-commerce. One of the most representative applications is the promotional event running on Alibaba’s platform on some special dates, widely expected by global customers. Although we have achieved significant progress in improving the scalability of transactional database systems (OLTP), the presence of contention operations in workloads is still one of the fundamental obstacles to performance improving. The reason is that the overhead of managing conflict transactions with concurrency control mechanisms is proportional to the amount of contentions. As a consequence, generating contented workloads is urgent to evaluate performance of modern OLTP database systems. Though we have kinds of standard benchmarks which provide some ways in simulating contentions, e.g., skew distribution control of transactions, they can not control the generation of contention quantitatively; even worse, the simulation effectiveness of these methods is affected by the scale of data. So in this paper we design a scalable quantitative contention generation method with fine contention granularity control. We conduct a comprehensive set of experiments on popular opensourced DBMSs compared with the latest contention simulation method to demonstrate the effectiveness of our generation work.

Key wordshigh contention    OLTP database    performance evaluation    database benchmarking
收稿日期: 2021-02-02      出版日期: 2022-08-01
Corresponding Author(s): Rong ZHANG   
 引用本文:   
. [J]. Frontiers of Computer Science, 2023, 17(2): 172202.
Chunxi ZHANG, Yuming LI, Rong ZHANG, Weining QIAN, Aoying ZHOU. Scalable and quantitative contention generation for performance evaluation on OLTP databases. Front. Comput. Sci., 2023, 17(2): 172202.
 链接本文:  
https://academic.hep.com.cn/fcs/CN/10.1007/s11704-022-1056-2
https://academic.hep.com.cn/fcs/CN/Y2023/V17/I2/172202
Fig.1  
Benchmark Data size Data distribution Workload distribution
TPC-C Yes No No
YCSB Yes Yes No
Smallbank No No Yes
TATP No No No
DebitCredit No No No
PeakBench No No Yes
Tab.1  
N The number of nodes.
T The collection of threads, |T|=M.
TB The collection of tables, |TB|=b.
TX The collection of transactions, |TX|=m.
TXR Transaction ratio, |TXR|=m. ? txriTXR, 0txri1 & 1mtxri=1.
Cm,b Access status matrix between transactions TX and tables TB. If txi accesses tbj, ci,j=1, or else ci,j=0, txiTX & tbjTB.
LXm,b Transaction latency matrix of TX on TB. L1i,j ( L0i,j) represents the processing latency of contention (non-contention) transaction txi on table tbj, txiTX & tbjTB.
CR 3-dimension contention ratio matrix between transactions TX on TB with cri,j,k as contention ratio between txi and txj on table tbk, |CR|= m 2? b & 0cri,j,k1.
CI 3-dimension contention intensity matrix between transactions TX on TB, with cii,j,k as contention intensity between txi and txj on table tbk, |CI|=m 2? b & 0cii,j,kM.
Tab.2  
Ctx,tb tb1 tb2 tb3
tx1 1 1 0
tx2 0 1 1
Tab.3  
L0tx,tb tb1 tb2 tb3
tx1 l01,1 l01,2 ?
tx2 ? l02,1 l02,3
Tab.4  
L1tx,tb tb1 tb2 tb3
tx1 l11,1 l11,2 ?
tx2 ? l12,2 l12,3
Tab.5  
CRtx,tx,tb:CItx,tx,tb tx1tb1 tx2tb1 tx1tb2 tx2tb2 tx1tb3 tx2tb3
tx1 0.6:3 ? 0.3:3 0.4:4 ? ?
tx2 ? ? 0.4:4 0.2:2 ? 0.5:4
Tab.6  
CRtx,tb:CItx,tb tb1 tb2 tb3
tx1 0.6:3 0.7:4 ?
tx2 ? 0.6:3 0.5:4
Tab.7  
tb1 tb2 tb3
CRtb:CItb 0.6:3 0.64:4 0.5:4
Tab.8  
Fig.2  
Name Characteristics
Schema TB name, TB size, key, foreign key; Attr name, Attr type, domain
Transaction Basic Info transID, transRatio, compileMode
Contention contentionGeMode, contentionGranularity
Operation* contentionorNot, contentionParaPos, contentionTB, [ txi, cr, ci]*
Tab.9  
  
  
Id txr oID Workload setting Contention Type
tx0 1 op0 update usertable set field1 =? where ycsbkey =?; 1 YCSB
tx1 1/0.5 op1 update usertable set field1 =? where ycsbkey =?; 1
op2 update usertable set field1 =? where ycsbkey =?; 0
tx2 1/0.5 op3 update usertable set field1 =? where ycsbkey =?; 1
op4 select ? from usertable where ycsbkey =?; 0
tx3 1 op5 select slprice from seckillplan where slskpkey =?; 0 PeakBench
op6 update seckillplan set slskpcount = slskpcount + 1 where slskpkey=? and slskpcount<slplancount; 1
op7 replace into orders ( oorderkey, ocustkey, oskpkey, oprice, oorderdate, ostate) values (?,?,?,?,?, 0); 0
op8 replace into orderitem ( oiorderkey, oiitemkey, oicount, oiprice) values (?,?, 1,?); 0
Tab.10  
TPS tx0 tx1 tx2 tx3
MySQL 38256 32582 23874 13434
PG 95238 56324 44765 24865
Tab.11  
Fig.3  
Fig.4  
Fig.5  
Fig.6  
Fig.7  
Fig.8  
Fig.9  
Fig.10  
  
  
  
  
  
1 G, Huang X, Cheng J, Wang Y, Wang D, He T, Zhang F, Li S, Wang W, Cao Q Li. X-engine: an optimized storage engine for large-scale ecommerce transaction processing. In: Proceedings of 2019 International Conference on Management of Data. 2019, 651– 665
2 R, Appuswamy A C, Anadiotis D, Porobic M K, Iman A Ailamaki . Analyzing the impact of system architecture on the scalability of OLTP engines for high-contention workloads. Proceedings of the VLDB Endowment, 2017, 11( 2): 121– 134
3 R, Harding Aken D, Van A, Pavlo M Stonebraker . An evaluation of distributed concurrency control. Proceedings of the VLDB Endowment, 2017, 10( 5): 553– 564
4 H, Lan Z, Bao Y Peng. A survey on advancing the DBMS query optimizer: cardinality estimation, cost model, and plan enumeration. Data Science and Engineering, 2021, 6(1): 86– 101
5 Y, Ji Y, Chai X, Zhou L, Ren Y Qin. Smart intra-query fault tolerance for massive parallel processing databases. Data Science And Engineering, 2020, 5(1): 65– 79
6 X, Yu G, Bezerra A Pavlo. Staring into the abyss: an evaluation of concurrency control with one thousand cores. Proceedings of the VLDB Endowment, 2014, 8(3): 209– 220
7 F R Johnson. Scalable storage managers for the multicore era. Carnegie Mellon University, Dissertation, 2010
8 J M, Faleiro D J Abadi. FIT: a distributed database performance tradeoff. IEEE Data Engineering Bulletin, 2015, 38(1): 10– 17
9 A, Gurajada D, Gala F, Zhou A, Pathak Z F Ma . BTrim: hybrid in-memory database architecture for extreme transaction processing. Proceedings of the VLDB Endowment, 2018, 11( 12): 1889– 1901
10 K, Ren J M, Faleiro D J Abadi. Design principles for scaling multi-core OLTP under high contention. In: Proceedings of the 2016 International Conference on Management of Data. 2016, 1583– 1598
11 N, Zhou X, Zhou X, Zhang X, Du S Wang . Reordering transaction execution to boost high-frequency trading applications. Data Science and Engineering, 2017, 2( 4): 301– 315
12 S, Chen A, Ailamaki M, Athanassoulis P B, Gibbons R, Johnson I, Pandis R Stoica . TPC-E vs. TPC-C: characterizing the new TPC-E benchmark via an I/O comparison study. Acm Sigmod Record, 2011, 39( 3): 5– 10
13 B F, Cooper A, Silberstein E, Tam R, Ramakrishnan R Sears. Benchmarking cloud serving systems with YCSB. In: Proceedings of the 1st ACM Symposium on Cloud Computing. 2010. 143− 154
14 C, Zhang Y, Li R, Zhang W, Qian A Zhou. Benchmarking on intensive transaction processing. Frontiers of Computer Science, 2020, 14(5): 145204
15 P, Bodik A, Fox M J, Franklin M I, Jordan A David. Patterson: characterizing, modeling, and generating workload spikes for stateful services. In: Proceedings of the 1st ACM Symposium on Cloud Computing. 2010, 241− 252
16 A Wolski. TATP benchmark description.
17 M Stonebraker. A measure of transaction processing power. In: Stonebraker M, ed. Readings in Database Systems. 2nd ed. San Francisco: Morgan Kaufmann Publishers Inc. 1994, 442− 454
18 M J, Cahill U, Röhm A D Fekete . Fekete: serializable isolation for snapshot databases. ACM Transactions on Database Systems, 2009, 34( 4): 20
19 D E, Difallah A, Pavlo C, Curino P Cudre-Mauroux. OLTP-bench: an extensible testbed for benchmarking relational databases. Proceedings of the VLDB Endowment, 2013, 7(4): 277– 288
20 MySQL database. See Mysql.com website, 2021
21 PostgreSQL database. See Postgresql.org website, 2021
[1] FCS-21056-OF-CZ_suppl_1 Download
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed