[ADMB Users] survey of memory settings in ADMB

Arni Magnusson arnima at hafro.is
Fri Mar 23 12:27:46 PDT 2012


Thanks for taking this initiative, Ian.

The Coleraine stock assessment model had these settings in the 
TOP_OF_MAIN_SECTION back in 2001,

   arrmblsize = 250000;
   gradient_structure::set_GRADSTACK_BUFFER_SIZE(250000);
   gradient_structure::set_CMPDIF_BUFFER_SIZE(1500000);
   gradient_structure::set_MAX_NVAR_OFFSET(500);
   gradient_structure::set_NUM_DEPENDENT_VARIABLES(500);

and by 2003 the TOP_OF_MAIN_SECTION had changed to:

   arrmblsize = 5000000;
   gradient_structure::set_GRADSTACK_BUFFER_SIZE(560000);
   gradient_structure::set_CMPDIF_BUFFER_SIZE(15000000);
   gradient_structure::set_MAX_NVAR_OFFSET(500);
   gradient_structure::set_NUM_DEPENDENT_VARIABLES(500);

I presume these changes were made because users had been running into 
memory limits relating to 'arrmblsize', 'gradstack_buffer_size', and 
'cmpdif_buffer_size'. But I can't vouch whether the authors "put thought 
into the choices" or not.

Personally I have almost never run into memory limits, but I hear ADMB-RE 
users need to increase the memory limits in most applications.

Arni



On Thu, 22 Mar 2012, Ian Taylor wrote:

> Hi ADMB Users,
>
> The default memory settings in ADMB are out of date and I've been tasked 
> with coming up with replacements that will work for reasonable sized 
> models (big models will still require manual settings). It occurs to me 
> that it makes sense to survey what common requirements of ADMB users 
> might be.
>
> Have you been required to change the memory settings for your model 
> using either commands like the following in the TOP_OF_MAIN_SECTION,
>
>  arrmblsize=500000;
>  gradient_structure::set_GRADSTACK_BUFFER_SIZE(200000);
>  gradient_structure::set_CMPDIF_BUFFER_SIZE(2100000);
>  gradient_structure::set_MAX_NVAR_OFFSET(500);
>
> or through command line arguments like -ams, -gbs, -cbs, or -mno?
>
> If so, and if you've put thought into the choices (rather than blindly 
> picking values), could you send me your settings in a reply to this 
> email?
>
> Thanks,
>
> -Ian
>



More information about the Users mailing list