<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map area Retrieval pointers in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439585#M65872</link>
    <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Thank you for the correction.&lt;BR /&gt;&lt;BR /&gt;I do see quite a mix of systems, and disks which have been migrated between versions. So it is quite possible that all of the cases I have seen have involved files created by older versions.&lt;BR /&gt;&lt;BR /&gt;I did, however, want to ensure that people look carefully, and avoid the "multiple mapping pointers == fragmentation" mindset.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Dec 2004 07:34:21 GMT</pubDate>
    <dc:creator>Robert Gezelter</dc:creator>
    <dc:date>2004-12-13T07:34:21Z</dc:date>
    <item>
      <title>Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439575#M65862</link>
      <description>What is the correct way interpret the retrieval pointers display when dumping a file header?  Is this a good way to determine file fragmentation?</description>
      <pubDate>Wed, 08 Dec 2004 18:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439575#M65862</guid>
      <dc:creator>Mario Abruzzi</dc:creator>
      <dc:date>2004-12-08T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439576#M65863</link>
      <description>If by interpret, you mean determining if the file is fragmented, then I would say count them. Using DUMP/HEADER, count the number of rows of "Count:"..."LBN:".  Compare the row count to the disks window size; that would be the sysgen parameter ACP_WINDOW unless you use MOUNT/WINDOW.  If the  number of segments in the file is greater than the window size, then there is a potential for a window turn, which can slow things down a bit.  It has been a while since I refered to the documentation on this subject; so hopefully others in the forum will correct me if I am mistaken.&lt;BR /&gt;&lt;BR /&gt;File headers can be extended.  I would consider any file with a non-zero 'Extension file identifcation' as being fragmented.</description>
      <pubDate>Wed, 08 Dec 2004 18:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439576#M65863</guid>
      <dc:creator>Garry Fruth</dc:creator>
      <dc:date>2004-12-08T18:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439577#M65864</link>
      <description>Mario,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;   Is this a good way to determine file fragmentation?&lt;BR /&gt;&lt;BR /&gt;  Not just "good", for individual files, this is "it". &lt;BR /&gt;&lt;BR /&gt;  There's not a lot to interpret. The map area describes the extents making up the file. Each extent has a Count (how many blocks it contains) and an LBN (its location on the disk). By definition, any file with more than one extent is fragmented. The more extents it has, the more fragmented the file.&lt;BR /&gt;&lt;BR /&gt;  Fragmentation, in and of itself, is not necessarily "bad". Most of the arguments for regular defragging of disks assume a single user operating system with strictly sequential file accesses and file systems that don't scale well. These aren't necessarily true on OpenVMS. An OpenVMS file which can fit all its extents in the primary header will probably be fine in terms of performance. That's because the file system will cache the map area as a whole. Depending on the size of the extents, that amounts to between 50 and 70 extents.&lt;BR /&gt;&lt;BR /&gt;  Once you're over that limit, you require extension headers. In the file header display you can see this up near the top as a non-zero "Extension file identification". For example:&lt;BR /&gt;&lt;BR /&gt; File identification: (27259,102,0)&lt;BR /&gt; Extension file identification: (27267,94,0)&lt;BR /&gt;&lt;BR /&gt;The last header in the chain looks like this:&lt;BR /&gt;&lt;BR /&gt; File identification: (27275,81,0)&lt;BR /&gt; Extension file identification: (0,0,0)&lt;BR /&gt;&lt;BR /&gt;To determine the fragmentation of a disk as a whole, use DFG (example below). Note that you can legally install DFG and use the SHOW command without a license PAK. Install from the Consolidated Distribution. You have to lie (sorry!) - Say "YES" when asked if you have a PAK and "NO" to running the IVP. &lt;BR /&gt;&lt;BR /&gt;$ DEFRAG SHOW USER$DISK&lt;BR /&gt;Disk File Optimizer for OpenVMS DFG E2.7&lt;BR /&gt;Â© Copyright 2003 Hewlett-Packard Development Company,L.P.&lt;BR /&gt;&lt;BR /&gt;                   F r a g m e n t a t i o n    R e p o r t&lt;BR /&gt;&lt;BR /&gt;USER$DISK                                                 9-DEC-2004 11:37:31.29&lt;BR /&gt;&lt;BR /&gt;The fragmentation index is 64.7&lt;BR /&gt;      1 - 20.9 is excellent&lt;BR /&gt;     21 - 40.9 is good&lt;BR /&gt;     41 - 60.9 is fair&lt;BR /&gt;     61 - 80.9 is poor&lt;BR /&gt;     81 - 100 indicates a badly fragmented disk&lt;BR /&gt;Approximately 44.7 (out of 80.0 possible) is due to file fragmentation&lt;BR /&gt;Approximately 20.0 (out of 20.0 possible) is due to freespace fragmentation&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Freespace Summary:&lt;BR /&gt;        Total free space:        218124 blocks&lt;BR /&gt;        Percentage free:              0 (rounded)&lt;BR /&gt;        Total free extents:         720&lt;BR /&gt;        Maximum free extent:      16386 blocks, LBN: 31905720&lt;BR /&gt;        Minimum free extent:          6 blocks, LBN: 20957454&lt;BR /&gt;        Average free extent:        302 blocks&lt;BR /&gt;        Median free extent:          30 blocks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;File Fragmentation Summary:&lt;BR /&gt;        Number of files (with some allocation):  67137&lt;BR /&gt;        Total file extents on the disk:          104329&lt;BR /&gt;        Average number of file extents per file: 1.553972&lt;BR /&gt;        Median number of file extents per file:  1&lt;BR /&gt;&lt;BR /&gt;Most Fragmented File:&lt;BR /&gt;        [USER$TSC.GILLINGS.AH277359]NTN1_CRASH2_6-AUG.DMP;1 (1619 extents)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Dec 2004 19:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439577#M65864</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-12-08T19:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439578#M65865</link>
      <description>&amp;gt;&amp;gt; What is the correct way interpret the retrieval pointers display when dumping a file header? &lt;BR /&gt;&lt;BR /&gt;Each one you see is a little contiguous chunk starting at that LBN, size = size.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Is this a good way to determine file fragmentation?&lt;BR /&gt;&lt;BR /&gt;Count them and you'll know the number of fragments.&lt;BR /&gt;Look at the LBNs and you'll 'see' whether the file is spread out all over the place or just had alternating allocation with other files (less of a problem, but more avoidable).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I like the DFU freeware as a report/slection tool:&lt;BR /&gt;&lt;BR /&gt;$ mcr dfu report defrag sys$disk&lt;BR /&gt; :&lt;BR /&gt; Total fragments                  :  73477&lt;BR /&gt; Average fragments per file       :  1.093&lt;BR /&gt; File fragmentation index         :  0.368  (excellent)&lt;BR /&gt; Average size per fragment        :  97&lt;BR /&gt; Most fragmented file             :&lt;BR /&gt;    DRA0:[HEIN.VMS]F11X.ZIP;1 ( 4616/4617 blocks; 77 fragments)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;$ mcr dfu search/frag=mini=200 sys$disk:&lt;BR /&gt;:&lt;BR /&gt;NEWFOLDER.PST;1 ______259232/259236 16/1137&lt;BR /&gt;HEIN.BCK-DCX_AXPEXE;1 _96581/96588 __4/274&lt;BR /&gt;EVENTLOG_SAMPLE.BCK;1 134253/134253 _4/275&lt;BR /&gt;EVENTLOG_SAMPLE.IDX;1 120042/120042 10/898&lt;BR /&gt;%DFU-S-FND , Files found : 4, Size : 610108/610119, Hdr/Frag : 34/2584&lt;BR /&gt;&lt;BR /&gt;Or i use an awk or perl 'one liner' to read the header dump:&lt;BR /&gt;&lt;BR /&gt;$ pipe dump/head/blo=cou=0 [.VMS]F11X.ZIP | gawk/com="/seg/{h=1+$4;print f}/Cou/{f++;s+=$2}END{print h,f,s}" sys$pipe&lt;BR /&gt;77&lt;BR /&gt;179&lt;BR /&gt;3 199 4617&lt;BR /&gt;&lt;BR /&gt;btw... This actually confirmed a buglette in this old dfu 2.7 (3.1 now available).&lt;BR /&gt;The reported worst file was the file with most fragments in the first header, not the most fragmented file!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2004 00:44:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439578#M65865</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-12-09T00:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439579#M65866</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;glad to read from an expert what was long ago explained to me, with the logic that made me believe it: let VMS care about fragmentation, it usually is NOT worth the trouble to defragment&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;Fragmentation, in and of itself, is not necessarily "bad". Most of the arguments for regular defragging of disks assume a single user operating system with strictly sequential file accesses and file systems that don't scale well. These aren't necessarily true on OpenVMS. An OpenVMS file which can fit all its extents in the primary header will probably be fine in terms of performance. That's because the file system will cache the map area as a whole. &lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;.. and as it was explained to me _UNLESS_ you are VERY short of memory, set SYSGEN's ACP_WINDOW to 255, ("cathedral window") and the above goes for multi-header files as well. &lt;BR /&gt;Only if a multi-header file has high activity, then it might be a case to consider moving that one to a less fragmented location. (which in itself might require defragging free space first, CATCH 22).&lt;BR /&gt;&lt;BR /&gt;_IF_ potential fragmentation _IS_ an issue, it is much more rewarding to handle that in advance.&lt;BR /&gt;So, which files are at risk? That would be (more or less continuously) growing files that are 'frequently' accessed.&lt;BR /&gt;Normally, that excludes LOG files. Yes, they are written chunck by chunck, more often than not requiring an extension. But also, on Average, they are accessed only two more times: usually they are only read to check for errors (if even that, I know lots of cases where they are only ever read if there is some trigger), and one more time to delete them.&lt;BR /&gt;&lt;BR /&gt;But, for your application data files: start with allocating them "big enough", and then&lt;BR /&gt;$ SET FILE &lt;FILE&gt;/EXTEND=&lt;SAME number=""&gt;.&lt;BR /&gt;Small complication for that last number: max value 65535. But that IS a "little" bit less fragmentation than the default value of 5..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To us, up till now this has been working fine.&lt;BR /&gt;&lt;BR /&gt;YMMV, of course.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;Jan&lt;/SAME&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 09 Dec 2004 02:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439579#M65866</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-12-09T02:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439580#M65867</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;will DFU 3.1 be in the next freeware CD and/or is there another download location available?&lt;BR /&gt;&lt;BR /&gt;Hint:&lt;BR /&gt;We are using the fragmentation avoider FAVOID&lt;BR /&gt;(I think its from Glenn Everhartm don't know a source at the moment), which extents files based on their current size (customizable).</description>
      <pubDate>Thu, 09 Dec 2004 02:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439580#M65867</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2004-12-09T02:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439581#M65868</link>
      <description>Mario,&lt;BR /&gt;&lt;BR /&gt;A small point that is easy to miss in the discussion on this topic:&lt;BR /&gt;&lt;BR /&gt;File mapping pointers cover only a limited amount of space. A large CONTIGUOUS file will have many file headers, and may very well have extension file headers. For example (details ommitted in an attempt to maintain clarity):&lt;BR /&gt;&lt;BR /&gt;Mapping Pointer 1: LBN 1000, 256&lt;BR /&gt;Mapping Pointer 2: LBN 1256, 256&lt;BR /&gt;...&lt;BR /&gt;Mapping Pointer n: LBN 1000+(256*(n-1)), 256&lt;BR /&gt;&lt;BR /&gt;What you have is a contiguous file, admittedly a very large one.&lt;BR /&gt;&lt;BR /&gt;See the file header definitions for the exact sizes of the various mapping entries.&lt;BR /&gt;&lt;BR /&gt;I hope that the above is useful.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Sun, 12 Dec 2004 08:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439581#M65868</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2004-12-12T08:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439582#M65869</link>
      <description>In my book, that is not a contiguous file, because it does not have the 'contiguous' file attribute set.</description>
      <pubDate>Sun, 12 Dec 2004 14:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439582#M65869</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2004-12-12T14:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439583#M65870</link>
      <description>Karl&lt;BR /&gt;&lt;BR /&gt;DFU V3.1-1 replaces V3.1, Ton fixed a serious issue recently, which (fortunately) just made it onto the new freeware CD... to be released with 8.2 early 2005. He suggests that if you have a copy of V3.1, to no longer use it.&lt;BR /&gt;&lt;BR /&gt;Bob,&lt;BR /&gt;&lt;BR /&gt;I think you are mistaken. A contiguous file has just one mapping pointer. In 'format 3' those can have a 32-bit size.&lt;BR /&gt;See $fm2def in sys$library:lib.mlb and the likes (Or the file systems internals book of course). Perhaps confused with the old (pre 6.0) WCB restriction of 65536/retrieval pointer?&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Dec 2004 21:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439583#M65870</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-12-12T21:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439584#M65871</link>
      <description>Thats true, if the file is extended contiguos the last retrieval pointer is modified to show the actual block count.&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Mon, 13 Dec 2004 02:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439584#M65871</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-12-13T02:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Map area Retrieval pointers</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439585#M65872</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Thank you for the correction.&lt;BR /&gt;&lt;BR /&gt;I do see quite a mix of systems, and disks which have been migrated between versions. So it is quite possible that all of the cases I have seen have involved files created by older versions.&lt;BR /&gt;&lt;BR /&gt;I did, however, want to ensure that people look carefully, and avoid the "multiple mapping pointers == fragmentation" mindset.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2004 07:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/map-area-retrieval-pointers/m-p/3439585#M65872</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2004-12-13T07:34:21Z</dc:date>
    </item>
  </channel>
</rss>

