perl - TokyoCabinet Write speed too slow -
i have perl script (in ubuntu 12.04 lts) writing 26 tch files. keys equally distributed. writes become slow after 3 million inserts (equally distributed files) , speed comes down 240,000 inserts/min @ beginning 14,000 inserts/min after 3 mm inserts. individually shard files no more 150 mb , overall size comes around 2.7 gb.
i run optimize on every tch file after every 100k inserts file bnum 4*num_records_then , options set tlarge , make sure xmsiz matches size of bnum (as mentioned in why tokyo tyrant slow down exponentially after adjusting bnum?)
even after this, inserts start @ high speed decrease 14k inserts/min 240k inserts/min. due holding multiple tch connections (26) in single script? or there configuration setting, i'm missing (would disabling journaling help, above thread says journaling affects performance after tch file becomes bigger 3-4gb, shards <150mb files..)?
i turn off journaling , measure changes. cited thread talks 2-3 gb tch file, if sum sizes of 26 tch files, in same league. filesystem, total amount of data ranges written should relevant parameter.
Comments
Post a Comment