<?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 Memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655179#M47018</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I can only locate 1009 meg malloc'ed When i run malloc program . Currently i have 512 MB Memory and 2 GB Swap space in HP_UX11&lt;BR /&gt;&lt;BR /&gt;Current Kernel Parameter Setting:&lt;BR /&gt;maxdsiz :2063835136&lt;BR /&gt;maxdsiz_64bit :2063835136&lt;BR /&gt;maxfiles :1024&lt;BR /&gt;maxfiles_lim :2048&lt;BR /&gt;maxssiz :16384000&lt;BR /&gt;maxssiz_64bit :20971520&lt;BR /&gt;maxswapchunks : 4096&lt;BR /&gt;maxtsiz :1073741824&lt;BR /&gt;maxtsiz_64bit :2147483648&lt;BR /&gt;shmmax :2147483648&lt;BR /&gt;&lt;BR /&gt;I wonder why i can't locate more than 1 GB when i run malloc program?&lt;BR /&gt;&lt;BR /&gt;My malloc program:&lt;BR /&gt;main () {&lt;BR /&gt;        char *mem[250000];  /* one MB here */&lt;BR /&gt;        int i, j;&lt;BR /&gt;        for (i = 2; mem[i] = (char *) malloc(1024 *1024); i++)&lt;BR /&gt;                printf("%d meg malloc'ed\n",i);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Many Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pat</description>
    <pubDate>Wed, 30 Jan 2002 03:23:25 GMT</pubDate>
    <dc:creator>Patricia Tang</dc:creator>
    <dc:date>2002-01-30T03:23:25Z</dc:date>
    <item>
      <title>Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655179#M47018</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I can only locate 1009 meg malloc'ed When i run malloc program . Currently i have 512 MB Memory and 2 GB Swap space in HP_UX11&lt;BR /&gt;&lt;BR /&gt;Current Kernel Parameter Setting:&lt;BR /&gt;maxdsiz :2063835136&lt;BR /&gt;maxdsiz_64bit :2063835136&lt;BR /&gt;maxfiles :1024&lt;BR /&gt;maxfiles_lim :2048&lt;BR /&gt;maxssiz :16384000&lt;BR /&gt;maxssiz_64bit :20971520&lt;BR /&gt;maxswapchunks : 4096&lt;BR /&gt;maxtsiz :1073741824&lt;BR /&gt;maxtsiz_64bit :2147483648&lt;BR /&gt;shmmax :2147483648&lt;BR /&gt;&lt;BR /&gt;I wonder why i can't locate more than 1 GB when i run malloc program?&lt;BR /&gt;&lt;BR /&gt;My malloc program:&lt;BR /&gt;main () {&lt;BR /&gt;        char *mem[250000];  /* one MB here */&lt;BR /&gt;        int i, j;&lt;BR /&gt;        for (i = 2; mem[i] = (char *) malloc(1024 *1024); i++)&lt;BR /&gt;                printf("%d meg malloc'ed\n",i);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Many Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pat</description>
      <pubDate>Wed, 30 Jan 2002 03:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655179#M47018</guid>
      <dc:creator>Patricia Tang</dc:creator>
      <dc:date>2002-01-30T03:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655180#M47019</link>
      <description>Limitation of malloc can be due to ..&lt;BR /&gt;1- kernel parameter (maxdsiz &amp;amp; maxdsiz_64)&lt;BR /&gt;2- swap space&lt;BR /&gt;I would suggest 2) because it looks like you have increased your kernel parameters. What you can do is quickly create filesystem swap on-the-fly and run your malloc program again to see if you still have the error. If swap space is the cause, you would then add device swap later.</description>
      <pubDate>Wed, 30 Jan 2002 05:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655180#M47019</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-01-30T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655181#M47020</link>
      <description>try this instead&lt;BR /&gt;&lt;BR /&gt;#script to check installed and freememory&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;let x=$(grep -i physical: /var/adm/syslog/syslog.log | head -1 | awk '{print $7&lt;BR /&gt;let z=$(vmstat|tail -1|awk '{print $5}')*4096;let z=$z/1000000&lt;BR /&gt;let free=100000/$x*$z&lt;BR /&gt;let free=$free/1000&lt;BR /&gt;let free=100-$free&lt;BR /&gt;echo "$x Mb physical memory \n$z Mb memory free \n$free % used"&lt;BR /&gt;&lt;BR /&gt;The above was picked up from one of our more experienced members&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2002 05:31:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655181#M47020</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-01-30T05:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655182#M47021</link>
      <description>I did monitor ( by using swapinfo -tm ) and confirm that it is 2 GB free swap space.why my malloc program can only run up to 1 GB .&lt;BR /&gt;&lt;BR /&gt;For HP_UX 11 , is there any limitation ? &lt;BR /&gt;Do i need to apply patch or is there any  kernel parameter need to be set?&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 01 Feb 2002 02:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655182#M47021</guid>
      <dc:creator>Patricia Tang</dc:creator>
      <dc:date>2002-02-01T02:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655183#M47022</link>
      <description>In that case it's your kernel parameters. Right now you got ..&lt;BR /&gt;maxdsiz :2063835136 &lt;BR /&gt;maxdsiz_64bit :2063835136 &lt;BR /&gt;maxssiz :16384000 &lt;BR /&gt;maxssiz_64bit :20971520&lt;BR /&gt;I would try to increase maxssiz and maxssiz_64bit first. And then if it still not working, increase maxdsiz and mazdsiz_64bit.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2002 03:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655183#M47022</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-02-01T03:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655184#M47023</link>
      <description>Actually, there's another limit. A 32 bit program's data area starts in quadrant 2, giving a maximum of about 960 megs. This is a limitation of a standard 32 bit program.&lt;BR /&gt;&lt;BR /&gt;However, you can change the executable to EXEC_MAGIC and start the data area in quadrant 1 just after the end of the text portion of the program. This gives the program access up to 1900 megs of RAM. To create an executable in EXEC_MAGIC format, link the executable with the -N option. (See ld(1) man page for details.)&lt;BR /&gt;&lt;BR /&gt;Read all the details in the white paper on memory management in /usr/share/doc.</description>
      <pubDate>Fri, 01 Feb 2002 03:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory/m-p/2655184#M47023</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-02-01T03:47:32Z</dc:date>
    </item>
  </channel>
</rss>

