PageRenderTime 25ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/web/pages/nfs-ganesha-adminguide/node13.html

https://bitbucket.org/toponado/nfs-proxy
HTML | 266 lines | 227 code | 30 blank | 9 comment | 0 complexity | f6e55e099ae357a5183f6128e7a03f91 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2. <!--Converted with LaTeX2HTML 2002-2-1 (1.71)
  3. original version by: Nikos Drakos, CBLU, University of Leeds
  4. * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
  5. * with significant contributions from:
  6. Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
  7. <HTML>
  8. <HEAD>
  9. <TITLE>The 'CacheInode_Client' block</TITLE>
  10. <META NAME="description" CONTENT="The 'CacheInode_Client' block">
  11. <META NAME="keywords" CONTENT="nfs-ganesha-adminguide">
  12. <META NAME="resource-type" CONTENT="document">
  13. <META NAME="distribution" CONTENT="global">
  14. <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
  15. <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
  16. <LINK REL="STYLESHEET" HREF="index.php?page=nfs-ganesha-adminguide/nfs-ganesha-adminguide.css">
  17. <LINK REL="next" HREF="index.php?page=nfs-ganesha-adminguide/node14">
  18. <LINK REL="previous" HREF="index.php?page=nfs-ganesha-adminguide/node12">
  19. <LINK REL="up" HREF="index.php?page=nfs-ganesha-adminguide/node4">
  20. <LINK REL="next" HREF="index.php?page=nfs-ganesha-adminguide/node14">
  21. </HEAD>
  22. <BODY >
  23. <!--Navigation Panel-->
  24. <A NAME="tex2html254"
  25. HREF="index.php?page=nfs-ganesha-adminguide/node14">
  26. <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  27. SRC="../../images/next.png"></A>
  28. <A NAME="tex2html250"
  29. HREF="index.php?page=nfs-ganesha-adminguide/node4">
  30. <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  31. SRC="../../images/up.png"></A>
  32. <A NAME="tex2html244"
  33. HREF="index.php?page=nfs-ganesha-adminguide/node12">
  34. <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  35. SRC="../../images/prev.png"></A>
  36. <A NAME="tex2html252"
  37. HREF="index.php?page=nfs-ganesha-adminguide/node1">
  38. <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  39. SRC="../../images/contents.png"></A>
  40. <BR>
  41. <B> Next:</B> <A NAME="tex2html255"
  42. HREF="index.php?page=nfs-ganesha-adminguide/node14">The 'CacheInode_GC_Policy' block</A>
  43. <B> Up:</B> <A NAME="tex2html251"
  44. HREF="index.php?page=nfs-ganesha-adminguide/node4">What to put in</A>
  45. <B> Previous:</B> <A NAME="tex2html245"
  46. HREF="index.php?page=nfs-ganesha-adminguide/node12">The 'CacheInode_Hash' block</A>
  47. &nbsp; <B> <A NAME="tex2html253"
  48. HREF="index.php?page=nfs-ganesha-adminguide/node1">Contents</A></B>
  49. <BR>
  50. <BR>
  51. <!--End of Navigation Panel-->
  52. <H2><A NAME="SECTION00229000000000000000">
  53. The 'CacheInode_Client' block</A>
  54. </H2>
  55. <P>
  56. This block defines the behavior of the metadata cache.
  57. It consists of the following key/value peers:
  58. <P>
  59. <UL>
  60. <LI>LogFile:
  61. The file where the metadata cache events are logged.
  62. <P>
  63. </LI>
  64. <LI>DebugLevel:
  65. The verbosity level for the metadata cache log.
  66. The values can be:
  67. <UL>
  68. <LI>NIV_NULL (no logging)
  69. </LI>
  70. <LI>NIV_MAJ (log only major events)
  71. </LI>
  72. <LI>NIV_CRIT (log only erroneous events)
  73. </LI>
  74. <LI>NIV_EVENT (log only important events)
  75. </LI>
  76. <LI>NIV_DEBUG (log all events)
  77. </LI>
  78. <LI>NIV_FULL_DEBUG (log all internal processing)
  79. </LI>
  80. </UL>
  81. <P>
  82. </LI>
  83. <LI>LRU_Nb_Call_Gc_invalid:
  84. Each worker maintains a LRU list of the last entries it handled.
  85. When a worker handles an entry, it sets it invalid in other
  86. threads' LRU's, in order to make them garbaging it.
  87. This parameter so defines the periodicity for garbaging invalid
  88. entries in this list. Thus, a worker will garbage its own list
  89. after processing this amount of NFS requests.
  90. <P>
  91. </LI>
  92. <LI>LRU_Prealloc_PoolSize:
  93. This parameter sets the number of LRU entries that
  94. are preallocated for each worker thread.
  95. Given that the total amount of theses entries equals
  96. the number of cache entries + a certain working set
  97. (number of working threads * LRU_Nb_Call_Gc_invalid),
  98. this parameter must be close to the forecasted number
  99. of metadata entries divided by the number of worker threads,
  100. + the value of LRU_Nb_Call_Gc_invalid.
  101. <P>
  102. </LI>
  103. <LI>Entry_Prealloc_PoolSize:
  104. This parameter is the number of preallocated cache entries
  105. for each worker thread. It must be close to the forecasted number
  106. of metadata entries divided by the number of worker threads.
  107. <P>
  108. </LI>
  109. <LI>DirData_Prealloc_PoolSize:
  110. This parameter is the number of preallocated directory cache entries
  111. for each worker thread. It must be close to the number of directories
  112. in the exported filesystem divided by the number of worker threads.
  113. <P>
  114. </LI>
  115. <LI>ParentData_Prealloc_PoolSize:
  116. This parameter is the number (for each thread) of preallocated
  117. entries' references to their parents (for example, a hard linked
  118. object can have several parents).
  119. <BR>
  120. It must be close to the forecasted number of metadata entries
  121. divided by the number of worker threads, except if the filesystem
  122. contains a huge amount of hard links (you should then multiply
  123. this value by the average number of hard links on each object).
  124. <P>
  125. </LI>
  126. <LI>State_v4_Prealloc_PoolSize:
  127. This parameter is the number (for each thread) of preallocated
  128. state to be used by each worker for NFSv4 State management.
  129. <BR>
  130. It is used only if NFSv4 is used.
  131. <P>
  132. </LI>
  133. <LI>Attr_Expiration_Time:
  134. The expiration delay (in seconds) for cached attributes.
  135. A value of "0" disables attributes cache expiration.
  136. <P>
  137. </LI>
  138. <LI>Symlink_Expiration_Time:
  139. The expiration delay (in seconds) for symbolic link content.
  140. A value of "0" disables symlink cache expiration.
  141. <P>
  142. </LI>
  143. <LI>Directory_Expiration_Time:
  144. The expiration delay (in seconds) for directory content.
  145. A value of "0" disables directory cache expiration.
  146. <P>
  147. </LI>
  148. <LI>Use_Getattr_Directory_Invalidation:
  149. This boolean indicates if a cached directory content is invalidated
  150. when its mtime has changed on the underlying filesystem.
  151. Setting this parameter to TRUE will result in an extra "getattr" operation
  152. on the filesystem for each NFS "readdir" call, so it could strongly impact
  153. the readdir performances.
  154. <BR>
  155. However, it must be set if your filesystem tree is continuously modified
  156. by an external actor (another NFS server, ...)
  157. and if you need a good re-synchronisation of GANESHA's NFS server cache.
  158. <P>
  159. </LI>
  160. <LI>Use_Test_Access:
  161. If set to TRUE (strongly recommended), NFS "access" calls will be
  162. performed according to the cached attributes (mode, group, owner,...).
  163. <BR>
  164. Else, each NFS "access" operation will result in an "access" call
  165. to the underlying filesystem.
  166. <P>
  167. </LI>
  168. <LI>Use_OpenClose_cache:
  169. If this boolean is set to TRUE, files will not be opened and closed
  170. at each read/write NFS call: GANESHA will cache a certain amount of
  171. opened file descriptors for better I/O performances (recommended).
  172. <P>
  173. </LI>
  174. <LI>Max_Fd:
  175. When datacaching is disabled and 'Use_OpenClose_cache' is enabled,
  176. this parameter indicates the maximum number of files that can be kept
  177. openned for each thread.
  178. <BR>
  179. NB: when datacaching is enabled, use the FileContent_Client::Max_fd parameter instead
  180. <P>
  181. </LI>
  182. <LI>OpenFile_Retention:
  183. When datacaching is disabled and 'Use_OpenClose_cache' is enabled,
  184. this parameter indicates the minimum time (in seconds) a file must
  185. be kept opened.
  186. <BR>
  187. If the 'max_fd' limit is reached and all files have been opened
  188. more recently than the 'OpenFile_Retention' time, no more file descriptors
  189. are cached until the previous ones are older than this value.
  190. <P>
  191. </LI>
  192. <LI>Async_Op_Prealloc_Poolsize (write back cache only):
  193. The number of structure representing an asynchronous operation
  194. to be preallocated.
  195. <P>
  196. </LI>
  197. <LI>Nb_Synclet (write back cache only):
  198. The number of synclet to be started.
  199. <P>
  200. </LI>
  201. </UL>
  202. <P>
  203. <HR>
  204. <!--Navigation Panel-->
  205. <A NAME="tex2html254"
  206. HREF="index.php?page=nfs-ganesha-adminguide/node14">
  207. <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  208. SRC="../../images/next.png"></A>
  209. <A NAME="tex2html250"
  210. HREF="index.php?page=nfs-ganesha-adminguide/node4">
  211. <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  212. SRC="../../images/up.png"></A>
  213. <A NAME="tex2html244"
  214. HREF="index.php?page=nfs-ganesha-adminguide/node12">
  215. <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  216. SRC="../../images/prev.png"></A>
  217. <A NAME="tex2html252"
  218. HREF="index.php?page=nfs-ganesha-adminguide/node1">
  219. <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  220. SRC="../../images/contents.png"></A>
  221. <BR>
  222. <B> Next:</B> <A NAME="tex2html255"
  223. HREF="index.php?page=nfs-ganesha-adminguide/node14">The 'CacheInode_GC_Policy' block</A>
  224. <B> Up:</B> <A NAME="tex2html251"
  225. HREF="index.php?page=nfs-ganesha-adminguide/node4">What to put in</A>
  226. <B> Previous:</B> <A NAME="tex2html245"
  227. HREF="index.php?page=nfs-ganesha-adminguide/node12">The 'CacheInode_Hash' block</A>
  228. &nbsp; <B> <A NAME="tex2html253"
  229. HREF="index.php?page=nfs-ganesha-adminguide/node1">Contents</A></B>
  230. <!--End of Navigation Panel-->
  231. <ADDRESS>
  232. root
  233. 2008-08-01
  234. </ADDRESS>
  235. </BODY>
  236. </HTML>