<?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: why the program cause coredump? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555523#M702256</link>
    <description>If every application requires to adjust some Kernel Parameters, then we have to reboot our server again and again for every new app.</description>
    <pubDate>Thu, 02 Jun 2005 07:33:58 GMT</pubDate>
    <dc:creator>MA Qiang</dc:creator>
    <dc:date>2005-06-02T07:33:58Z</dc:date>
    <item>
      <title>why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555511#M702244</link>
      <description>#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;CTYPE.H&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#define  FDATANUM  10000000&lt;BR /&gt;#define  CDATANUM  500000&lt;BR /&gt;#define  IDENNUM   50000&lt;BR /&gt;#define  STR_LEN   256&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;    int     ret;&lt;BR /&gt;    char    cpar[20][2048];&lt;BR /&gt;    long    lpar[100];&lt;BR /&gt;    char    cdata[CDATANUM][STR_LEN];&lt;BR /&gt;    float   fdata[FDATANUM];&lt;BR /&gt;    long    ciden[IDENNUM];&lt;BR /&gt;    long    fiden[IDENNUM];&lt;BR /&gt;    char    output[30];&lt;BR /&gt;&lt;BR /&gt;strcpy(cpar[0],"A");&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Our Server configuration:&lt;BR /&gt;HP 11iv1&lt;BR /&gt;memory:8GB&lt;BR /&gt;CPU:4&lt;BR /&gt;**********************************************&lt;BR /&gt;The error log:&lt;BR /&gt;&amp;gt; cc +DA2.0W +DS2.0 -DSS_64BIT_SERVER b.c&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ./a.out                                &lt;BR /&gt;Memory fault(coredump)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; file core                              &lt;BR /&gt;core:           ELF-64 core file - PA-RISC 2.0 from 'a.out' - received SIGSEGV&lt;BR /&gt;&lt;BR /&gt;&amp;gt; cc b.c                                 &lt;BR /&gt;&lt;BR /&gt;&amp;gt; ./a.out  &lt;BR /&gt;Memory fault(coredump)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; file core                              &lt;BR /&gt;core:           core file from 'a.out' - received SIGSEGV&lt;BR /&gt;&lt;BR /&gt;**********************************************&lt;BR /&gt;Some Tunable Kernel Parameters:&lt;BR /&gt;&lt;BR /&gt;aio_listio_max            256  -  256                        &lt;BR /&gt;aio_max_ops              2048  -  2048                       &lt;BR /&gt;aio_prio_delta_max         20  -  20                         &lt;BR /&gt;bcvmap_size_factor          2  -  2                          &lt;BR /&gt;dbc_max_pct                25  -  25                         &lt;BR /&gt;effective_maxpid            -  -  ((NPROC&amp;lt;=30000)?30000:(NPROC*5/4)) &lt;BR /&gt;eqmemsize                  15  -  15                         &lt;BR /&gt;hfs_max_ra_blocks           8  -  8                          &lt;BR /&gt;hfs_max_revra_blocks        8  -  8                          &lt;BR /&gt;initmodmax                 50  -  50                         &lt;BR /&gt;iomemsize                   -  -  40000                      &lt;BR /&gt;ksi_alloc_max           20640  -  (NPROC*8)                  &lt;BR /&gt;ksi_send_max               32  -  32                         &lt;BR /&gt;max_async_ports            50  -  50                         &lt;BR /&gt;max_fcp_reqs              512  -  512                        &lt;BR /&gt;max_mem_window              0  -  0                          &lt;BR /&gt;max_thread_proc          1000  -  1000                       &lt;BR /&gt;maxdsiz            0x10000000  -  0x10000000                 &lt;BR /&gt;maxdsiz_64bit      0x40000000  -  0X40000000                 &lt;BR /&gt;maxfiles                 4096  -  4096                       &lt;BR /&gt;maxfiles_lim             4096  Y  4096                       &lt;BR /&gt;maxqueuetime                -  -  0                          &lt;BR /&gt;maxssiz              0x800000  -  0X800000                   &lt;BR /&gt;maxssiz_64bit        0x800000  -  0X800000                   &lt;BR /&gt;maxswapchunks            8192  -  8192                       &lt;BR /&gt;maxtsiz             0x4000000  Y  0X4000000                  &lt;BR /&gt;maxtsiz_64bit      0x40000000  Y  0X40000000                 &lt;BR /&gt;maxuprc                  2322  Y  ((NPROC*9)/10)             &lt;BR /&gt;maxusers                  320  -  320                        &lt;BR /&gt;maxvgs                     10  -  10                         &lt;BR /&gt;modstrmax                 500  -  500                        &lt;BR /&gt;msgmax                   8192  Y  8192                       &lt;BR /&gt;ncsize                  27808  -  (NINODE+VX_NCSIZE)+(8*DNLC_HASH_LOCKS) &lt;BR /&gt;netmemmax                   -  -  0                          &lt;BR /&gt;scsi_max_qdepth             8  Y  8                          &lt;BR /&gt;scsi_maxphys          1048576  -  1048576                    &lt;BR /&gt;sendfile_max                0  -  0                          &lt;BR /&gt;shmmax             4096000000  Y  4096000000                 &lt;BR /&gt;vol_dcm_replay_size    262144  -  (256*1024)                 &lt;BR /&gt;vol_max_bchain             32  -  32                         &lt;BR /&gt;vol_max_nconfigs           20  -  20                         &lt;BR /&gt;vol_max_nlogs              20  -  20                         &lt;BR /&gt;vol_max_nmpool_sz     4194304  -  (4*1024*1024)              &lt;BR /&gt;vol_max_prm_dgs          1024  -  1024                       &lt;BR /&gt;vol_max_rdback_sz     4194304  -  (4*1024*1024)              &lt;BR /&gt;vol_max_vol           8388608  -  (8*1024*1024)              &lt;BR /&gt;vol_maxio                 256  -  256                        &lt;BR /&gt;vol_maxioctl            32768  -  32768                      &lt;BR /&gt;vol_maxkiocount          2048  -  2048                       &lt;BR /&gt;vol_maxparallelio         256  -  256                        &lt;BR /&gt;vol_maxspecialio          256  -  256                        &lt;BR /&gt;vol_maxstablebufsize      256  -  256                        &lt;BR /&gt;vol_mvr_maxround          256  -  256                        &lt;BR /&gt;volcvm_cluster_size        16  -  16                         &lt;BR /&gt;voldrl_max_drtregs       2048  -  2048                       &lt;BR /&gt;voliomem_chunk_size     65536  -  (64*1024)                  &lt;BR /&gt;voliomem_maxpool_sz   4194304  -  (4*1024*1024)              &lt;BR /&gt;voliot_iobuf_max        65536  -  65536                      &lt;BR /&gt;voliot_max_open            32  -  32                         &lt;BR /&gt;volraid_rsrtransmax         1  -  1                          &lt;BR /&gt;vps_pagesize                4  -  4                          &lt;BR /&gt;vx_maxlink              32767  -  32767                      &lt;BR /&gt;vx_ncsize                1024  -  1024                       &lt;BR /&gt;vxfs_max_ra_kbytes       1024  -  1024                       &lt;BR /&gt;vxtask_max_monitors        32  -  32                    &lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/CTYPE.H&gt;&lt;/STRING.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 01 Jun 2005 04:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555511#M702244</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-01T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555512#M702245</link>
      <description>It's probably your stack size is too small.&lt;BR /&gt;&lt;BR /&gt;maxssiz 0x800000 - 0X800000 &lt;BR /&gt;maxssiz_64bit 0x800000 - 0X800000 &lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2005 05:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555512#M702245</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-01T05:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555513#M702246</link>
      <description>I think Stephen is close. &lt;BR /&gt;&lt;BR /&gt;When I commented out that ENORMOUS character array -&amp;gt; char cdata[CDATANUM][STR_LEN]; &amp;lt;- AKA =&amp;gt; cdata[500000][256] and the next line -&amp;gt;  float fdata[FDATANUM]; &amp;lt;- AKA  =&amp;gt; fdata[10 million], then the program ran fine. When allowed both back in, and changed CDATANUM from 500000 to 50000, it also ran fine. &lt;BR /&gt;&lt;BR /&gt;I believe that changing maxssiz requires a reboot.&lt;BR /&gt;&lt;BR /&gt;You are much BETTER off using malloc than creating such large static arrays.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2005 06:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555513#M702246</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-01T06:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555514#M702247</link>
      <description>Do the maths ...&lt;BR /&gt;&lt;BR /&gt;char cdata[CDATANUM][STR_LEN];&lt;BR /&gt;&lt;BR /&gt;CDATANUM x STR_LEN&lt;BR /&gt;&lt;BR /&gt;= 500000 x 256 = 128,000,000 bytes or in hex 0x7A12000&lt;BR /&gt;&lt;BR /&gt;You stack size is 0x800000 !&lt;BR /&gt;&lt;BR /&gt;As Harry says, malloc would be preferable for such huge arrays, as it would allocate memory on the heap rather than the stack. But watch your maxdsize limit too!&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2005 07:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555514#M702247</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-01T07:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555515#M702248</link>
      <description>Here's some good reading on strings and malloc:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://members.shaw.ca/ipatters/BeginC_9.html" target="_blank"&gt;http://members.shaw.ca/ipatters/BeginC_9.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Wed, 01 Jun 2005 08:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555515#M702248</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-01T08:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555516#M702249</link>
      <description>Thanks for your replies.&lt;BR /&gt;&lt;BR /&gt;I want to know how to tune the Kernel Parameters to the suitable values according to our server's memory? &lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2005 10:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555516#M702249</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-01T10:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555517#M702250</link>
      <description>I changed my maxssiz to 0xb000000 (184,549,376) and it ran fine, but then again it's not doing much.&lt;BR /&gt;&lt;BR /&gt;maxdsiz            0x10000000  -  0x10000000                 &lt;BR /&gt;maxdsiz_64bit      0x40000000  -  0X40000000                 &lt;BR /&gt;maxssiz             0xb000000  -  0XB000000                  &lt;BR /&gt;maxssiz_64bit       0xb000000  -  0XB000000                  &lt;BR /&gt;maxtsiz             0x4000000  Y  0X4000000                  &lt;BR /&gt;maxtsiz_64bit      0x40000000  Y  0X40000000&lt;BR /&gt;&lt;BR /&gt;If you add more huge arrays like that, then you will need to increase the stack again (This really isn't recommended). You really should be using malloc.&lt;BR /&gt;&lt;BR /&gt;To "tune" your machine we would need to know the memory available to use (max memory minus current consumption (without this program running)).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2005 12:52:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555517#M702250</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-01T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555518#M702251</link>
      <description>I should tell you if I saw large statically allocated arrays like that, I would not hire you. It's very poor programming practice because it's not often that all of your arrays would need to be that large AND there is a hard-coded limit on all your data structures. Generally, any program that requires a stack greater than about 32MB is poorly written. You should really learn to code dynamic arrays (using calloc and realloc) which are allocated not from the stack segment but the data segment.</description>
      <pubDate>Wed, 01 Jun 2005 14:46:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555518#M702251</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-01T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555519#M702252</link>
      <description>We can use dynamic arrays to achieve the goal.&lt;BR /&gt;&lt;BR /&gt;I just don't know why HP-UX limits the Kernel Parameters so low by default. It causes inconvenience for the users. We often be asked to adjust the Kernel Parameters, but don't know which one is the key. We have not encountered this kind of problem on other platforms, even on old Compaq's ES40.&lt;BR /&gt;&lt;BR /&gt;Anyway, thank everyone who answer my question.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 02 Jun 2005 06:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555519#M702252</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-02T06:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555520#M702253</link>
      <description>&lt;BR /&gt;The restrictions are in place to prevent an application from crippling a machine. Without these "controls" or "limitations" an application, like the one you posted, could cause the system to start paging. &lt;BR /&gt;&lt;BR /&gt;The biggest issue with most people that write programs (Note I didn't say programmers, because anyone can write code but only programmers can program), and I did a lot of programming (in many languages) for twenty years, is that they typically have no concern or even knowledge of how to write efficient programs. &lt;BR /&gt;&lt;BR /&gt;It's too bad that most people writing code don't have a systems background, if they did, they wouldn't be creating crap code.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 02 Jun 2005 06:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555520#M702253</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-02T06:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555521#M702254</link>
      <description>My opinion is HP should guide user to set the Kernel Parameters according user's computer configuration. The maxssiz's highest value is 401,604,608, it is not very large for a 8GB server because we have only 1 or 2 applications running on it. The default value of HP-UX's some Kernel Parameters is too low for most applications now.</description>
      <pubDate>Thu, 02 Jun 2005 07:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555521#M702254</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-02T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555522#M702255</link>
      <description>The default values on the kernel get you to the point where the system is running well enough for you to install patchs, applications and modify and build a new kernel.&lt;BR /&gt;&lt;BR /&gt;The default values have to be something, and its expected that they will need to be changed.&lt;BR /&gt;&lt;BR /&gt;Newer Oracle installations check parameters and won't install until the kernel is changed, rebuilt and installed anew.&lt;BR /&gt;&lt;BR /&gt;Other applications leave it up to you. When something starts to malfunction, checking kernel resources is almost always a good diagnostic step. It's really up to the application developers to run thorough tests and make sure they can give optimized recommendations for the kernel and other parameters.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 02 Jun 2005 07:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555522#M702255</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-06-02T07:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555523#M702256</link>
      <description>If every application requires to adjust some Kernel Parameters, then we have to reboot our server again and again for every new app.</description>
      <pubDate>Thu, 02 Jun 2005 07:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555523#M702256</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-02T07:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555524#M702257</link>
      <description>You could max them (kernel parameters) out, which will leave your system vulnerable to failure. OR you can teach your code writers the correct programming practices. Sometimes we have to manage people like we do machines.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Thu, 02 Jun 2005 07:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555524#M702257</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-02T07:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555525#M702258</link>
      <description>Actually your current setting of ~400MB for maxssiz could be bad and much too large even if you have 8GB of physical memory. In the 32-bit data model both stack and data, by default, are allocated from the same 1GB quadrant so that by setting the stack at 400MB, you have now limited dynamic memory allocation to a maximum of 600MB no matter what maxdsiz is actually set to. This only applies to 32-bit application but you need to be aware of this feature. That's why limiting maxssiz to about 32MB is a very good and very generous size.&lt;BR /&gt;&lt;BR /&gt;I've yet to see a UNIX/Linux box that was initially well-tuned regardless of the vendor. There are just too many variables. HP has a number of parameters that are typically too small and a few that are too large but the default values will run and then allow you to tune the kernel to suit. In practice, even with many different applications, it's not necessary to retune the kernel for each new application. With experience, you can get the values reasonable on the first attempt.</description>
      <pubDate>Thu, 02 Jun 2005 09:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555525#M702258</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-02T09:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555526#M702259</link>
      <description>0x800000 is too low for our meteorological data processing.&lt;BR /&gt;There are about 15,000 observation stations around the world, and about 200 elements per observation.&lt;BR /&gt;In the extreme:&lt;BR /&gt;15000(stations)*200(elements)*24(times)=72000000(float)&lt;BR /&gt;72000000*4=288,000,000(bytes) It is only one day's observation data.&lt;BR /&gt;&lt;BR /&gt;Should I increase the maxdsiz and maxdsiz_64bit for dynamic arrays? Especially the maxdsiz_64bit? I think there is almost no limit for 64bit.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 02 Jun 2005 11:10:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555526#M702259</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-06-02T11:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555527#M702260</link>
      <description>If these arrays are dynamic then maxdsiz is the tunable that controls this (or maxdsiz_64bit if this is a 64-bit process) and in that case maxssiz can be much smaller.&lt;BR /&gt;You should make sure that the _64bit values are at least as large as their 32-bit counterparts. You are correct that in the 64-bit data model there are essentially no practical limits although it is still wise to limit maxdsiz_64bit to some reasonable value so that a coding error does not bring the system to its knees.&lt;BR /&gt;&lt;BR /&gt;Generally the best way to handle your kind of data is dynamic arrays that expand in chunks of 100 or so elements so that the relatively expensive realloc() function does not have to be called very often.</description>
      <pubDate>Thu, 02 Jun 2005 11:21:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555527#M702260</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-02T11:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: why the program cause coredump?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555528#M702261</link>
      <description>Also, do you really have to store all the data for all stations, for the entire day in memory at the same time? Can you not save data to a file as you go along? It is more expensive in terms of time (disk access is much slower than direct memory access), but unless you need to access all of the data at the same time, it's a lot easier on memory.</description>
      <pubDate>Thu, 02 Jun 2005 11:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-the-program-cause-coredump/m-p/3555528#M702261</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-06-02T11:28:11Z</dc:date>
    </item>
  </channel>
</rss>

