Linux NFS development
 help / color / mirror / Atom feed
* some thoughts about configuring a server
@ 2007-07-17 12:54 Frank van Maarseveen
  0 siblings, 0 replies; only message in thread
From: Frank van Maarseveen @ 2007-07-17 12:54 UTC (permalink / raw)
  To: Linux NFS mailing list

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-17 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 12:54 some thoughts about configuring a server Frank van Maarseveen

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