home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / doc / tune < prev    next >
Text File  |  1993-01-11  |  3KB  |  120 lines

  1. .Ch "Tuning C News"
  2. .Ix tuning performance
  3. .Ix performance tuning
  4. .SH
  5. Kernel tuning
  6. .Ix tuning kernel
  7. .PP
  8. The number of in-core i-nodes kept by the
  9. .Ix i-nodes in-core
  10. .UX
  11. kernel can make a dramatic difference to the performance of
  12. .I expire ,
  13. in particular.
  14. The 4BSD
  15. .I namei
  16. cache seems to be markedly more effective given plenty of
  17. in-core i-nodes.
  18. Recent 4BSD or SunOS systems typically have a kernel
  19. variable called
  20. .I ninode
  21. .Ix ninode
  22. (or more precisely,
  23. .I _ninode ),
  24. which should be increased
  25. from its usual value of a few hundred
  26. to a few thousand.
  27. (It appears that the value of
  28. .I ninode
  29. should exceed the number of directories under
  30. .Fn "" /usr/spool/news .)
  31. Details vary;
  32. if you are comfortable patching
  33. .Fn "" /vmunix
  34. with
  35. .I adb ,
  36. that will work,
  37. otherwise
  38. editing your master copy of
  39. .Fn "" param.c
  40. and rebuilding the kernel should do the job.
  41. On Ultrix,
  42. the variable is probably called
  43. .I ngnode
  44. (\c
  45. .I _ngnode ).
  46. .Ix ngnode
  47. On other systems,
  48. the variable may actually be a compile-time
  49. .B #define d
  50. constant called
  51. .I NINODE .
  52. .SH
  53. Disk layout
  54. .PP
  55. .Ix tuning "disk layout"
  56. Spreading disk activity across multiple drives and controllers
  57. helps to minimise elapsed time.
  58. These suggestions obviously only apply if you have the resources
  59. on hand to implement them.
  60. Sites that batch outgoing news for uucp
  61. will benefit by having
  62. .Fn "" /usr/spool/uucp
  63. and
  64. .Fn NEWSARTS
  65. on separate drives,
  66. which avoids the frantic head motion between the two partitions
  67. if they share a single drive.
  68. Putting
  69. .Fn NEWSARTS /in.coming
  70. on a separate drive
  71. from
  72. .Fn NEWSARTS
  73. avoids similar head motion during news unbatching.
  74. .PP
  75. Although C News
  76. now supports multiple partitions mounted
  77. (or symlinked)
  78. under
  79. .Fn NEWSARTS
  80. for article storage,
  81. whether or not the underlying operating system supports
  82. links or symbolic links,
  83. it is fastest to make
  84. the article tree
  85. a single partition.
  86. Multiple partitions require that either symbolic links or copies
  87. be made.
  88. .SH
  89. Control files
  90. .PP
  91. .Ix tuning "sys files"
  92. Long newsgroup patterns in the
  93. .Fn "" sys
  94. file take longer to process than short ones.
  95. Certain redundant idioms can be collapsed,
  96. for example,
  97. .B comp,comp.all
  98. can be rewritten as simply
  99. .B comp ,
  100. and
  101. .B alt.binaries,comp.binaries,fj.binaries
  102. as
  103. .B all.binaries .
  104. Consider that the entry for
  105. a site asking for all but some hierarchy,
  106. say
  107. .B alt ,
  108. should probably be written as
  109. .B all,!alt,!to,to.site
  110. (ignoring the religious issue of distribution handling)
  111. rather than
  112. .B comp,news,sci,misc,talk,rec,soc,biz,gnu,bionet,eunet,to.site,world
  113. (which will have to be updated when a new hierarchy appears anyway).
  114. Consider too that
  115. a neighbour requesting
  116. .B comp.sys.sgi.admin,comp.sys.sgi.apps,comp.sys.sgi.bugs,comp.sys.sgi.graphics,comp.sys.sgi.hardware,comp.sys.sgi.misc, [...]
  117. should probably just be sent
  118. .B comp.sys.sgi
  119. (with a suitable warning).
  120.