Operating System - HP-UX
1833454 Members
3158 Online
110052 Solutions
New Discussion

Re: NFS performance issues

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

NFS performance issues

Hi everyone,

I have a bunch of (replicated?) SAP R/3 servers (HP-UX 11i).
The catch with those SAP boxes is that R/3 imposes vivid data exchange between them over automounted nfs mounts (so called transports).
What even tops this ludicroucy is that the production instance is an MC/CG clustered system with an additionally installed SAP toolkit that takes responsibilty of these silly nfs export during package state changes (I guess similar to the MC/SG NFS toolkit).

Sometimes the cluster nfs dependencies even reveal as a curse from a sysadmininstrative point of view.
But now the users of R/3 complain about bad performance while transports are running.

To me the client-wise automounted nfs shares from the production cluster seem to be the culprit.
But how can I identify the hog, and after having done so, what can I do to overcome this without necessarily breaking with the somewhat insane nfs transport philosophy of SAP?

I read somewhere that on the nfs clients I should observer timeouts, retrans, and badxids as displayed from the "nfsstat -rc" command

Another thing that comes to my mind.
Since we already are forced to use nfs mounts anyway, why introduce an additional latency with each automount?
Wouldn't it be better to deactivate the automounter, and rather use steady nfs mounts?
Or would it be wiser to just increase the default mount intervalls (-tm)?

Apart, would it make sense to decrease the read and write caches through the nfs mount options -rsize and -wsize?
Madness, thy name is system administration
8 REPLIES 8
Jochen Heuer
Respected Contributor
Solution

Re: NFS performance issues

Hi Ralph,

for NFS performance tuning have a look at this document by Dave Olker:

http://www.docs.hp.com/hpux/onlinedocs/1435/NFSPerformanceTuninginHP-UX11.0and11iSystems.pdf

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ian Dennison_1
Honored Contributor

Re: NFS performance issues

Ralph,

One thing that will bite you on transports (and especially Support Packages using SPAM) is the number of background processes configured.

Please ensure you have at least 3-4 background processes per Application Server, or alternatively apply the transport direct on the Database Server. Otherwise the system does 'thrash' a little bit trying to get all Background jobs done with only a few processes.

Share and Enjoy! Ian
Building a dumber user
Shannon Petry
Honored Contributor

Re: NFS performance issues

Whether it's automounted or not, really makes little difference. Both work the same way with the exception that the automounter only mounts file systems as used, then removes the mount after a set time that they are no longer used. Issue of a "mount" command from the automonter really does not have impact on performance.

Now, for the tuning...

I'd recommend that you change a few things, namely the rsize and wsize options. I dont remember off the top of my head the default buffer size (and at a site where I cant get to a HP).

Normally, I reduce greatly the buffer size, which means that data transfers quickly with less dead space in packets.

Look at changing the mount options for the required file systems, and reducing both the read and write buffer size to 8192.

Also, increasing the number of nfsd's and biod's on the client and server respectively can help. These values are changed in the /etc/rc.config.d/nfsconf file.

NOTE: backup any of the boot config files before making changes just in case you oops.

Regards,
Shannon
Microsoft. When do you want a virus today?
Ralph Grothe
Honored Contributor

Re: NFS performance issues

Jochen,

many thanks for the link.
I think this document will shed more light to the nfs mysteries and raise my understanding of nfs.

Ian,

does your remark about the propper configuration of bg procs relate to anything SAP-wise?
I have to confess to have no SAP knowledge, and hope our SAP guys can make something with your hint.
Or was something meant that could be tampered with from a Unix sysadmin perspective?
Madness, thy name is system administration
Jochen Heuer
Respected Contributor

Re: NFS performance issues

Hi Ralph,

NFS performance usually is not that simple. You have to find out what the bottleneck is.

Is it the server? Is it responding too slowly? If so, what is causing this? Are there enough nfsd's? Are they really running and not swapped out? Check with

$ export UNIX95=1
$ ps -C nfsd -o comm,flags,pcpu
COMMAND F %CPU
nfsd 0 0
nfsd 0 0
nfsd 0 0
nfsd 0 0
...

If the flag (F) is 0 then the nfsd's are currently not in memory! Then the server has not enough memory / there's a memory leak / database is sized to large / ...

Other useful commands are

$ netstat -s # on client and server
$ nfsstat -s # on server
$ nfsstat -c # on client
$ nfsstat -m # on client

But most of this should be covered in Dave Olkers document.

Regards,

JOchen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Ian M
Advisor

Re: NFS performance issues

I've been in lurk mode reading archives and looking for help with a posisbly similar or related issue with NFS. I've seen many references to the "rsize" and "wsize" settings, but didn't see anything to confirm that these are settings on the server or the client.

Should they be set in /etc/fstab of the server?

SERVER:

In my case the rsize/wsize=8192 as shown by nfsstat -m shows that the few directories from other machines I mount on the HP server, (they come off a linux machine and one other HP Visualize station running 11.11) are all rsize/wsize=8192.

CLIENT:

When I go to the client, and do the nfsstat -m I see that the mounted dirs (in this case, all from the HP server) don't have matching rsize/wsize:

Directories mounted from the client side portion /etc/auto.direct file are
rsize/wsize=32768

Directories mounted by the NIS pushed portion of the auto.direct file are rsize/wsize=32768.

Any directory mounted from a NIS pushed /etc/auto.home is rsize/wsize=8192

All these dirs come from the same HP server when on the client.

--------------

Sorry if I'm out of place or if I muddied the waters here by jumping in with my issues...but this seemed like place to ask.

Where exactly is the rsize/wsize controlled? Is it an NFS (server) setting or a VxFS setting at mount time?

Ian
Jochen Heuer
Respected Contributor

Re: NFS performance issues

On a side note. If the SAP *binaries* are in a directory that is mounted via NFS you should change this! There is a note called SAPCPE which explains the steps required to have the SAP binaries in a local directory ...

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Shannon Petry
Honored Contributor

Re: NFS performance issues

Ian,

wsize and rsize are mount options, so client side. You can change these options in the auto_master normally. Just add the args
rsize=8192,wsize=8192

Similarly, in the mount options of the fstab file, the same args can be added.


On strict file servers, I usually reduce the buffer size to 4096.

On servers, I usually run 32-64 nfsd's, depending on how many clients they have (normally I go 2 clients per nfsd). On the clients, I run 8-16 biod's depending on how much data is mounted. If I have data and apps, then 16 biod's. Just data, then 8. The default for both is 4 in HP-UX.

Regards,
Shannon
Microsoft. When do you want a virus today?