[cli] Set the job size
This commit is contained in:
1 parent
f9a671ac37
commit
4316409427
1 file changed
+1
@@ -556,6 +556,7 @@ static cRess_t FIO_createCResources(const char* dictFileName, int cLevel,
|
|||||||
#ifdef ZSTD_MULTITHREAD
|
#ifdef ZSTD_MULTITHREAD
|
||||||
DISPLAYLEVEL(5,"set nb workers = %u \n", g_nbWorkers);
|
DISPLAYLEVEL(5,"set nb workers = %u \n", g_nbWorkers);
|
||||||
CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_nbWorkers, g_nbWorkers) );
|
CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_nbWorkers, g_nbWorkers) );
|
||||||
|
CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_p_jobSize, g_blockSize) );
|
||||||
if ( (g_overlapLog == FIO_OVERLAP_LOG_NOTSET)
|
if ( (g_overlapLog == FIO_OVERLAP_LOG_NOTSET)
|
||||||
&& (cLevel == ZSTD_maxCLevel()) )
|
&& (cLevel == ZSTD_maxCLevel()) )
|
||||||
g_overlapLog = 9; /* full overlap */
|
g_overlapLog = 9; /* full overlap */
|
||||||
|
|||||||
Reference in new issue
Block a user