lkml.org 
[lkml]   [2001]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectll_rw_blk.c and high memory
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:54    [W:0.020 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site