All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] cfq: High precision slice tuning
@ 2016-06-08 13:11 Jan Kara
  2016-06-08 13:11 ` [PATCH 1/3] cfq-iosched: Convert from jiffies to nanoseconds Jan Kara
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jan Kara @ 2016-06-08 13:11 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Jeff Moyer, Jan Kara

Hi,

since Jens didn't merge the patches yet, I'm sending v2 of the series. Since
v1 I have added Jeff's Reviewed-by tag and also fixed two 32-bit issues
(possible overflow when computing cfq_latency_target and 64-bit division using
'/' in choose_wl_class_and_type()). Jens, please merge these patches. Thanks!

								Honza
---

Intro to the series

This series contains patches which convert CFQ to internally use nanoseconds
instead of jiffies (based on patch from Jeff), use high resultion timers, and
provide interfaces to tune slice length in microseconds instead of miliseconds.
Currently, since CFQ uses jiffies interally, the precision of slice length is
in the order of microseconds (e.g., 4 ms for SUSE kernels). In some cases it
would be desirable to tune the slice length to 1 ms or even somewhat lower -
especially in cases where the idling is necessary only to avoid starving
processes doing dependent IO. There giving process 1 ms to submit more IO is
usually more than enough. 

I have been running some IO benchmarks (dbench, postmark, tiobench) with these
patches and didn't see any negative effect. I have also checked that tuning
slice lenght down to 0.5 ms basically removes negative performance effect of
isolating dbench process in a blkio cgroup in my setup. The optimal length
of timeslice obviously depends on the setup and workload and it is not goal
of this patch set to argue about the time slice lenght. Mostly I just wanted
to demonstrate that tuning the timeslice length down helps some workloads and
we don't want to disable idling completely.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-08 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-08 13:11 [PATCH 0/3 v2] cfq: High precision slice tuning Jan Kara
2016-06-08 13:11 ` [PATCH 1/3] cfq-iosched: Convert from jiffies to nanoseconds Jan Kara
2016-06-08 13:11 ` [PATCH 2/3] cfq-iosched: Expose microsecond interfaces Jan Kara
2016-06-08 13:11 ` [PATCH 3/3] cfq-iosched: Convert to use highres timers Jan Kara
2016-06-08 15:08 ` [PATCH 0/3 v2] cfq: High precision slice tuning Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.