Linux NFS development
 help / color / mirror / Atom feed
* NFS performance degradation of local loopback FS.
@ 2008-06-19  6:46 Krishna Kumar2
  2008-06-19  9:58 ` Krishna Kumar2
  0 siblings, 1 reply; 32+ messages in thread
From: Krishna Kumar2 @ 2008-06-19  6:46 UTC (permalink / raw)
  To: linux-nfs

[-- Attachment #1: Type: text/plain, Size: 873 bytes --]


Hi,

I am running 2.6.25 kernel on a [4 way, 3.2 x86_64, 4GB] system. The test
is doing I/O on a local ext3 filesystem, and measuring the bandwidth, and
then NFS mounting the filesystem loopback on the same system. I have
configured 64 nfsd's to run. The test script is attached at the bottom.

My configuration is:
      /dev/some-local-disk  :            /local
      NFS mount /local       :            /nfs

The result is:
      200 processes:
            /local: 108000 KB/s
            /nfs:     66000 KB/s: Drop of 40%

      300 processes (KB/s):
            /local: 112000 KB/s
            /nfs:    57000 KB/s: Drop of 50%

I am not using any tuning, though I have tested with both
sunrpc.tcp_slot_table_entries=16 & 128

Is this big a drop expected for a loopback NFS mount? Any
feedback/suggestions are very
appreciated.

Thanks,

- KK

(See attached file: nfs)

[-- Attachment #2: nfs --]
[-- Type: application/octet-stream, Size: 865 bytes --]

typeset -i i

# Arguments: I/O size, Processes, Time to run, Filesystem prefix, eg:
#	4096 200 10 /local/ddp; AND:
#	4096 200 10 /nfs/ddp
# For bufsize:4K, procs:200, time:10secs, Filesystem prefix: remainder.
#       where /local is an ext3 filesystem NFSv3 mounted on /nfs

bufsize=$1
max=$2
time=$3
prefix=$4

dir=`dirname $prefix`
localprefix=`echo $prefix | sed 's/nfs/local/'`

i=0
while [ $i -lt $max ]
do
	dd if=/dev/zero of=$prefix.$i bs=$bufsize count=100000000000 &
	i=$i+1
done

sleep $time

kill -9 `ps | grep dd | grep -v grep | awk '{print $1}'` > /dev/null 2>&1

# kill takes too long to finish, preserve the state using the local
# filesystem to get immediate and quick results).
ls -l $localprefix* > /tmp/$$

total=`cat /tmp/$$ | awk '{print $5}' | add`
bw=`echo "$total / $time / 1024" | bc`
echo "Total: $total bytes in $time sec = $bw KB/sec"

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2008-07-01 12:49 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19  6:46 NFS performance degradation of local loopback FS Krishna Kumar2
2008-06-19  9:58 ` Krishna Kumar2
2008-06-19 12:04   ` Peter Staubach
2008-06-19 12:52     ` Benny Halevy
2008-06-20  6:39       ` Krishna Kumar2
2008-06-20  9:21       ` Krishna Kumar2
2008-06-22  8:35         ` Benny Halevy
2008-06-23  8:11           ` Krishna Kumar2
2008-06-23 12:40             ` Benny Halevy
2008-06-26  7:19               ` Krishna Kumar2
2008-06-26 17:42                 ` Chuck Lever
2008-06-26 17:55                   ` J. Bruce Fields
2008-06-26 21:05                     ` Chuck Lever
     [not found]                       ` <76bd70e30806261405g9357c6fg51b973ff076ee78b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-26 21:22                         ` kernel hacker's pub night J. Bruce Fields
2008-06-26 21:24                           ` J. Bruce Fields
2008-06-27  7:14                             ` Benny Halevy
2008-06-27  9:04                   ` NFS performance degradation of local loopback FS Krishna Kumar2
2008-06-27 14:06                     ` Chuck Lever
     [not found]                       ` <76bd70e30806270706x7cbfd291l6cb6d0cc5e81771-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-30  9:57                         ` Krishna Kumar2
2008-06-30 15:25                           ` Chuck Lever
     [not found]                             ` <76bd70e30806300825t6490477dpb8ce3ee48a0a6777-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-07-01  3:43                               ` Krishna Kumar2
2008-06-27 17:44                     ` J. Bruce Fields
2008-06-27 18:06                     ` Dean Hildebrand
2008-06-30 10:10                       ` Krishna Kumar2
2008-06-30 15:26                         ` Jeff Layton
     [not found]                           ` <20080630112654.012ce3e4-xSBYVWDuneFaJnirhKH9O4GKTjYczspe@public.gmane.org>
2008-06-30 15:35                             ` J. Bruce Fields
2008-06-30 16:00                               ` Chuck Lever
2008-07-01 10:19                               ` Krishna Kumar2
2008-07-01 12:47                                 ` Jeff Layton
2008-06-30 15:35                             ` Chuck Lever
2008-07-01  5:07                             ` Krishna Kumar2
2008-06-30 15:30                         ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox