Linux NFS development
 help / color / mirror / Atom feed
From: Frank van Maarseveen <frankvm@frankvm.com>
To: Linux NFS mailing list <nfs@lists.sourceforge.net>
Subject: some thoughts about configuring a server
Date: Tue, 17 Jul 2007 14:54:28 +0200	[thread overview]
Message-ID: <20070717125428.GA17627@janus> (raw)

My little theory is that (NFSv3) servers should primarily cache metadata
(inodes, dentries, block bitmaps) and clients should cache data and
associated metadata (as far as possible) for a specific working set.

why?

1)	because a server generally cannot cache all the data.
2)	The subjective (perceived) performance for interactive use
	at the client is largely determined by responsiveness e.g. how
	much time it takes before "ls -l" starts printing. Clients must
	see each others metadata updates very soon and that goes through
	the server. Caching metadata there will reduce disk seeks.


Assuming the above, the amount of server memory would become a function
of either:

-	the total number of inodes.
-	# inodes of combined working set assuming the (server) inode
	cache implements something like a LRU replacement strategy. I
	don't know if this is the case in the VFS, ext3 or knfsd.

And this might make sense too:

	echo 0 >/proc/sys/vm/dirty_ratio		# default 40 or 10
	echo 0 >/proc/sys/vm/dirty_background_ratio	# default 10
	echo 0 >/proc/sys/vm/vfs_cache_pressure		# default 100


Any opinion?

-- 
Frank

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

                 reply	other threads:[~2007-07-17 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070717125428.GA17627@janus \
    --to=frankvm@frankvm.com \
    --cc=nfs@lists.sourceforge.net \
    /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