<?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: P0 address space in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364116#M93489</link>
    <description>Shame on me (or better, my memory). It seems that the db is mapped via p0. Thanks Volker.&lt;BR /&gt;&lt;BR /&gt;I will exclude dataserver from the monitoring.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
    <pubDate>Mon, 23 Feb 2009 12:59:04 GMT</pubDate>
    <dc:creator>Wim Van den Wyngaert</dc:creator>
    <dc:date>2009-02-23T12:59:04Z</dc:date>
    <item>
      <title>P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364111#M93484</link>
      <description>FREP0VA : First free page at end of program region (P0 space).&lt;BR /&gt;&lt;BR /&gt;I find a process for which it's at %X38ae2000.&lt;BR /&gt;Thus almost the limit of 1 GB.&lt;BR /&gt;It's a Sybase db server on 7.3.&lt;BR /&gt;&lt;BR /&gt;What does it exactly means in "VMS for dummies" words ?&lt;BR /&gt;Can it increase or is it static ?&lt;BR /&gt;Can it be almost 1 GB when a program starts ?&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 23 Feb 2009 10:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364111#M93484</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-23T10:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364112#M93485</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;the per-process P0 address space ranges from virtual addresses %x00000000 to %x3FFFFFFF. The value returned for F$GETJPI(&lt;PID&gt;,"FREP0VA") is the virtual address of the first free page in P0 address space (from the process header field PHD$L_FREP0VA) above the P0 space currently used by the image.&lt;BR /&gt;&lt;BR /&gt;$ ANAL/SYS&lt;BR /&gt;SDA&amp;gt; SET PROC/IND=&lt;PID&gt;&lt;BR /&gt;SDA&amp;gt; SHOW PROC/PHD ! shows this as...&lt;BR /&gt;...&lt;BR /&gt;First free P0 VA  00000000.00332000&lt;BR /&gt;...&lt;BR /&gt;SDA&amp;gt; SHOW PROC/PAGE 332000&lt;BR /&gt;&lt;BR /&gt;will show a 'null page'&lt;BR /&gt;&lt;BR /&gt;The FREP0VA value can increase, if the image running in this process expands it's P0 address space. If the image tries to expand P0 space beyond the architectural limit of 1 GB, it will get: VASFULL, virtual address space is full.&lt;BR /&gt;&lt;BR /&gt;Depending on the size and attributes of the image and the number and size of shareable images activated, sections mapped etc. this value could be near 1 GB after image startup, but that is unlikely. Look for image virtual address space layout with SDA&amp;gt; SHOW PROC/IMAGE.&lt;BR /&gt;&lt;BR /&gt;Volker.&lt;/PID&gt;&lt;/PID&gt;</description>
      <pubDate>Mon, 23 Feb 2009 12:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364112#M93485</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-02-23T12:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364113#M93486</link>
      <description>Volker,&lt;BR /&gt;&lt;BR /&gt;It stays on the same value. But other processes running the same exe with the same user name on the same node have lower values (but still 0.5 GB). Only their quotas are different. Is the db cache mapped in P0 ?&lt;BR /&gt;&lt;BR /&gt;Show proc/ima says 1017 pages allocated for 14 images.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2009 12:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364113#M93486</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-23T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364114#M93487</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;I'm not running Sybase, so I can't check. There was some ITRC discussion 3 years ago about the 1 GB limit in Sybase:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1082602" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1082602&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe the DB is mapped via global sections ?&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 23 Feb 2009 12:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364114#M93487</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2009-02-23T12:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364115#M93488</link>
      <description>Hi Wim,&lt;BR /&gt;&lt;BR /&gt;Is there an actual problem, or just curious and cautious after the recent VASFUL topic here in teh forum ( &lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1316112" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1316112&lt;/A&gt; )&lt;BR /&gt;&lt;BR /&gt;I do not know Sybase, but I suspect Sybase mapped some global section into high memory to share with absolute addressing instead of proper relative addressing. That was a common technique folks use back in OpenVMS V4, V5 days.&lt;BR /&gt;Oracle used to do that as well.&lt;BR /&gt;INSTALL may be able to see the sections.&lt;BR /&gt;ANAL/SYSTE ... SET PROC&lt;BR /&gt;Then , as Volker indicates, use SHOW PROC/IMAGE to get a lay of the land, and SHOW PROC/PAGE and SHOW PROC/PROCESS_SECTION to drill down on details.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2009 12:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364115#M93488</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-23T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364116#M93489</link>
      <description>Shame on me (or better, my memory). It seems that the db is mapped via p0. Thanks Volker.&lt;BR /&gt;&lt;BR /&gt;I will exclude dataserver from the monitoring.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 23 Feb 2009 12:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364116#M93489</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-23T12:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364117#M93490</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;You may want to check the SYBASE scripts for INSTALL, STARTUP or LINK for variables/logical like "_BASE" or "_ADDRESS".&lt;BR /&gt;If that does not give something 'obvious', then look for strings in the images.&lt;BR /&gt;&lt;BR /&gt;Please find attached a little MACRO tool that can be used to hunt through binary data files like oobject or images to look for 'words'. It is much similar to the Unix tool 'strings', but I'd like to think it does a better job at avoiding false positives.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Feb 2009 12:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364117#M93490</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-23T12:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364118#M93491</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Dataserver is never relinked. It's not even installed. No successwith the search.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 23 Feb 2009 13:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364118#M93491</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-23T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364119#M93492</link>
      <description>Wim,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  Can it increase or is it static ?&lt;BR /&gt;&lt;BR /&gt;  FREP0VA can increase or (in rare cases) decrease over time. P0 expands with $EXPREG and (may) contract with $DELTVA, but only if the VA being deleted is at the end of the region. In practice contraction is rare. Most of the time FREP0VA will be monotonic increasing, and hopefully asymptotic to a reasonable maximum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Can it be almost 1 GB when a program starts ?&lt;BR /&gt;&lt;BR /&gt;  Certainly. It can be any value up to the maximum PHD$Q_P0_REGION_SIZE (architecturally set at %X40000000). For example, a process with a large static allocation could start with a large initial value.&lt;BR /&gt;&lt;BR /&gt;In practice, most observed expansions are probably allocations from heap memory, malloc or LIB$GET_VM. If malloc cannot satisfy the request from its local cache, it will call LIB$VM_MALLOC or LIB$GET_VM, which may need to call LIB$GET_VM_PAGE to expand the heap, which may need to call $EXPREG to expand the region in which the heap is defined (by default P0). If $EXPREG fails, it will return SS$_VASFULL.&lt;BR /&gt;&lt;BR /&gt;There is no simple way I know of to move the default heap out of P0 space. You need to explicitly code 64 bit pointers and allocations from P2 space.&lt;BR /&gt;&lt;BR /&gt;In your case %X38AE2000 is rather too close to the limit for my liking, but if FREP0VA isn't increasing over time, it's not a problem. If it were code under your direct control, I'd be recommending moving some of the data structures into P2 space.</description>
      <pubDate>Mon, 23 Feb 2009 23:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364119#M93492</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-02-23T23:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364120#M93493</link>
      <description>&lt;BR /&gt;On th efailign memory... for grins:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1082602" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1082602&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Just for curiosity, what is the 'total memory' setting for the server running close to 1GB?&lt;BR /&gt;If you have the time, you may want to try to bring up a sybase instance with say 10MB  for the "total memory" parameter with sp_configure, one with 100MB. Observe the FREP0VA for each, and the current one, and put in a little table.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 14:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364120#M93493</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-02-24T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: P0 address space</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364121#M93494</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;No longer have permission to play with Sybase (SOX). Total memory of the server is 460800 so close to 900 MB. As expected.&lt;BR /&gt;&lt;BR /&gt;Note that the thread was during the end of year so I must have missed it (or was too drunk).&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 24 Feb 2009 14:12:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/p0-address-space/m-p/4364121#M93494</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2009-02-24T14:12:25Z</dc:date>
    </item>
  </channel>
</rss>

