home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_05 / issue_12 < prev   
Text File  |  1995-02-16  |  10KB  |  215 lines

  1. Hints and Tips
  2. 5.12
  3. Å   Free Space Ö (Ref to Archive 5.11 p21) Ö The call to check the amount
  4. of free space on a disc is ADFS_FreeSpace. On entry, R0 points to the
  5. disc specifier and on exit R0 contains the free space and R1 contains
  6. the size of the largest object that can be created. E.g.
  7. 5.12
  8. SYSöADFS_FreeSpaceò,ö:0ò to free%,largest%
  9. 5.12
  10. Change the ADFS to RamFS, SCSIFS or whatever youære using.
  11. 5.12
  12. Å   Free space on hard discs Ö For some time I had been concerned by the
  13. apparent discrepancy between the figures returned by COUNT and FREE for
  14. the space used by files on my SCSI discs. I was aware that COUNT only
  15. counts the actual files and that FREE counts all the space used but I
  16. still felt uneasy and my discs seemed to fill up alarmingly quickly.
  17. 5.12
  18. ADFS floppies use 2k for every directory and there is an initial 4k
  19. overhead for the map on E format discs. My impression was that the same
  20. amount of space would be used for each directory in all Filecore
  21. systems, including SCSI, but that the map would take more space
  22. depending on the size of the disc.
  23. 5.12
  24. So the first thing I did was to estimate the number of directories on my
  25. 120M disc. I make full use of the directory structure to organise my
  26. data, not to any great depth but with some width. RISC-OS encourages
  27. this and, of course, applications are directories too. I reckoned there
  28. were well over 1000 directories on the disc, but at 2k per directory,
  29. this did not account for the difference.
  30. 5.12
  31. With a little experiment of adding a directory and looking for the
  32. change in free space, I found that a directory was taking a staggering
  33. 28k! This was where the space was going, but why?
  34. 5.12
  35. My Oak SCSI card is managed by their SCSIForm program which allows some
  36. flexibility in defining the format of the disc. Having backed-up, I did
  37. some experimenting with the parameters.
  38. 5.12
  39. I changed the sector size, but the minimum value for the 120M disc was
  40. 512 bytes and, for a 42M removable was 256 bytes. I imagine the lowest
  41. possible value of 128 bytes is only for small discs. Anyway, the changes
  42. I made had only very small effects on space or disc transfer times. The
  43. default is 512 bytes per sector, so I left it at that.
  44. 5.12
  45. Next I changed the file allocation size. This defaults to 2k on the
  46. large disc and 1k on the other. The minimum is 256 bytes. The larger
  47. values are chosen, I believe, to speed up transfer times to large files
  48. on larger discs. I did not think this parameter would have an effect on
  49. the structure, but look at the table below. The results were impressive.
  50. For a loss of transfer time of less than 5% I was gaining a saving on
  51. structure of 7 times! There were similar results for the smaller disc.
  52. 5.12
  53.    File Allocæn  (bytes)   2048
  54.    1024   512   256
  55. 5.12
  56.    Map Space (k)   57   47
  57.    68.5   124
  58. 5.12
  59.    Diræy Space  (k each)   28   15
  60.    7.5   4
  61. 5.12
  62.    Mode 0   (k/sec)   1959   1864
  63.    1864   1864
  64. 5.12
  65.    Mode 21  (k/sec)   994   955
  66.    955   955
  67. 5.12
  68. I have not delved any further into why more than 2k per directory is
  69. taken in SCSI but the figures suggest 14 blocks are used: 13 are <256
  70. bytes and the other is 512-768 bytes.
  71. 5.12
  72. When I settled on a file allocation size of 256 bytes, I recovered about
  73. 30M of extra space on the larger disc Ö about ú200 worth, perhaps. Some
  74. of this saving comes from taking much less space for the multitude of
  75. small !Run,!Boot and !Sprites files.
  76. 5.12
  77. The only other make of SCSI of card I have access to is a Cumana one in
  78. school, running in a fileserver for 600 users. This too has 1000+
  79. directories. The Cumana SCSIManager program only offers formatting with
  80. default values, so I changed the format using my Oak card and made
  81. similar impressive savings. The disc runs happily with the Cumana card,
  82. as you would expect, but will not dismount. This is no penalty with
  83. self-parking heads.
  84. 5.12
  85. I then found an old ADFS hard drive and did the same check, finding that
  86. a new directory takes 12k. RAMFS takes a straight 2k. I would be
  87. interested to know if the same problem applies to IDE discs and what
  88. formatting is possible with other SCSI cards.  Steve Drain, Portland.ááA
  89. 5.12
  90.  
  91.  
  92.  
  93.  
  94. Impression Hints & Tips
  95. 5.12
  96. àÅ   Problems with version 2.17 Ö If you are having problems with version
  97. 2.17 Ö such as the machine hanging up when you select large areas of
  98. text Ö donæt blame Impression! Basically, what is happening is that CC
  99. have implemented message-passing via the Wimp for their thesaurus and
  100. these messages are rather large. This is a perfectly valid thing to do
  101. under Acornæs RISC-OS programming guidelines but not all filing systems
  102. have been written to allow for such large messages and they end up over-
  103. writing areas of memory Ö hence the crashes. Filing system versions
  104. known to be a problem are:
  105. 5.12
  106.    Oak SCSI version 1.11
  107. 5.12
  108.    Ian Copestake IDE version 1.13,
  109. 5.12
  110.    Serial Port IDE version 1.01, March æ91
  111. 5.12
  112. CC say... öIf your Archimedes gives problems, contact your Acorn
  113. supplier or the appropriate company. Please do not contact Computer
  114. Concepts Ö these problems are not caused by Impression but by the filing
  115. system.ò
  116. 5.12
  117. The Oak SCSI filer 1.11 has been replaced by version 1.16 but this Énewæ
  118. version (actually two years old!) is available through Archive as an
  119. upgrade for ú12 inc VAT.
  120. 5.12
  121. The ICS filer 1.13 can be swapped for version 1.14 as a free EPROM
  122. exchange from ICS. They also have a completely re-written IDE filer
  123. (version 2) which is available from them for ú15 +VAT. The customer
  124. returns the old EPROM afterwards.
  125. 5.12
  126. The Serial Port filer 1.01 can be replaced with 1.02 as a free upgrade Ö
  127. in this case, just send the floppy disc back to The Serial Port and they
  128. will replace it.
  129. 5.12
  130. Å Using borders Ö From David Wooldridge comes one of those tips that is
  131. obvious to the initiated but might be new to some users. When choosing a
  132. border in the Alter Frame window (view mode), donæt forget you can see
  133. the various borders by pointing at the white border in the window and
  134. pressing menu. A border picker window opens, allowing you to select from
  135. all the available borders. This tip is in the manual but, as we all
  136. know, not everyone reads manuals Ö own up, please, if this is new to
  137. you! (Me for one! Ed.)
  138. 5.12
  139.  
  140.  
  141.  
  142. The Readers Write!
  143. 5.12
  144. Å Laser Jet printing with RISC-OS3 Ö Gerald Fitton (of Pipeline fame!)
  145. has experienced a problem when using RISC-OS 3, !Printers, Laser Jet II
  146. and Impression. He has found that documents in the portrait format print
  147. 7 mm out of position on the vertical axis and are offset 5mm to the
  148. right. This occurs even when the page borders are set to 0 mm. If he
  149. increases the latter figure, the print out is further out of position.
  150. As Gerald says, ÉWhat I need is a minus value for my borders. Help!æ Has
  151. anyone else come across this particular problem?
  152. 5.12
  153. Å Keeping track of Draw and Sprite files Ö In Archive 5.9 p37 Steve
  154. Hutchinson was asking advice on keeping track of his Draw and sprite
  155. files and was recommended two viewing applications. There is also an
  156. easy hardcopy method namely !PicList which was on the Acorn User October
  157. 1991 disc after being upgraded from the May version. The application
  158. makes a set of sprite öpagesò containing any Draw or sprite pictures
  159. that are dropped into it. The pictures are displayed in a grid and are
  160. labelled with their name/path above them. The application is easy to use
  161. from the iconbar having options to:
  162. 5.12
  163. Å   Set up the size of the öpageò (defaults to print size if a driver is
  164. loaded),
  165. 5.12
  166. Å   Set the number of columns and rows required Ö depending on the
  167. required detail of each picture,
  168. 5.12
  169. Å   Set the screen mode for the resultant öpagesò,
  170. 5.12
  171. Å   Choose the path/name format to name each picture.
  172. 5.12
  173. You can drop directories onto the icon and several pages are generated.
  174. The pages can be stepped through to view and saved to make a hardcopy of
  175. each page. Alan Wilburn, Hartlepool.
  176. 5.12
  177. Å Auto destruct! Ö In the Hints and Tips section of the June edition of
  178. Archive, there was a mention of possible problems with the auto-save
  179. facility of Impression under the title öAuto-destruct!ò. Version 2.16
  180. (and 2.17) of Impression does not appear to be as dangerous in this
  181. respect. If the auto-save facility is turned on but with the öWith
  182. promptò switch left off, a prompt will still appear on-screen before the
  183. first time the document is auto-saved.
  184. 5.12
  185. This also occurs the first time the document is auto-saved after it has
  186. been reloaded. It is mentioned in the Impression 2.15 release notes on
  187. pages 1 and 3.
  188. 5.12
  189. Still on the subject of Impression, I have two problems that readers of
  190. Archive may be interested in:
  191. 5.12
  192. Spelling checker Ö If you check and replace a misspelled word by using
  193. <Ctrl-W> to invoke the spelling checker, this appears to work correctly
  194. except that if you have typed nothing after the word, it also has the
  195. effect of <Ctrl-B> and returns you to basestyle. Obviously the solution
  196. is to always type at least a space after the word before using <Ctrl-W>.
  197. 5.12
  198. PrintBJ (the extension module to print draft text) Ö This makes a
  199. reasonable attempt at interpreting styles as far as different fonts and
  200. font sizes are concerned but seems unable to cope with rulers or effects
  201. that control the position of the text on the page. Tabs it gets
  202. completely wrong, right aligned text is centred, centred text is centred
  203. but using a page width about three quarters of the actual width. This is
  204. using the Canon BJ-10e. I have phoned Computer Concepts who suggested I
  205. wrote enclosing example documents both printed and on disc. This I did
  206. several months ago and have not received a reply. Has anyone else
  207. experienced these problems or indeed found a solution? Nick Edgar,
  208. Doncaster.
  209. 5.12
  210. I can understand Nickæs problems and only print out in graphics format.
  211. My method of working for proofing documents is always to print at a
  212. lower resolution Ö and hence achieve a quicker print out. Users of the
  213. Deskjet 500 have the option of using the draft mode on the printer for
  214. this purpose and leaving the resolution set on the driver unchanged.
  215.