Solved

nfsstat on client connected to nas showing 80+% getattr

Posted on 2004-08-07
5
556 Views
Last Modified: 2012-08-14
the only thing i can find to cut this down is caching attributes
via the mounting option:
actimeo=n

what is a good number of seconds to set this to?
is there anything else i can do?
0
Comment
Question by:xeon999
[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
  • 2
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11748822
hmm, actimeo=n disables caching, you should play with these values
for defaults see
  man nfs
0
 

Author Comment

by:xeon999
ID: 11749375
sorry, i meant n=seconds..not "no". i'm wondering what is a good number
of seconds to set it to lower my getattr but not cache files too long.
i actually just grabbed it from the man nfs...

       acregmin=n     The minimum time in seconds that attributes of a regular
                      file should be cached before requesting  fresh  informa-
                      tion from a server.  The default is 3 seconds.

       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 direc-
                      tory should be cached before requesting  fresh  informa-
                      tion from a server.  The default is 30 seconds.

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

       actimeo=n      Using  actimeo sets all of acregmin, acregmax, acdirmin,
                      and acdirmax to the same value.   There  is  no  default
                      value.



thnx!
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 125 total points
ID: 11750111
> .. i'm wondering what is a good number of seconds ..
that depends on the frequency these values change
If they change very often, then n=0 would be good (if you need to take care about these changes).
If these values do not change frequently, you probably can set the cache time to 1 hour or so .
You can't give general rules, in particular values, for that, it depends on your requirements: refresh period vs. traffic
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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