xfs
[Top] [All Lists]

Re: XFS readahead setting???

To: Roy Sigurd Karlsbakk <roy@xxxxxxxxxxxxx>
Subject: Re: XFS readahead setting???
From: Steve Lord <lord@xxxxxxx>
Date: 05 Dec 2001 11:15:10 -0600
Cc: XFS Mailing list <linux-xfs@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.30.0112051734090.2453-100000@xxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.30.0112051734090.2453-100000@xxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, 2001-12-05 at 10:36, Roy Sigurd Karlsbakk wrote:
> hi
> 
> Does XFS have any readahead setting on its own? I've tried the
> /proc/sys/vm/(max|min)-readahead setting in Linux without any success. I
> need somewhere between 4 and 16 MB readahead per file to be able to read
> a large number of large files concurrently, and to reduce seeks to a
> minimum.

The XFS read path is really the general linux read path, so the
readahead logic is the same for both. Take a look in mm/filemap.c
looks for MAX_READAHEAD - it is 31 pages, or 124K bytes, you could
probably change the algorithm and bump the maximum in here - however,
readahead just queues I/O to the block layer, the block layer has
its own maximum sizes for individual I/O requests. You may find
upping the readahead limit just pushes the problem down the stack
so to speak.

Steve


> 
> thanks
> 
> roy
> 
> --
> Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
> 
> Computers are like air conditioners.
> They stop working when you open Windows.
-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>