Solved

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

Posted on 2004-04-20
5
444 Views
Last Modified: 2011-09-20
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%


0
Comment
Question by:paries
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10878720
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
 

Author Comment

by:paries
ID: 10878927
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
 
LVL 9

Expert Comment

by:Alf666
ID: 10879351
> 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
 

Author Comment

by:paries
ID: 10879541
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
 
LVL 9

Accepted Solution

by:
Alf666 earned 500 total points
ID: 10879645
I'd increase them 100% (doubling) at first, and see how it behaves.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now