<?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: Question on 'maxdsiz' kernel parameter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810117#M939992</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can only find the explanation of maxdsiz parameter for you ! :)&lt;BR /&gt;&lt;BR /&gt;maxdsiz &lt;BR /&gt;&lt;BR /&gt;Maxdsiz defines the maximum size of the data segment of a process. The default value of 64 MB is too small for most applications. We recommend this value be set to the maximum value of 1.9Gb. If maxdsiz is exceeded, the process will be terminated, usually with a SIGSEGV (segmentation violation) and you will probably see the following message: &lt;BR /&gt;&lt;BR /&gt;Memory fault(coredump) &lt;BR /&gt;&lt;BR /&gt;In this case, review the values of maxdsiz, maxssiz and maxtsiz. For more information on these parameters, please see the on-line Help section within SAM's Kernel Configuration. If you need to exceed the specified maximum of 1.9Gb, there are a couple of ways (yet to be supported) to do so. Contact your Hewlett Packard technical consultant for the details. It is important to note that the maxdsiz parameter must be modified in order for these procedures to work. Maxdsiz will need to be set to 2.75Gb or 3.6Gb depending on the method chosen and/or size required. It will also require a manual creation of a new kernel.&lt;BR /&gt;&lt;BR /&gt;You can go to this link for more details.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp-partners.com/edaweb_public/html/technical_support/tuning.html" target="_blank"&gt;http://www.hp-partners.com/edaweb_public/html/technical_support/tuning.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick&lt;BR /&gt;</description>
    <pubDate>Fri, 20 Sep 2002 05:36:04 GMT</pubDate>
    <dc:creator>Patrick Chim</dc:creator>
    <dc:date>2002-09-20T05:36:04Z</dc:date>
    <item>
      <title>Question on 'maxdsiz' kernel parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810116#M939991</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;As far as I know, the data segment of the process can not grow more than the value set by 'maxdsiz' kernel parameter. In our system, we have set this value to 0xC800000 (approx. 209MB) for the 32-bit process. &lt;BR /&gt;&lt;BR /&gt;$ file nemsMib&lt;BR /&gt;nemsMib:        PA-RISC1.1 shared executable dynamically linked -not stripped&lt;BR /&gt;&lt;BR /&gt;$ kmtune | grep maxdsiz&lt;BR /&gt;maxdsiz              0XC800000&lt;BR /&gt;maxdsiz_64bit        0x0000000040000000&lt;BR /&gt;&lt;BR /&gt;But through 'top' and 'glance', we have seen that, the process - 'nemsMib' grows beyond this limit.&lt;BR /&gt;Here is the partial output of top -&lt;BR /&gt;&lt;BR /&gt;Load averages: 0.55, 0.55, 0.53&lt;BR /&gt;156 processes: 144 sleeping, 10 running, 1 zombie, 1 starting&lt;BR /&gt;Cpu states:&lt;BR /&gt;CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt; 0    1.55   4.8%   0.0%  81.3%  13.9%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 1    0.37   6.0%   0.0%   9.0%  85.1%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 2    0.23   6.8%   0.0%   6.6%  86.7%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt; 3    0.06   4.8%   0.0%   1.4%  93.8%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;---   ----  -----  -----  -----  -----  -----  -----  -----  -----&lt;BR /&gt;avg   0.55   5.6%   0.0%  24.6%  69.9%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;Memory: 728416K (578436K) real, 784336K (626448K) virtual, 969464K free  Page# 1&lt;BR /&gt;/18&lt;BR /&gt;&lt;BR /&gt;CPU TTY  PID USERNAME PRI NI   SIZE    RES STATE    TIME %WCPU  %CPU COMMAND&lt;BR /&gt; 3   ? 17517 omcadm   154 20   271M   240M sleep   29:22  5.27  5.26 nemsMib&lt;BR /&gt;&lt;BR /&gt;And glance shows -&lt;BR /&gt;Type          RefCt    RSS     VSS   Locked  File Name&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;NULLDR/Shared   na     4kb     4kb       na &lt;NULLDREF&gt;&lt;BR /&gt;TEXT  /Shared   na  17.6mb  23.5mb       na &lt;TEXT&gt; vxfs inode  1725&lt;BR /&gt;DATA  /Priv     na 232.8mb 241.3mb       na &lt;DATA&gt; vxfs inode  1725&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Text  RSS/VSS: 18mb/ 24mb  Data  RSS/VSS:233mb/241mb  Stack RSS/VSS: 48kb/ 48kb&lt;BR /&gt;Shmem RSS/VSS:752kb/752kb  Other RSS/VSS: 12mb/ 18mb&lt;BR /&gt;&lt;BR /&gt;As can be seen from the output of glance, the process has data segment of 241 MB which exceeds 'maxdsiz' kernel parameter (~209MB) and still the process has been running fine. We have seen this process sometimes grow as high as 400MB !!&lt;BR /&gt;&lt;BR /&gt;With this observation, is there any other parameter which controls the size of the process that it can grow in memory ? &lt;BR /&gt;&lt;BR /&gt;And, what is exactly maxdsiz parameter for ?  &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mahesh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DATA&gt;&lt;/TEXT&gt;&lt;/NULLDREF&gt;</description>
      <pubDate>Fri, 20 Sep 2002 05:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810116#M939991</guid>
      <dc:creator>Mahesh Kurse</dc:creator>
      <dc:date>2002-09-20T05:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on 'maxdsiz' kernel parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810117#M939992</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I can only find the explanation of maxdsiz parameter for you ! :)&lt;BR /&gt;&lt;BR /&gt;maxdsiz &lt;BR /&gt;&lt;BR /&gt;Maxdsiz defines the maximum size of the data segment of a process. The default value of 64 MB is too small for most applications. We recommend this value be set to the maximum value of 1.9Gb. If maxdsiz is exceeded, the process will be terminated, usually with a SIGSEGV (segmentation violation) and you will probably see the following message: &lt;BR /&gt;&lt;BR /&gt;Memory fault(coredump) &lt;BR /&gt;&lt;BR /&gt;In this case, review the values of maxdsiz, maxssiz and maxtsiz. For more information on these parameters, please see the on-line Help section within SAM's Kernel Configuration. If you need to exceed the specified maximum of 1.9Gb, there are a couple of ways (yet to be supported) to do so. Contact your Hewlett Packard technical consultant for the details. It is important to note that the maxdsiz parameter must be modified in order for these procedures to work. Maxdsiz will need to be set to 2.75Gb or 3.6Gb depending on the method chosen and/or size required. It will also require a manual creation of a new kernel.&lt;BR /&gt;&lt;BR /&gt;You can go to this link for more details.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp-partners.com/edaweb_public/html/technical_support/tuning.html" target="_blank"&gt;http://www.hp-partners.com/edaweb_public/html/technical_support/tuning.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Patrick&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Sep 2002 05:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810117#M939992</guid>
      <dc:creator>Patrick Chim</dc:creator>
      <dc:date>2002-09-20T05:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on 'maxdsiz' kernel parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810118#M939993</link>
      <description>Hi, Mahesh&lt;BR /&gt;maxdsiz and maxdsiz_64bit specify the maximum data segment size, in bytes, for an executing process.&lt;BR /&gt;&lt;BR /&gt;maxdsiz for 32-bit processors:&lt;BR /&gt;Minimum &lt;BR /&gt;0x400000 (4 Mbytes) &lt;BR /&gt;Maximum &lt;BR /&gt;0x7B03A000 (approx 2 Gbytes) &lt;BR /&gt;Default &lt;BR /&gt;0x4000000 (64 Mbytes) &lt;BR /&gt;&lt;BR /&gt;maxdsiz_64bit for 64-bit processors:&lt;BR /&gt;Minimum &lt;BR /&gt;0x400000 (4 Mbytes) &lt;BR /&gt;Maximum &lt;BR /&gt;4396972769279 &lt;BR /&gt;Default &lt;BR /&gt;0x4000000 (64 Mbytes) &lt;BR /&gt;&lt;BR /&gt;maxdsiz and maxdsiz_64bit define the maximum size of the static data storage segment for executing 32-bit processes and 64-bit processes on 32-bit and 64-bit processors, respectively. &lt;BR /&gt;&lt;BR /&gt;Whenever the system loads a process or an executing process attempts to expand its static storage segment the system checks the size of the process' static data storage segment.&lt;BR /&gt;&lt;BR /&gt;If the process' requirements exceed maxdsiz or maxdsiz_64bit, the system returns an error to the calling process, possibly causing the process to terminate.&lt;BR /&gt; &lt;BR /&gt;Since maxdsiz can go up to 2GB, and your process occupying only 241MB, still there is enough of space in data segment&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 20 Sep 2002 05:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810118#M939993</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2002-09-20T05:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Question on 'maxdsiz' kernel parameter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810119#M939994</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;As can be seen above, the value of 'maxdsiz' is 209MB on our system and glance shows that, the data segment has grown up to 241 MB. Still the process has not been terminated. How is this possible ?&lt;BR /&gt;&lt;BR /&gt;Also, does data segment correspond only to static data ? By static data, do you mean only global, local and static variables in the program ?&lt;BR /&gt;&lt;BR /&gt;Then where does the data allocated on the heap through malloc() and new() reside ? Is there any way I can control the heap size used by a process ?&lt;BR /&gt;&lt;BR /&gt;Can you please answer these questions ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mahesh&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Sep 2002 06:04:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-on-maxdsiz-kernel-parameter/m-p/2810119#M939994</guid>
      <dc:creator>Mahesh Kurse</dc:creator>
      <dc:date>2002-09-20T06:04:21Z</dc:date>
    </item>
  </channel>
</rss>

