Solved

nfsstat on client connected to nas showing 80+% getattr

Posted on 2004-08-07
5
551 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
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
USPS intelligent mail barcode font 11 150
how does facebook / twitter store data? 3 142
IPA - change main server? 3 154
Setup static routes for IP address in CentOS 2 67
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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