nfsd readahead

From: Colin Gibbs (colin_at_gibbsonline.net)
Date: 05/31/04

  • Next message: Stefan Seyfried: "Re: swappiness=0 makes software suspend fail."
    Date:	Mon, 31 May 2004 13:05:25 -0600
    To: linux-kernel@vger.kernel.org
    
    
    

    Hi,

    I was having problems with slow streaming reads over nfs. After much
    investigation, I found that nfsd uses its own cache of readahead
    parameters and that:
    (1) they were not being reused
    (2) they were not being initialized properly

    For (1) decrement p_count after the read is done. I don't see any other
    users of these readahead parameters, so I guess its ok.

    For (2) call file_ra_state_init.

    With these changes, I get 35MB/s reads from disk over nfs. Before I got
    7MB/s.

    The bit with the stats is entirely optional.

    Colin

    
    

    -
    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/



  • Next message: Stefan Seyfried: "Re: swappiness=0 makes software suspend fail."

    Relevant Pages

    • Re: [RFC][patch 0/2] mm: remove PageReserved
      ... On Thursday 11 August 2005 00:27, David Howells wrote: ... > NFS consults the local cache, and finds the page isn't available ... > NFS reads the page from the server. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 3/4] cleanup ahead window calculation
      ... and renames it into 'set_next_ahead_window'. ... * not for each call to readahead. ... If a cache miss occured, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Buffered I/O slowness
      ... the readahead code will assemble single BIOs up to the size of the ... because the pages are in cache from the readahead. ... Right, for the direct I/O case, it looks like things are limited to 64 pages ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] NFS: fix client hang due to race condition
      ... The flags field in struct nfs_inode is protected by the BKL. ... disappear from the output of 'top' and there is no NFS activity between ... invalidate page cache too */ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 3/4][RESEND] readahead: factor out duplicated code
      ... If a cache miss occured, reduce next I/O ... * readahead window size management and submits the readahead I/O. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)