Re: [PATCH 8/8] aio: support for IO polling

2018-11-22 Thread Jan Kara
On Tue 20-11-18 10:19:53, Jens Axboe wrote: > +/* > + * We can't just wait for polled events to come to us, we have to actively > + * find and complete them. > + */ > +static void aio_iopoll_reap_events(struct kioctx *ctx) > +{ > + if (!(ctx->flags & IOCTX_FLAG_IOPOLL)) > +

[PATCH 2/5] bcache: option to automatically run gc thread after writeback accomplished

2018-11-22 Thread Coly Li
The option gc_after_writeback is disabled by default, because garbage collection will discard SSD data which drops cached data. Echo 1 into /sys/fs/bcache//internal/gc_after_writeback will enable this option, which wakes up gc thread when writeback accomplished and all cached data is clean. This

[PATCH 1/5] bcache: introduce force_wake_up_gc()

2018-11-22 Thread Coly Li
Garbage collection thread starts to work when c->sectors_to_gc is negative value, otherwise nothing will happen even the gc thread is woken up by wake_up_gc(). force_wake_up_gc() sets c->sectors_to_gc to -1 before calling wake_up_gc(), then gc thread may have chance to run if no one else sets

[PATCH 0/5] Writeback performance tuning options

2018-11-22 Thread Coly Li
I receive requirement to provide options to permit people to do research on writeback performance tuning for their extreme heavy workloads. And these options are required to be disabled by default to avoid changing current code behavior. This series adds several disabled-by-default options for

[PATCH 3/5] bcache: add MODULE_DESCRIPTION information

2018-11-22 Thread Coly Li
This patch moves MODULE_AUTHOR and MODULE_LICENSE to end of super.c, and add MODULE_DESCRIPTION("Bcache: a Linux block layer cache"). This is preparation for adding module parameters. Signed-off-by: Coly Li --- drivers/md/bcache/super.c | 7 --- 1 file changed, 4 insertions(+), 3

[PATCH 4/5] bcache: make cutoff_writeback and cutoff_writeback_sync tunnable

2018-11-22 Thread Coly Li
Currently the cutoff writeback and cutoff writeback sync thresholds are defined by CUTOFF_WRITEBACK (40) and CUTOFF_WRITEBACK_SYNC (70) as static values. Most of time these they work fine, but when people want to do research on bcache writeback mode performance tuning, there is no chance to modify

[PATCH 5/5] bcache: set writeback_percent in a flexible range

2018-11-22 Thread Coly Li
Because CUTOFF_WRITEBACK is defined as 40, so before the changes of dynamic cutoff writeback values, writeback_percent is limited to [0, CUTOFF_WRITEBACK]. Any value larger than CUTOFF_WRITEBACK will be fixed up to 40. Now cutof writeback limit is a dynamic value bch_cutoff_writeback, so the

Re: [PATCH 8/8] aio: support for IO polling

2018-11-22 Thread Jens Axboe
On 11/22/18 4:13 AM, Jan Kara wrote: > > On Tue 20-11-18 10:19:53, Jens Axboe wrote: >> +/* >> + * We can't just wait for polled events to come to us, we have to actively >> + * find and complete them. >> + */ >> +static void aio_iopoll_reap_events(struct kioctx *ctx) >> +{ >> +if

Re: [PATCH blktests] Add use of logger so that syslog files show when each test starts

2018-11-22 Thread Theodore Y. Ts'o
Ping? - Ted On Mon, Oct 29, 2018 at 12:15:57PM -0400, Theodore Ts'o wrote: > Signed-off-by: Theodore Ts'o > --- > check | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/check b/check > index