[ncl-talk] fatal:NclMalloc Failed:[errno=12] Segmentation fault

Amal Inge amalingenieur89 at gmail.com
Mon Dec 3 14:50:28 MST 2018


yes it's about 2.5G but i have 12T available. I have many data of this type
so it will be a huge work the divide them.
as you see the script stopped before creating the mask:

Variable: dox
Type: float
Total Size: 2624014800 bytes
            656003700 values
Number of Dimensions: 4
Dimensions and sizes:    [time | 215] x [depth | 18] x [latitude | 253] x
[longitude | 670]
Coordinates:
            time: [915148800..1477958400]
            depth: [1.472102..101.7803]
            latitude: [30.1875..45.9375]
            longitude: [-5.5625..36.25]
Number Of Attributes: 6
  standard_name :
mole_concentration_of_dissolved_molecular_oxygen_in_sea_water
  long_name :    Mole concentration of Dissolved Molecular Oxygen in sea
water
  units :    millimol m-3
  _FillValue :    1e+20
  missing_value :    1e+20
  _ChunkSizes :    ( 1, 22, 84, 161 )
fatal:NclMalloc Failed:[errno=12]
Segmentation fault



Le lun. 3 déc. 2018 à 22:28, Rick Brownrigg <brownrig at ucar.edu> a écrit :

> Hi,
>
> Errno=12 is "Cannot allocate memory".
>
> That dox variable looks to be about 2.6GB, and I can't quite tell, but it
> looks like you may be creating another 2 variables of comparable size(?)
> How much memory does you machine have?  Can you tell how far the script
> gets executed (i.e., perhaps put some print statements at strategic places
> in the script to see how far it gets).
>
> Rick
>
> On Mon, Dec 3, 2018 at 2:18 PM Amal Inge <amalingenieur89 at gmail.com>
> wrote:
>
>> Dear NCL experts,
>> i tried to run the script attached but i had this error: fatal:NclMalloc
>> Failed:[errno=12] Segmentation fault
>> what should be the solution please knowing that i have enough space in
>> the memory ?
>> many thanks
>>
>>
>> netcdf dox_med_1.4-101 {
>> dimensions:
>>     longitude = 670 ;
>>     latitude = 253 ;
>>     depth = 18 ;
>>     time = UNLIMITED ; // (215 currently)
>> variables:
>>     float longitude(longitude) ;
>>         longitude:standard_name = "longitude" ;
>>         longitude:long_name = "longitude" ;
>>         longitude:units = "degrees_east" ;
>>         longitude:axis = "X" ;
>>     float latitude(latitude) ;
>>         latitude:standard_name = "latitude" ;
>>         latitude:long_name = "latitude" ;
>>         latitude:units = "degrees_north" ;
>>         latitude:axis = "Y" ;
>>     float depth(depth) ;
>>         depth:standard_name = "depth" ;
>>         depth:long_name = "depth" ;
>>         depth:units = "m" ;
>>         depth:positive = "down" ;
>>         depth:axis = "Z" ;
>>         depth:_CoordinateAxisType = "Height" ;
>>         depth:_CoordinateZisPositive = "down" ;
>>     double time(time) ;
>>         time:standard_name = "time" ;
>>         time:long_name = "time" ;
>>         time:units = "seconds since 1970-01-01 00:00:00" ;
>>         time:calendar = "standard" ;
>>         time:axis = "T" ;
>>     float dox(time, depth, latitude, longitude) ;
>>         dox:standard_name =
>> "mole_concentration_of_dissolved_molecular_oxygen_in_sea_water" ;
>>         dox:long_name = "Mole concentration of Dissolved Molecular Oxygen
>> in sea water" ;
>>         dox:units = "millimol m-3" ;
>>         dox:_FillValue = 1.e+20f ;
>>         dox:missing_value = 1.e+20f ;
>>         dox:_ChunkSizes = 1, 22, 84, 161 ;
>>
>> // global attributes:
>>         :CDI = "Climate Data Interface version 1.8.1 (
>> http://mpimet.mpg.de/cdi)" ;
>>         :Conventions = "CF-1.0" ;
>>         :source = "3DVAR-OGSTM-BFM" ;
>>         :institution = "OGS (Istituto Nazionale di Oceanografia e di
>> Geofisica Sperimentale) , Sgonico (Trieste) - Italy" ;
>>         :references = "Please check in CMEMS catalogue the INFO section
>> for product MEDSEA_ANALYSIS_FORECAST_BIO_006_008 -
>> http://marine.copernicus.eu/" ;
>>         :comment = "Please check in CMEMS catalogue the INFO section for
>> product MEDSEA_ANALYSIS_FORECAST_BIO_006_008 -
>> http://marine.copernicus.eu/" ;
>>         :contact = "servicedesk.cmems at mercator-ocean.eu" ;
>>         :bulletin_date = "2017-12-01" ;
>>         :bulletin_type = "analysis" ;
>>         :field_type = "monthly_mean_beginning_at_time_field" ;
>>         :title = "Net Primary Production and Dissolved Oxygen (3D) -
>> Monthly Mean" ;
>>         :History = "Translated to CF-1.0 Conventions by Netcdf-Java CDM
>> (CFGridWriter2)\n",
>>             "Original Dataset = sv03-med-ogs-bio-rean-m; Translation Date
>> = 2018-12-03T14:34:09.553Z" ;
>>         :geospatial_lat_min = 30.1875 ;
>>         :geospatial_lat_max = 45.9375 ;
>>         :geospatial_lon_min = -5.5625 ;
>>         :geospatial_lon_max = 36.25 ;
>>         :CDO = "Climate Data Operators version 1.8.1 (
>> http://mpimet.mpg.de/cdo)" ;
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181203/ee4b4c91/attachment.html>


More information about the ncl-talk mailing list