From: Nick Terrell Date: Wed, 14 Nov 2018 20:59:01 +0000 (-0800) Subject: [cli] Set the job size X-Git-Tag: v1.3.8~46^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=431640942732360c2dfd1bf234ac0fecabca51b6;p=thirdparty%2Fzstd.git [cli] Set the job size --- diff --git a/programs/fileio.c b/programs/fileio.c index 705a56601..2818b96e8 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -556,6 +556,7 @@ static cRess_t FIO_createCResources(const char* dictFileName, int cLevel, #ifdef ZSTD_MULTITHREAD 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_jobSize, g_blockSize) ); if ( (g_overlapLog == FIO_OVERLAP_LOG_NOTSET) && (cLevel == ZSTD_maxCLevel()) ) g_overlapLog = 9; /* full overlap */