Skip to content

Commit

Permalink
dm cache policy smq: change max background work from 10240 to 4096 bl…
Browse files Browse the repository at this point in the history
…ocks

10240 blocks was too much, lowering this reduces the latency of copying
and consumes less memory.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
jthornber authored and snitm committed Nov 10, 2017
1 parent 64748b1 commit 8ee18ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-cache-policy-smq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ static struct dm_cache_policy *__smq_create(dm_cblock_t cache_size,
mq->next_hotspot_period = jiffies;
mq->next_cache_period = jiffies;

mq->bg_work = btracker_create(10240); /* FIXME: hard coded value */
mq->bg_work = btracker_create(4096); /* FIXME: hard coded value */
if (!mq->bg_work)
goto bad_btracker;

Expand Down

0 comments on commit 8ee18ed

Please sign in to comment.