linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vladimir Elisseev <vovan@vovan.nl>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS3 + kerberos: performance issues
Date: Fri, 03 Jun 2011 19:57:16 +0200	[thread overview]
Message-ID: <1307123836.1052.23.camel@vovan.net.home> (raw)
In-Reply-To: <1307104354.2477.17.camel@lade.trondhjem.org>

There's no mount command involved in timing. It's simply copy of the
same directory (with many small files to NFS share with and without
sec=krb5 mount option.

Vlad.

On Fri, 2011-06-03 at 08:32 -0400, Trond Myklebust wrote:
> On Fri, 2011-06-03 at 09:29 +0200, Vladimir Elisseev wrote: 
> > Hello,
> > 
> > After using nfs3 with kerberos for a while I discovered very poor
> > performance for some file operations like creation of files. There are
> > two observations:
> > - the overal nfs3 performance is good: for instance copying large files
> > works fine
> > - this poor performance is definitely related to kerberos as the same
> > volume exported without sec=krb5 works ~10 times faster with creating
> > files
> > I'd appreciate if somebody can explain this behaviour?
> > 
> > Below are some details about NFS server and client:
> > server:
> > - kernel 2.6.36
> > - export options rw,sec=krb5,no_root_squash,no_subtree_check
> > - nfs-utils 1.2.3
> > 
> > client:
> > - kernel 2.6.38 or 2.6.39 
> > - mout options (from /proc/mounts):
> > rw,nosuid,nodev,noatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=krb5,mountaddr=192.168.1.219,mountvers=3,mountport=32767,mountproto=tcp,local_lock=none,addr=192.168.1.219
> > 
> > when the same volume exported without sec=krb5, the only option changes
> > in /proc/mounts is sec=sys
> 
> Can you please tell us a bit more about how you are measuring this? I
> might expect a x10 performance difference if the workload is dominated
> by the actual setting up of the RPCSEC_GSS session (i.e. you are timing
> mount+create one file or something like that). If we're talking about a
> workload where the RPCSEC_GSS negotiation can be neglected, however
> (mount+create 100000 files), I wouldn't expect any measurable
> performance impact from 'sec=krb'.
> 
> 


  reply	other threads:[~2011-06-03 18:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03  7:29 NFS3 + kerberos: performance issues Vladimir Elisseev
2011-06-03 12:32 ` Trond Myklebust
2011-06-03 17:57   ` Vladimir Elisseev [this message]
2011-06-07 23:07     ` J. Bruce Fields
2011-06-08  6:26       ` Vladimir Elisseev
2011-06-08 15:39         ` J. Bruce Fields
2011-06-08 16:00           ` Vladimir Elisseev
2011-06-08 16:24             ` J. Bruce Fields
2011-06-09  5:02               ` Vladimir Elisseev
2011-06-09 11:34                 ` J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307123836.1052.23.camel@vovan.net.home \
    --to=vovan@vovan.nl \
    --cc=Trond.Myklebust@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).