Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-20
5
Medium Priority
?
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 total points
ID: 10879645
I'd increase them 100% (doubling) at first, and see how it behaves.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

636 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