nfsstat shows getattr > 50% how do i detirmine how to set the correct cached attributes values

Hello,

I have two rh9 boxes. One is a NFS server and the other client. They are very busy boxes.

my nfsstat is below

the value i am concerned with is getattr?

i do not have noac set in the mount

from what i have read i am suppose to increatse my cached attributes values.

but i can not find out how to determine what to set these to.


null       getattr    setattr    lookup     access     readlink  
6       0% 18508844 52% 36065   0% 8584333 24% 563075  1% 83274   0%
read       write      create     mkdir      symlink    mknod      
6758776 19% 293269  0% 14834   0% 84      0% 698     0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
4978    0% 92      0% 5471    0% 0       0% 45360   0% 0       0%
fsstat     fsinfo     pathconf   commit    
77      0% 77      0% 0       0% 56495   0%


pariesAsked:
Who is Participating?
 
Alf666Connect With a Mentor Commented:
I'd increase them 100% (doubling) at first, and see how it behaves.
0
 
Alf666Commented:
What do you run on this NFS ? A squid proxy/cache with it's cache on the server ???

If you have one client only, I can suggest using the nocto option.
It should reduce your getattrs if you're using the server to create lots of files.

You can not change your cached attributes.

0
 
pariesAuthor Commented:
Both boxes are busy web servers and they share the same docroot

i do not understand this statement
"A squid proxy/cache with it's cache on the server ???"

what would the nocto buy me?  Does this only help when creating new files?

I am really not creating that many files, but modifing lots

Thanks for the response

0
 
Alf666Commented:
> i do not understand this statement
> "A squid proxy/cache with it's cache on the server ???"
I was just wondering if you were using your nfs server to strore files of a proxy/cache. Apparently not.


       nocto          Suppress the retrieval  of  new  attributes
                      when creating a file.


You could also play with the following :

       acregmax=n     The maximum time in seconds that attributes
                      of  a  regular  file  can  be cached before
                      requesting fresh information from a server.
                      The default is 60 seconds.

       acdirmin=n     The minimum time in seconds that attributes
                      of a  directory  should  be  cached  before
                      requesting fresh information from a server.
                      The default is 30 seconds.

       acdirmax=n     The maximum time in seconds that attributes
                      of   a   directory  can  be  cached  before
                      requesting fresh information from a server.
                      The default is 60 seconds.


But you might want to rethink your architecture. What do you mean by "modifying a lot" of files ? What do you store in them ? You may want to consider using a DB for this kind of need.

Do you have lots of static pages ? In this case, a mirror for all these pages may prove much better than NFS (mirrored only once).
0
 
pariesAuthor Commented:
unfortunately "rethink your architecture" would be nice, but not possible.
I am using LVS, and this is the best way to share the FileSystems.
Anyways....

How would i calculate how to set these variables. To i try  incrementing them by 10% or 50%

Thanks for the help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.