Advertisement

07.20.2005 at 12:44AM PDT, ID: 21497744
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Poor NFS performance - options required to reduce getattr percentage

Asked by glennstewart in Unix Setup

Tags: ,

Hi All,

This has been a long term problem that I've tried to solve with reference to some online documentation and trial and error.

Problem:
NFS performance between an Informix database server and an application server is seen to be a problem.

Symptom:
Some scripts run over night perform an existance test on an NFS mounted file before read/write (i.e. if [ -f $file ]). Despite the fact that the file is actually there, the response if $?=1.
Furthermore, performing nfsstat every half an hour with a reset daily, shows that the getattr value on the client side is not performing as well as expected.

Documentation I have referred to:

(1) http://www.princeton.edu/~psg/unix/Solaris/troubleshoot/nfsstat.html

In particular:
getattr > 40%:
The client attribute cache can be increased by setting the actimeo mount option. Note that this is not appropriate where the attributes change frequently, such as on a mail spool. In these cases, mount the filesystems with the noac option.

(2) http://www.hn.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/nfs/ch18_06.htm

getattr > 60%:
Check for possible non-default attribute cache values on NFS clients. A very high percentage of getattr requests may indicate that the attribute cache window has been reduced or set to zero with the actimeo or noac mount option. It can also indicate that the NFS filesystem implementation is doing a poor job of attribute caching.

(3) http://docs.hp.com/en/B1031-90043/ch02s03.html

Set actimeo=1 or actimeo=3 for a directory that is used and modified frequently by many NFS clients. This ensures that the file and directory attributes are kept reasonably up to date, even if they are changed frequently from various client locations.

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

With the above mentioned, several actimeo options have been tried including actimeo=1 & actimeo=3. Both still produced getattr of greater than 85%.

The following are example nfsstat's:

===============================================
# nfsstat -c

Client rpc:
Connection oriented:
calls       badcalls    badxids     timeouts    newcreds    badverfs
3364645     79          79          0           0           0
timers      cantconn    nomem       interrupts
0           0           0           79
Connectionless:
calls       badcalls    retrans     badxids     timeouts    newcreds
0           0           0           0           0           0
badverfs    timers      nomem       cantsend
0           0           0           0

Client nfs:
calls       badcalls    clgets      cltoomany
3313421     79          3313490     0
Version 2: (0 calls)
null        getattr     setattr     root        lookup      readlink
0 0%        0 0%        0 0%        0 0%        0 0%        0 0%
read        wrcache     write       create      remove      rename
0 0%        0 0%        0 0%        0 0%        0 0%        0 0%
link        symlink     mkdir       rmdir       readdir     statfs
0 0%        0 0%        0 0%        0 0%        0 0%        0 0%
Version 3: (3311489 calls)
null        getattr     setattr     lookup      access      readlink
0 0%        2898793 87% 1331 0%     112749 3%   29612 0%    4 0%
read        write       create      mkdir       symlink     mknod
9521 0%     85283 2%    9729 0%     0 0%        0 0%        0 0%
remove      rmdir       rename      link        readdir     readdirplus
2310 0%     0 0%        5165 0%     0 0%        123228 3%   13698 0%
fsstat      fsinfo      pathconf    commit
3667 0%     0 0%        0 0%        16399 0%

Client nfs_acl:
Version 2: (0 calls)
null        getacl      setacl      getattr     access
0 0%        0 0%        0 0%        0 0%        0 0%
Version 3: (2002 calls)
null        getacl      setacl
0 0%        2002 100%   0 0%
===============================================
And mount points:

# nfsstat -m

/calypso from databaseserver:/calypso
 Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,
wsize=32768,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=3,acdirmin=3,acdirmax=3

/topcall from topcall:C:\TCLFI
 Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,rsize=8192,wsize
=8192,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60

/opt/informix from databaseserver:/opt/informix
 Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,
wsize=32768,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=3,acdirmin=3,acdirmax=3

/calypso/reports from databaseserver:/calypso/reports
 Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,
wsize=32768,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=3,acdirmin=3,acdirmax=3

/calypso/archive from databaseserver:/calypso/archive
 Flags:         vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=32768,
wsize=32768,retrans=5,timeo=600
 Attr cache:    acregmin=3,acregmax=3,acdirmin=3,acdirmax=3
===============================================

I suspect that given this will require outages to test (which are spaced apart by 2 weeks), and further trial and error, while it might not be a difficult question to answer the person answering might not have the complete picture. And futhermore, the person answering will have to be patient for me to allocate points.

For this reason, I have decided to allocate more points.
But over time, I might allocate extra points if not getting too many submissions.

So I'll start off at just above moderately difficult - 170 points.


Thanks in advance for any contributions.Start Free Trial
[+][-]07.21.2005 at 04:47AM PDT, ID: 14492659

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.25.2005 at 12:18AM PDT, ID: 14516347

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.25.2005 at 12:19AM PDT, ID: 14516350

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.25.2005 at 02:13PM PDT, ID: 14521947

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.31.2005 at 05:24PM PDT, ID: 14566791

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.31.2005 at 09:56PM PDT, ID: 14567541

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.18.2005 at 08:58PM PDT, ID: 14706374

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2005 at 09:00PM PDT, ID: 14706383

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2005 at 09:00PM PDT, ID: 14706386

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.18.2005 at 10:42PM PDT, ID: 14706685

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.18.2005 at 10:53PM PDT, ID: 14706723

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.19.2005 at 03:37PM PDT, ID: 14713471

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.20.2005 at 02:27AM PDT, ID: 14714948

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.21.2005 at 09:23PM PDT, ID: 14721762

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2005 at 10:34PM PDT, ID: 14721953

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.28.2005 at 03:07AM PDT, ID: 14770604

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.28.2005 at 04:39AM PDT, ID: 14770742

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Unix Setup
Tags: nfs, getattr
Sign Up Now!
Solution Provided By: gheist
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.01.2005 at 11:24PM PDT, ID: 14808009

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.03.2005 at 09:00PM PST, ID: 15222576

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43