public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ll_rw_blk.c and high memory
@ 2001-05-30 11:47 Mark Hemment
  2001-05-30 12:08 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Hemment @ 2001-05-30 11:47 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

Hi Jens, all,

  In drivers/block/ll_rw_blk.c:blk_dev_init(), the high and low queued
sectors are calculated from the total number of free pages in all memory
zones.  Shouldn't this calculation be passed upon the number of pages upon
which I/O can be done directly (ie. without bounce pages)?

  On a box with gigabytes of memory, high_queued_sectors becomes larger
than the amount of memory upon which block I/O can be directly done - the
test in ll_rw_block() against high_queued_sectors is then never true.  The
throttling of submitting I/O happens much earlier in the stack - at
the allocation of a bounce page.  This doesn't seem right.

Mark


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

end of thread, other threads:[~2001-05-30 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-30 11:47 ll_rw_blk.c and high memory Mark Hemment
2001-05-30 12:08 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox