From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,31271ebd5583df8b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-02-12 08:17:11 PST Newsgroups: comp.sys.dec Path: sparky!uunet!haven.umd.edu!decuac!hussar.dco.dec.com!mjr From: mjr@hussar.dco.dec.com (Marcus J. Ranum) Subject: Re: nfs memory requirements Message-ID: <1992Feb12.154821.13849@decuac.dec.com> Sender: news@decuac.dec.com (USENET News System) Nntp-Posting-Host: hussar.dco.dec.com Organization: Digital Equipment Corporation, Washington ULTRIX Resource Center References: <1992Feb12.143409.14141@europa.asd.contel.com> Date: Wed, 12 Feb 1992 15:48:21 GMT mclemore@gnd1.wtp.contel.com writes: >say you have a 1k file system mounted nfs versus 1gig, is more memory >required ? Not really. For reads, you're going to be using your system buffer cache, so having lots of buffer cache will improve read performance somewhat. For writes, since writes are synchonous, your bottleneck will be disk write throughput (unless you have something like prestocache, in which case you trade some CPU against disk throughput). >if not required, what are the tradeoffs (ie. you can run with >16m of memory and still support a 1gig nfs file system but, but WHAT) ? You can run with 16m of memory and support as much NFS filesystems as you can hang onto your machine. >how about nfs file system usage, 1gig rarely used versus very active 1k ? If you have a *VERY* active 1k, it'll all be in the read cache on the server, but the bottleneck will remain writes, since they are synchronous. It gets potentially amusing, since some NFS' cache partial copies of the current block on the *client* for a short time, unless you put some kind of locking in place, you're risking losing data if it's a 1k file. The same applies for 1gb files, but it's presumably less likely to bite you. >are there system tuning parameters normally adjusted to meet >specific nfs requirements ? Improve read throughput but increasing buffer cache. On ULTRIX MIPS machines, you can set cache_bufcache in /sys/mips/conf/param.c to be '1', which will cause the buffer cache information to be stored in hardware cacheable data space, trading off cache performance for performance of general purpose computing. For write throughput, you're pretty much either limited to suffering, buying more expensive and faster disks, or installing something like prestocache (which boosts write speed ~300% or so) mjr.