Skip to contentSkip to conversation

Clustered IO (was: Re: [patch][rfc][rft] vm throughput 2.4.2-ac4)

DISCUSSION Rajagopal Ananthanarayanan 1 participant 1 message Feb 28, 2001 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Rik van Riel

Another solution would be to do some more explicit IO clustering and only flush _large_ clusters ... no need to invoke extra disk seeks just to free a single page, unless you only have single pages left.

Hi Rik,

Yes, clustering IO at the higher level can improve performance. This improvement is on top of the excellent elevator changes that Jens Axboe has done in 2.4.2. In XFS we are doing clustering at writepage(). There are two paths:

1. page_launder() -> writepage() -> cluster
# this path under memory pressure.
2. try_to_free_buffers() -> writepage() -> cluster # this path under background writing as in bdflush # but can also be used by sync() type operations that # work with buffers than pages.

Clustering by itself (in XFS) improves write performance by about 15-20%, and we're seeing close to raw I/O performance. With clustering the IO requests are pegged at 1024 sectors (512K bytes)
when performing large sequential writes ...

ananth.

--------------------------------------------------------------------------
Rajagopal Ananthanarayanan ("ananth")
Member Technical Staff, SGI.
--------------------------------------------------------------------------