Solved

nfsstat on client connected to nas showing 80+% getattr

Posted on 2004-08-07
5
548 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
5 Comments
 
LVL 51

Expert Comment

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

Author Comment

by:xeon999
Comment Utility
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
Comment Utility
> .. 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

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…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

12 Experts available now in Live!

Get 1:1 Help Now