Re: [RFC][Resend] Make NFS-Client readahead tunable

From: Peter Zijlstra
Date: Thu Sep 18 2008 - 09:21:20 EST


On Thu, 2008-09-18 at 01:38 -0700, Martin Knoblauch wrote:

> I believe Peter wanted to add per bdi stuff for nfs some time ago. Not sure what came out of it.

$ mount localhost:/ /mnt/tmp
$ grep nfs /proc/$$/mountinfo
21 17 0:17 / /var/lib/nfs/rpc_pipefs rw - rpc_pipefs rpc_pipefs rw
31 13 0:20 / /proc/fs/nfsd rw - nfsd nfsd rw
37 17 0:22 / /mnt/tmp rw - nfs localhost:/ rw,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nointr,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=127.0.0.1,mountvers=3,mountproto=tcp,addr=127.0.0.1
$ ls -la /sys/class/bdi/0\:22/
total 0
drwxr-xr-x 3 root root 0 2008-09-18 15:16 .
drwxr-xr-x 21 root root 0 2008-09-18 15:16 ..
-rw-r--r-- 1 root root 4096 2008-09-18 15:19 max_ratio
-rw-r--r-- 1 root root 4096 2008-09-18 15:19 min_ratio
drwxr-xr-x 2 root root 0 2008-09-18 15:19 power
-rw-r--r-- 1 root root 4096 2008-09-18 15:19 read_ahead_kb
lrwxrwxrwx 1 root root 0 2008-09-18 15:19 subsystem -> ../../bdi
-rw-r--r-- 1 root root 4096 2008-09-18 15:19 uevent
$ cat /sys/class/bdi/0\:22/read_ahead_kb
960




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/