From: alan@shodha.enet.dec.com ( Alan's Home for Wayward Notes File.)
Subject: Re: nfs memory requirements
Date: 14 Feb 92 04:43:45 GMT [thread overview]
Message-ID: <5578@shodha.enet.dec.com> (raw)
In-Reply-To: 1992Feb12.143409.14141@europa.asd.contel.com
In article <1992Feb12.143409.14141@europa.asd.contel.com>, mclemore@gnd1.wtp.contel.com (KENNY MCLEMORE) writes:
> nfs questions,
>
> i interested in the memory overhead required to support file systems
> mounted nfs, for both client and severs.
>
> say you have a 1k file system mounted nfs versus 1gig, is more memory
> required ?
The memory requirements of NFS support come in form of;
o the base kernel support
o the group of processes that let NFS work
For the first I built a copy of my kernel to get a baseline.
Then I built a copy of it with NFS and RPC taken out. The
difference in size was about 240 KB. There may tables that
are allocated at boot which would use more space, but that's
a little harder to test.
The second is a little easier. I just happen to have two
systems one setup as a client using the defaults and the
other as a server with also with the defaults. On the
client I have (output of ps aux):
USER PID %CPU %MEM SZ RSS TT STAT TIME COMMAND
root 66 0.0 0.1 32 16 ? I 0:00 /etc/biod 4 (four of these)
root 57 0.0 0.2 112 96 ? I 0:00 /etc/portmap
This totals 240 KB. On the server I have:
root 988 0.0 0.7 264 236 ? I 0:00 /etc/mountd -i
root 60 0.0 0.4 136 112 ? I 0:00 /etc/portmap
root 69 0.0 0.1 32 16 ? I 0:06 /etc/biod 4 (4 of these)
root 993 0.0 0.2 140 64 ? I 2:05 /etc/nfsd 4 (4 of these)
This totals 1,088 KB. For the sizes I'm using the SZ field.
Are there any hidden memory costs? Does it require memory
that could be used somewhere else to mount an NFS served
file system? I doubt it. The size of the kernel is pretty
well fixed once booted. The mount table is big enough for
255 file systems. But you'll that many whether or not you
use NFS.
There is big, somewhat hidden cost, but you won't be able to
get rid of it. The ability to support more than one file
system caused the addition of an extra layer and some amount
of attendent support code; the generic file system. If you
could take this out, lots of things would get smaller.
> say you have a 1k file system mounted nfs versus 1gig, is more memory
> required ?
I don't believe that NFS cares how big the file system is.
>
> 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) ?
See the previous.
>
> how about nfs file system usage, 1gig rarely used versus very active 1k ?
This is where NFS tuning into play. If you have a busy file
system (size doesn't matter), you'll probably want more nfsd
and biod processes. As these do require more memory, there
will be a memory cost for more efficient usage. More of these
processes are NECESSARY, but they should improve client
performance. There's a NFS guide in the ULTRIX doc set that
should explain what they do. In the V4.2A doc set is a Performance
Management guide that should also help.
>
> are there system tuning parameters normally adjusted to meet
> specific nfs requirements ?
This isn't particular to NFS, but if you have a read
intensive environment, more buffer cache may help. If
you don't have a system that supports Prestoserve, about
also you can do to help writes is spread them out over
more disks.
>
> thanks in advance for any info, ken
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1992-02-14 4:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-02-12 14:31 nfs memory requirements KENNY MCLEMORE
1992-02-12 15:48 ` Marcus J. Ranum
1992-02-14 11:11 ` Roland Yeo
1992-02-14 4:43 ` Alan's Home for Wayward Notes File. [this message]
-- strict thread matches above, loose matches on Subject: below --
1992-02-14 11:15 Roland Yeo
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox