LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* How does CFQ handle the fairness of process write
@ 2011-01-23  0:49 Yuehai Xu
  2011-01-24  8:32 ` Nauman Rafique
  0 siblings, 1 reply; 2+ messages in thread
From: Yuehai Xu @ 2011-01-23  0:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens Axboe, yhxu

Hi all,

Suppose there are two processes writing lots of data to disk, these
data are written to cache at first, and then, kernel threads might
flush them to disk later. However, from the point of block device, the
kernel thread is just another process that issues write requests. So,
how does CFQ handle the fairness between the two processes? It is
impossible for CFQ to keep the fairness of the two queues for each
process since many write requests are dispatched by kernel thread,
which has another queue in CFQ. And both the requests from two
processes are mixed together in this kernel thread queue.

Is this description correct? In that case, how does CFQ keep the
fairness for two processes since CFQ seems unable to know the exact
process the request belongs to.

I appreciate your help.

Thanks,
Yuehai

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

end of thread, other threads:[~2011-01-24  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-23  0:49 How does CFQ handle the fairness of process write Yuehai Xu
2011-01-24  8:32 ` Nauman Rafique

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).