?
Solved

nfsstat on client connected to nas showing 80+% getattr

Posted on 2004-08-07
5
Medium Priority
?
580 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
  • 2
3 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

829 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