diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-11 22:15:56 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-12 00:21:06 +0000 |
commit | e50365f275ada4afcd5f25f2ac3328e341a79d71 (patch) | |
tree | 0e0d1b5ee52424ab2c0fa125b4f31fedbd83e2a4 /svc.c | |
parent | f83d0466afc32542f3f4ff962105c817a1be2c96 (diff) | |
download | cmogstored-e50365f275ada4afcd5f25f2ac3328e341a79d71.tar.gz |
Users reducing or increasing thread counts should increase ioq capacity, otherwise there's no point in having more or less threads if they are synched to the ioq capacity.
Diffstat (limited to 'svc.c')
-rw-r--r-- | svc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -169,6 +169,7 @@ void mog_svc_thrpool_rescale(struct mog_svc *svc, size_t ndev_new) /* respect user-setting */ if (svc->user_set_aio_threads) { + mog_svc_dev_user_rescale(svc, ndev_new); if (tp->n_threads >= ndev_new) return; @@ -291,6 +292,8 @@ void mog_svc_aio_threads_handler(void) syslog(LOG_INFO, "server aio_threads=%zu", req_size); svc->user_set_aio_threads = req_size; + if (svc->nmogdev) + mog_svc_dev_user_rescale(svc, svc->nmogdev); mog_thrpool_set_size(&svc->queue->thrpool, req_size); } } |