nfsd readahead
From: Colin Gibbs (colin_at_gibbsonline.net)
Date: 05/31/04
- Previous message: Russell Leighton: "F_SETSIG broken/changed in 2.6 for UDP and TCP sockets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- text/plain attachment: nfsd-readahead.patch
- Previous message: Russell Leighton: "F_SETSIG broken/changed in 2.6 for UDP and TCP sockets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|