<?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: File allocation question in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031218#M84879</link>
    <description>Wim&amp;gt;&amp;gt;&amp;gt;The newly created files during the boot were allocated in the "first 20%" zone. Defrag reports their names if you click on the zone. I now found that after some uptime, files were also created in the "last 20% zone of the free space. And VMS seems to be filling these 2 zones.&lt;BR /&gt;+++++++++++++++++++++++++++++++++++++++++++ &lt;BR /&gt;&lt;BR /&gt;I think this is related to the extent cache.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136790" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136790&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It would be easy to test a non-system disk by mounting/nocache, but I don't know if there is a way to disable cache on a system disk. Even if you could, I don't think you want to run normally with nocache in effect.&lt;BR /&gt;&lt;BR /&gt;Are the two areas being filled in by different nodes in the cluster?  i.e. the first 20% by the first node, and last 20% zone by the second node?  If I remember correctly, each node has its own extent cache locked (so they will not be allocated by another node without that node expressly asking for the space).</description>
    <pubDate>Tue, 03 Jul 2007 07:25:35 GMT</pubDate>
    <dc:creator>Jon Pinkley</dc:creator>
    <dc:date>2007-07-03T07:25:35Z</dc:date>
    <item>
      <title>File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031214#M84875</link>
      <description>I defragmented the system disk of a 7.3 system with backup/image.&lt;BR /&gt;&lt;BR /&gt;After the first boot I find that dfg show dsa0/vol shows 1.2 Mblocks as the maximum free extent while the free space is 1.5 Mblocks. I checked the volume map in defragmenter and found some files in the "free zone" but not allocated in the beginning but somewhere after 20% of the free space. So, the contig space is lost very fast.&lt;BR /&gt;&lt;BR /&gt;Why is VMS not allocating these files in the beginning ? What is the allocation strategy ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 04:25:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031214#M84875</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031215#M84876</link>
      <description>On a default disk init the index file is put in the middle of the disk. This means that whatever else is put around it, you have a minimum of two free spaces unless you manage to exactly fill one of them. &lt;BR /&gt;Could those files you see 'after 20% of the free space' be the index file and others deliberately placed in the middle of the disk ?&lt;BR /&gt;JT:</description>
      <pubDate>Tue, 03 Jul 2007 06:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031215#M84876</guid>
      <dc:creator>John Travell</dc:creator>
      <dc:date>2007-07-03T06:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031216#M84877</link>
      <description>No. I did a init/index=begin. And then backup/noinit.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 06:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031216#M84877</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T06:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031217#M84878</link>
      <description>The newly created files during the boot were allocated in the "first 20%" zone. Defrag reports their names if you click on the zone. I now found that after some uptime, files were also created in the "last 20% zone of the free space. And VMS seems to be filling these 2 zones.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 06:59:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031217#M84878</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T06:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031218#M84879</link>
      <description>Wim&amp;gt;&amp;gt;&amp;gt;The newly created files during the boot were allocated in the "first 20%" zone. Defrag reports their names if you click on the zone. I now found that after some uptime, files were also created in the "last 20% zone of the free space. And VMS seems to be filling these 2 zones.&lt;BR /&gt;+++++++++++++++++++++++++++++++++++++++++++ &lt;BR /&gt;&lt;BR /&gt;I think this is related to the extent cache.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136790" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1136790&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It would be easy to test a non-system disk by mounting/nocache, but I don't know if there is a way to disable cache on a system disk. Even if you could, I don't think you want to run normally with nocache in effect.&lt;BR /&gt;&lt;BR /&gt;Are the two areas being filled in by different nodes in the cluster?  i.e. the first 20% by the first node, and last 20% zone by the second node?  If I remember correctly, each node has its own extent cache locked (so they will not be allocated by another node without that node expressly asking for the space).</description>
      <pubDate>Tue, 03 Jul 2007 07:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031218#M84879</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-07-03T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031219#M84880</link>
      <description>Jon : not a cluster. Just an AS500 with 2 disks forming dsa0.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 07:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031219#M84880</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031220#M84881</link>
      <description>Good stuff to read(esp. ch 2). I think the reason must be extent cache related but I'm not sure yet.&lt;BR /&gt;&lt;BR /&gt;acp_extlimit is on 100% on my node.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.diskeeper.com/fragbook/contents.htm" target="_blank"&gt;http://www.diskeeper.com/fragbook/contents.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 07:56:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031220#M84881</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T07:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031221#M84882</link>
      <description>Correction. Missed the /10. It's 10%.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 08:27:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031221#M84882</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T08:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031222#M84883</link>
      <description>Jon : this is what you mean (out of doc of 1992)&lt;BR /&gt;&lt;BR /&gt;Also, in cases of large VAXClusters where many nodes are sharing&lt;BR /&gt;a disk, the maximum blocks in extent cache may be less than the&lt;BR /&gt;limit set by ACP_EXTLIMIT.  An additional factor is used in these&lt;BR /&gt;cases in order to prevent over commitment of the extent cache.&lt;BR /&gt;Briefly, the free space on the disk is divided by the number of&lt;BR /&gt;nodes mounting the disk (actually, the number of locks taken out&lt;BR /&gt;on the disk +2).  If the result of this equation is less than the&lt;BR /&gt;result of the ACP_EXTLIMIT equation, then the smaller value is&lt;BR /&gt;used as the maximum size of extent cache.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2007 08:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031222#M84883</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031223#M84884</link>
      <description>The ext_limit is in pro-mille, so 100 is effectively 10% of the freespace. That's not equal to, but not too far either from the 20% you mention. It is not unlikely to match the mount-time pre-load of the extent cache... but I can not readily find that documented.&lt;BR /&gt;&lt;BR /&gt;The other param in this area is ofcourse ACP_EXTCACHE which indicates how many entries. With large contig free space areas, there will be few extents to exceed the extlimit.&lt;BR /&gt;&lt;BR /&gt;The extent cache basically tries to avoid scans for space in bitmap.sys. If this part of the application is concerned with just allocating a few large, as contiguous as possible files, then the ext cache is of no help to it and the disk(s) involved should be mounted /CACHE=(NOEXTEN,LIMIT=0)&lt;BR /&gt;&lt;BR /&gt;If the application is concerned with is single large allocation, then you may want to trigger a flush of the extent cache just before. Privved code could jiggle the appropriate F11B$C lock directly. Normal folks can just use $COPY/CONT/ALLO=9999999 NL: device: to tell the CACHE_SERVER process to go do its thing.&lt;BR /&gt;&lt;BR /&gt;For educational purposes one could use ANAL/SYSTEM anc look in the Volume Control Block for VCB$L_CACHE to find the link of cached extent.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting</description>
      <pubDate>Tue, 03 Jul 2007 08:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031223#M84884</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-07-03T08:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031224#M84885</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;This still doesn't explains why my contig space decreased from 1.5 Mbl to 0.9 Mbl without having anything serious active (some idle processes and some processes generating low volume log).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 08:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031224#M84885</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T08:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031225#M84886</link>
      <description>Experiment on a single node.&lt;BR /&gt;&lt;BR /&gt;Create file of 1000 blocks every 0.1 second. With copy without /contig and monitor volume map. Disk was defragmented and about 10% used.&lt;BR /&gt;&lt;BR /&gt;It starts allocating the space evenly spread over the disk. About 20 spots are created.&lt;BR /&gt;&lt;BR /&gt;Then it starts extending about 10 of these spots. Until they take up about 1% of the disk each. Then it starts extending the other sports.&lt;BR /&gt;&lt;BR /&gt;My conclusion : VMS tries to spread the files over the complete free space. Not trying to keep contig space.&lt;BR /&gt;&lt;BR /&gt;Tried it in a cluster too. Same reaction.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 03 Jul 2007 09:59:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031225#M84886</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: File allocation question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031226#M84887</link>
      <description>Remounted the disk with 100% freespace in cache instead of 10%.&lt;BR /&gt;&lt;BR /&gt;Space is now allocated in 4 spots instead of 20. And the spots are all extended cleanly. Would thus lead to better preservation of contig space.&lt;BR /&gt;&lt;BR /&gt;Still curious for the theory behind it.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jul 2007 10:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-allocation-question/m-p/4031226#M84887</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-07-03T10:33:38Z</dc:date>
    </item>
  </channel>
</rss>

