<?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: gawk error memory allocation error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603642#M496799</link>
    <description>&lt;P&gt;&amp;gt;Infile has more than 400 million&amp;nbsp;records, ... outfile will be reduced to 60 million.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you break up the file and then combine the results?&lt;/P&gt;&lt;P&gt;Is gawk a 32 or 64 program?&amp;nbsp; If the former you'll need to increase maxdsiz to 4 GB.&lt;/P&gt;&lt;P&gt;And you'll have to use chatr(1) to take advantage.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Sep 2014 22:27:42 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2014-09-06T22:27:42Z</dc:date>
    <item>
      <title>gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603006#M496797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have following code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gawk -F, '{FS=","}&lt;BR /&gt;{&lt;BR /&gt;if (substr($1,3,1)=="-") array[$5","$1","$5","$6","substr($1,1,2)","$2","$7","$4]++&lt;BR /&gt;else arraytmp[$5","$1","$5","$6","$1","$2","$7","$4]++&lt;BR /&gt;}&lt;BR /&gt;END { for (counter in array) {print counter","array[counter] }&lt;BR /&gt;{ for (count in arraytmp) {print count","arraytmp[count]}} }&lt;BR /&gt;' Infile&amp;nbsp;&amp;gt; OutFile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the Infile has more that 400 million&amp;nbsp;records, by virute of this operation outfile will be reduce to 60million.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error coming is:&lt;/P&gt;
&lt;P&gt;gawk: cmd. line:4: (FILENAME=- FNR=8226772) fatal: more_blocks: freep: can't allocate 4000 bytes of memory (Not enough space)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional Information:&lt;/P&gt;
&lt;P&gt;$ uname -a&lt;BR /&gt;HP-UX smsciuc0 B.11.31 U ia64 3651711977 unlimited-user license&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ swapinfo&lt;BR /&gt;Kb Kb Kb PCT START/ Kb&lt;BR /&gt;TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME&lt;BR /&gt;dev 67108864 0 67108864 0% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;reserve - 455428 -455428&lt;BR /&gt;memory 63799772 8378200 55421572 13%&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ kctune maxdsiz maxdsiz_64bit maxssiz maxssiz_64bit maxtsiz maxtsiz_64bit&lt;BR /&gt;Tunable Value Expression Changes&lt;BR /&gt;maxdsiz 1073741824 Default Immed&lt;BR /&gt;maxdsiz_64bit 4294967296 Default Immed&lt;BR /&gt;maxssiz 8388608 Default Immed&lt;BR /&gt;maxssiz_64bit 268435456 Default Immed&lt;BR /&gt;maxtsiz 100663296 Default Immed&lt;BR /&gt;maxtsiz_64bit 1073741824 Default Immed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PLZ HELP&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. this thread has been moevd&amp;nbsp;from General to HP-UX &amp;gt; languages. - Hp forum Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 01:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603006#M496797</guid>
      <dc:creator>sirAmitSharma</dc:creator>
      <dc:date>2014-09-09T01:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603514#M496798</link>
      <description>&lt;P&gt;I would bump maxdsiz_64bit from 4GB to 16GB.&lt;/P&gt;&lt;P&gt;This limit will allow programs to allocate large amounts of space.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2014 18:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603514#M496798</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2014-09-06T18:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603642#M496799</link>
      <description>&lt;P&gt;&amp;gt;Infile has more than 400 million&amp;nbsp;records, ... outfile will be reduced to 60 million.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you break up the file and then combine the results?&lt;/P&gt;&lt;P&gt;Is gawk a 32 or 64 program?&amp;nbsp; If the former you'll need to increase maxdsiz to 4 GB.&lt;/P&gt;&lt;P&gt;And you'll have to use chatr(1) to take advantage.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2014 22:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6603642#M496799</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-09-06T22:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604686#M496801</link>
      <description>Changed the same but still the error , reboot also done.... :(</description>
      <pubDate>Mon, 08 Sep 2014 05:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604686#M496801</guid>
      <dc:creator>sirAmitSharma</dc:creator>
      <dc:date>2014-09-08T05:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604688#M496802</link>
      <description>On using the kcusage found that the error comes when the usage is 1GB.&lt;BR /&gt;$ kcusage&lt;BR /&gt;Tunable Usage / Setting&lt;BR /&gt;=============================================&lt;BR /&gt;filecache_max 669466624 / 32665481216&lt;BR /&gt;maxdsiz 1054195712 / 4294963200&lt;BR /&gt;maxdsiz_64bit 46727168 / 17179869184</description>
      <pubDate>Mon, 08 Sep 2014 05:26:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604688#M496802</guid>
      <dc:creator>sirAmitSharma</dc:creator>
      <dc:date>2014-09-08T05:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: gawk error memory allocation error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604908#M496803</link>
      <description>&lt;P&gt;&amp;gt;Changed the same but still the error, reboot also done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reboot not needed since kctune(1m) says "immediate".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I mentioned above, chatr(1) or relinking with -N must be used to get &amp;gt; 1 GB in a 32 bit app.&lt;/P&gt;&lt;P&gt;What does this show: file /path-to-executable/gawk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These may help:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/White-Papers/32bits-virtual-addressing-and-Memory-Windows/m-p/2442383"&gt;http://h30499.www3.hp.com/t5/White-Papers/32bits-virtual-addressing-and-Memory-Windows/m-p/2442383&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/A-simple-C-program-crashing-on-HP-machine/m-p/4919847#M32801"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/A-simple-C-program-crashing-on-HP-machine/m-p/4919847#M32801&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/Out-of-memory/m-p/4935279#M33135"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Out-of-memory/m-p/4935279#M33135&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/chatr-Quickie-How-to-Check-if-an-Executabale-is-chatr-d-to-use/m-p/3781049"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/chatr-Quickie-How-to-Check-if-an-Executabale-is-chatr-d-to-use/m-p/3781049&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/chatr-Fails-to-requadrant-executable/m-p/3896400"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/chatr-Fails-to-requadrant-executable/m-p/3896400&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/Is-there-any-limitation-on-memory-a-child-process-can-use/m-p/4009315"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Is-there-any-limitation-on-memory-a-child-process-can-use/m-p/4009315&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/chatr-and-C/m-p/3900953"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/chatr-and-C/m-p/3900953&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last one implies that if this is a Integrity executable, then you'll need to build and relink gawk with -N.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 11:00:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gawk-error-memory-allocation-error/m-p/6604908#M496803</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-09-08T11:00:40Z</dc:date>
    </item>
  </channel>
</rss>

