I has a test case to use Flink's MutableHashTable class to do a hash join on a local machine with 64g memory, 64cores. The test case is one build table with 14w rows ,one probe table with 320w rows ,the matched result rows is 12 w.It takes 2.2 seconds to complete the join.The performance seems bad. I ensure there's no overflow, the smaller table is the build side. The MutableObjectIterator is a sequence of Rows. The Row is composed of several fields which are byte[]. Through my log,I find the open() method takes 1.560 seconds. The probe iterates phase takes 680ms. And my Jprofiler's profile shows the MutableObjectIterator's next() method call is the hotspot.I want to know how to tune this scenario. I find Drill's HashJoin is batch model. Its build side's input is a RecordBatch which holds batch of rows and memory size is approach to L2 cache. Through this strategy it will gain less method calls (that means call to next() ) and much efficient to cpu calculation. I also find SQL server's paper noticed the batch model's performance gains (https://www.microsoft.com/en-us/research/wp-content/ ) . I guess the performance's down is due to the single row iterate model.uploads/2013/06/Apollo3- Sigmod-2013-final.pdf Hope someone to correct my opinion. Also maybe I have a wrong use of the MutableHashTable. wait for someone to give an advice.
Free forum by Nabble | Edit this page |