All of lore.kernel.org
 help / color / mirror / Atom feed
* Performance of autofs/amd-managed directory
@ 2004-05-26  3:02 Kenny Simpson
  2004-05-26  5:28 ` Ian Kent
  2004-05-26 12:47 ` Mike Waychison
  0 siblings, 2 replies; 3+ messages in thread
From: Kenny Simpson @ 2004-05-26  3:02 UTC (permalink / raw)
  To: autofs

What is the performance penalty for write access to files in a managed
directory vs. a fstab entry?
I have a program that is very sensitive to write latency, and am being
pressured to use amd or automount to access a NAS instead of my trusty fstab
entry.

My app uses a transactional log file that resides on a NAS.  I'd prefer to keep
a simple fstab entry and use O_DIRECT to access the file, but if there is no
penalty, I would switch.  Does O_DIRECT have meaning for automount or
amd-managed files?  (isn't amd user-space, so it would need to copy data
anyway?)

thanks,
-Kenny



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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

* Re: Performance of autofs/amd-managed directory
  2004-05-26  3:02 Performance of autofs/amd-managed directory Kenny Simpson
@ 2004-05-26  5:28 ` Ian Kent
  2004-05-26 12:47 ` Mike Waychison
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Kent @ 2004-05-26  5:28 UTC (permalink / raw)
  To: Kenny Simpson; +Cc: autofs

On Tue, 25 May 2004, Kenny Simpson wrote:

> What is the performance penalty for write access to files in a managed
> directory vs. a fstab entry?
> I have a program that is very sensitive to write latency, and am being
> pressured to use amd or automount to access a NAS instead of my trusty fstab
> entry.

autofs only performes the mounts on demand not much more.

Once the mount is done autofs knows is completely out of the way as far as 
mounted filesystem access is concerned.

> 
> My app uses a transactional log file that resides on a NAS.  I'd prefer to keep
> a simple fstab entry and use O_DIRECT to access the file, but if there is no
> penalty, I would switch.  Does O_DIRECT have meaning for automount or
> amd-managed files?  (isn't amd user-space, so it would need to copy data
> anyway?)

I don't know about the amd design and its overhead, sorry.

Ian

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

* Re: Performance of autofs/amd-managed directory
  2004-05-26  3:02 Performance of autofs/amd-managed directory Kenny Simpson
  2004-05-26  5:28 ` Ian Kent
@ 2004-05-26 12:47 ` Mike Waychison
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Waychison @ 2004-05-26 12:47 UTC (permalink / raw)
  To: Kenny Simpson; +Cc: autofs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kenny Simpson wrote:
> What is the performance penalty for write access to files in a managed
> directory vs. a fstab entry?
> I have a program that is very sensitive to write latency, and am being
> pressured to use amd or automount to access a NAS instead of my trusty
fstab
> entry.
>
> My app uses a transactional log file that resides on a NAS.  I'd
prefer to keep
> a simple fstab entry and use O_DIRECT to access the file, but if there
is no
> penalty, I would switch.  Does O_DIRECT have meaning for automount or
> amd-managed files?  (isn't amd user-space, so it would need to copy data
> anyway?)
>

As Ian already pointed out, automount simply mounts filesystems in place
when requested and does not affect any file access fast-paths.

Similarly, amd also simply mounts the NFS filesystems, albeit in a
different location and uses symlinks to redirect the user.  This has the
side-effect that a chdir('..') will drop you in a different directory.

As long as you have O_DIRECT support in your NFS client, neither
solution will have any real adverse effects on your transactional log.

- --
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice
mailto: Michael.Waychison@Sun.COM
http://www.sun.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE:  The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAtJHNdQs4kOxk3/MRAuBmAJ9Ax8CPblvJOiil5CNvFJYerkyMSACeL3wI
ckLOQO+1oIecf0q2Ujoqwe8=
=Z5rB
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2004-05-26 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-26  3:02 Performance of autofs/amd-managed directory Kenny Simpson
2004-05-26  5:28 ` Ian Kent
2004-05-26 12:47 ` Mike Waychison

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.