This appears to be fixed in the latest parallel-netcdf svn - I built against svn version 821 and ran to completion.<br>(although an inline operator has been introduced again that needs to be removed for AIX)<br><br><div class="gmail_quote">
On Fri, May 21, 2010 at 2:31 PM, Jim Edwards <span dir="ltr"><<a href="mailto:edwards.jim@gmail.com">edwards.jim@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Rob,<br><br>It's pnetcdf-1.1.1 Art is seeing it on jaguar and I am reproducing it on bluefire.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, May 21, 2010 at 2:25 PM, Rob Latham <span dir="ltr"><<a href="mailto:robl@mcs.anl.gov" target="_blank">robl@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>On Fri, May 21, 2010 at 01:23:02PM -0600, Jim Edwards wrote:<br>
> I am trying to do<br>
><br>
> rocde = nfmpi_redef(file)<br>
> rcode = nfmpi_put_att(cpl_io_file,pio_global,"file_version",version)<br>
> rcode = nfmpi_enddef(cpl_io_file)<br>
<br>
> But this results in<br>
><br>
> Memory allocation (malloc) failure<br>
<br>
</div>placing a single attribute on the dataset *might* result in growing<br>
the header. You'd know it if you ever hit that: performance would go<br>
straight down the toilet. If the header grows enough that you have<br>
to shuffle all the other variables down, pnetcdf will do so at 4k (!)<br>
at a time.<br>
<br>
So, that's one place that allocates memory in the redef case, but<br>
there really aren't 4k bytes of memory to spare? Seems unlikely.<br>
<br>
Do you maybe have a core file or a backtrace of where this happens?<br>
<br>
Is this on bluefire or bgp or something else?<br>
<div><div></div><div><br>
==rob<br>
<br>
--<br>
Rob Latham<br>
Mathematics and Computer Science Division<br>
Argonne National Lab, IL USA<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>