Accelerates In-Memory Databases with Near Data Computing Kevin Hsieh Amirali Boroumand [email protected] [email protected] 1. Problem and Motivation functions to parallelize them and hide the memory latency. Doing these operations on the memory side can minimize Modern databases, such as H-Store[14], VoltDB[23], and the data movements over wires, which costs 23X energy of Masstree[20], have been moving from disk to main memory double-precision fused-multiply add operation in 10nm[15]. because cheaper commodity DRAMs are orders of magnitude Processing bulk data on the memory side can also significantly faster. Furthermore, DRAM-based key-value storage servers, reduce cache thrashing on the processor side. such as memcached[9] and Redis[22], have been known as critical parts of major Internet services. 3. Related Works All the paradigm shifts from disks to DRAMs have made the bandwidth and latency of DRAMs, or memory wall[26], Several prior studies analyzed the bottlenecks of databases and become the emerging bottleneck of data centers. Conventional proposed specialized accelerators to speed them up. The most databases are known to spend at least 50% of their execution common benchmarks are TPC-C for online transaction pro- time on memory stalls[3]. This problem is getting worse for cessing (OLTP) and TPC-H for online analytical processing in-memory databases. For example, the profiling of Masstree (OLAP)[2]. Most OLAP related works used MonetDB[12], showed that the get operations spend 66%-75% of time on an in-memory, column-store database. On the other hand, the DRAM stalls[20]. OLTP related works are based on Shore[7] or DBx1000[27]. According to their focus, they can be categorized as join oper- While DRAMs have kept the scaling of cost-per-bit, their ations, relational operators, and concurrency controls. latency has remained almost constant[18]. In addition, many The analysis of MonetDB found that join operation accounts studies showed that DRAM systems accounts for 25-40% of for 47% of the TPC-H execution time[24]. A hardware data total power consumption in data centers[4][19]. A promising partitioner was proposed to accelerate the data partition of join technology to tackle these challenges is 3D-stacked mem- operations by 7.8X[24]. A set of specialized walker units were ory, such as Hybrid Memory Cube (HMC) [13]. By stack- proposed to improve the hash index of join operations, which ing DRAM and logic dies with through-silicon vias (TSVs), can be improved by 3.1x[16]. this technology revives the idea of processing in memory (PIM)[8][10][21][17]. One can build a high performance and Another family of accelerators speed up the relational op- low power in-memory system by moving data-intensive com- erators that manipulate database columns or tables. Q100 is putations to the memory side. a specialized database processing unit that can improve the performance of 24-thread software database by 1.5X-2.9X[25]. However, the key challenge of PIM is the constraint on cost Commercial data warehouse have been using FPGA to accel- and thermal[28]. A highly specialized PIM is not desirable erate the database query, such as IBM DB2 Analytics Acceler- because it may not be useful for most applications and can ator (IDAA)[6]. not reach commodity. A powerful general processor on the The concurrency control of databases would emerge as a memory side is intractable due to the power consumption new bottleneck when running on many-core chips. Recent generates unmanageable heat. It is crucial to find general and study showed that classic concurrency controls can not scale cost efficient functions to enable PIM. well to a 1024-core system, where databases spend most of 2. Idea the time on lock manager or abort[27]. A hardware-based lock manager may be needed at that scale. In this project, we aim to characterize the in-memory databases The analysis of Shore showed that this OLTP database spend and investigate the feasibility to accelerate their bottlenecks around 80% of time on logging, locking, latching, and buffer with PIM. Databases are one of the most memory intensive, management. A single-threaded, lock-free, main memory widely used applications. As they spend most of their time on database system without recovery can be up to 20x faster[11]. DRAM stalls, they could be accelerated by PIM significantly. Our project is different from these prior works as we are try- The key idea is no matter how databases are designed, they all ing to accelerate general operations as PIM instead of special- need general functions such as index traversals, partitioning, ized accelerators in processors or FPGAs. The key difference sorting, and filtering. These functions are highly possible to is we need to make it general and simple enough so that is can be bounded by DRAM because their low spatial locality and be stacked with memory dies. In addition, our work distin- massive working sets. As the computation of these operations guishes from them because we can fully utilize the extremely is general simple, it is possible to design an array of these PIM abundant memory bandwidth as there are no external wire constraints for PIM. These different design considerations will 4.3. Goals lead to unique optimal designs. The project goal is to analyze in-memory databases and investi- gate the feasibility of designing one or multiple PIM functions 4. Logistics which could reduce the execution time of those in-memory databases. While the in-memory DBMSs spend most of their 4.1. Project plan time on DRAM stalls, it is still possible that these stalls are evenly distributed among different modules of the DBMSs. In In this project, our goal is to characterize in-memory database that case, hardware acceleration can improve limited amount and find the potential bottlenecks that could be sped up by of computations and DBMSs might not benefit too much from shipping computation to the memory side. To begin with, we shipping computation to the data. Thus, our 75% goal is to need to choose a DBMS that suits our constraints such as time- characterize DBx1000, design the PIM function, implement budget. Our plan is to characterize DBx1000[27] to identify the proposed PIM function in the GEM5 simulator and achieve potential data structure operations that could be accelerated by 10% performance improvement. Our 100% goal is that our pro- PIM. DBx1000 is a single node OLTP database management posed PIM function can reduce DBx1000 execution time by system (DBMS). The original purpose of DBx1000 was to 30%. Finally, Our 125% goal is to characterize other databases make DBMS scalable on future 1000-core processors. We such as MonteDB and attempt to find out how our proposed choose DBx1000 because it is relatively simple compared to PIM functions could be applied to them. other DBMSs. It was implemented from scratch and removed several artificial bottlenecks in conventional DBMSs. This 4.4. Final Report Outline makes it suitable for our purpose, especially considering our In this section, we provide an outline of our final report. The time-budget and simulation infrastructure. We believe that outline will contain the following sections: DBx1000 could be used as a representative example of other • The problem DBMSs, so our analysis result can be applicable to others as • Background well. – Processing in memory As the first step, we need to run DBx1000 on a real ma- – DBMS profiling and hardware acceleration chine and profile it using Perf[1]. Perf is a profiler tool for • The profiling result of DBx1000 (or MonetDB) Linux 2.6+ based systems that abstracts away CPU hardware • The architecture of the proposed PIM design differences in Linux performance measurements and it can • Evaluation instrument CPU performance counters and tracepoints. The – Performance evaluation purpose of profiling is to find bandwidth and latency sensitive – Sensitivity analysis computational patterns that account for large fraction of the ∗ Different system configurations (core number, cache execution time. The profiling outcome will enable us to design size) one or multiple PIM functions that could accelerate a wide ∗ Different size of database working set range of bottlenecks in DBx1000. • Conclusion After designing the PIM functions, we need to evaluate our proposed design to demonstrate the performance improvement. 4.5. Required Recources Conducting evaluation in a real machine is not feasible because Our required recources are as follows: it requires PIM to be implemented in a 3D-stacked memory, • GEM5 full system simulator, which is a free, open source which is an extremely time-consuming process. Thus, we plan software. to examine our proposed PIM function design using a full • DBx1000, which is an open source software. system simulator. We will use GEM5[5] full-system simulator • Perf profiling tool. It is available in Linux kernel. and run DBx1000 on the simulated system with PIM. GEM5 is • The computation server to run DBx1000 on GEM5. It is a modular event driven full-system simulator which supports available within our group. various instruction set architecture such as x86, ARM, SPARC, MIPS, Alpha and PowerPC. References [1] “Perf.” [Online]. Available: https://perf.wiki.kernel.org/index.php/ 4.2. Milestones Main_Page [2] “Transaction processing performance council,” Web Site, http://www. tpc. org, 2005. Based on our plan, the project milestones are as follows: By [3] A. Ailamaki, D. J. DeWitt, M. D. Hill, and D. A. Wood, “DBMSs on a milestone 1 (Nov 1), we will prepare the simulation infrustruc- modern processor: Where does time go?” in VLDB" 99, Proceedings of 25th International Conference on Very Large Data Bases, September ture and we will finish the profiling of DBx1000.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages3 Page
-
File Size-