On Sun, 1 Jun 2008 13:40:09 +0200 Pavel Machek <pavel@suse.cz> wrote:
/sys/block/sda/queue/nr_requests
In theory, no - it's always caused problems when the VM/VFS/FS layer
has relied upon request-queue exhaustion for throttling. Hence all
that code is supposed to work OK when there is no request-queue
blocking. Of course, (theory/practice != 1.0).
Well if you're asking the syscall to shove more data into the block
layer than it can concurrently handle, sure, the block layer will
block. It's tunable...
It can still block in places, of course - we might need to do
synchronous reads to get at metadata and we'll need to allocate memory.
I sense a strangeness. What are you actually trying to do with all of this?
Bear in mind that sync_file_range() doesn't sync metadata (ie: indirect
blocks). So if they weren't already known to have been written, the
data isn't safe.
um, OK. I'll fix the grammar a bit there.
--