Solved

nfsstat on client connected to nas showing 80+% getattr

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

15 Experts available now in Live!

Get 1:1 Help Now