Cheryl,
Try the following to increase your threads count:
Linux implements max number of threads per process indirectly!!
number of threads = total virtual memory / (stack size*1024*1024)
Thus, the number of threads per process can be increased by increasing total virtual memory or by decreasing stack size. But, decreasing stack size too much can lead to code failure due to stack overflow while max virtual memory is equals to the swap memory.
Check you machine:
Total Virtual Memory: ulimit -v (default is unlimited, thus you need to increase swap memory to increase this)
Total Stack Size: ulimit -s (default is 8Mb)
Command to increase these values:
ulimit -s newvalue
ulimit -v newvalue
*Replace new value with the value you want to put as limit.
References:
http://dustycodes.wordpress.com/2012/02/09/increasing-number-of-threads-per-process/
Wei
huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924
On Sep 24, 2013, at 12:40 PM, cheryl Ma <xiaoyancloud@gmail.com> wrote:
> Line 19 is
> fils = systemfunc("ls "+dir+"CER_SSF_Terra-FM1-MODIS_Edition3A_300301.200412"+day+"*.hdf")
>
> which is inside a loop, i.e.
>
> nday = 31
> iday_start = 1
> do nd = 0, nday-1
> dir = "L2/"
> day = sprinti("%0.2i", nd+iday_start)
> fils = systemfunc("ls "+dir+"CER_SSF_Terra-FM1-MODIS_Edition3A_300301.200512"+day+"*.hdf")
> ...
> end do
>
>
> On Tue, Sep 24, 2013 at 8:41 AM, Dennis Shea <shea@ucar.edu> wrote:
> How is ncl-talk supposed to answer this when you do not include
> the line that uses 'systemfunc' ?
>
>
> On 9/23/13 2:33 PM, cheryl Ma wrote:
> Hi all,
>
>
> I have a problem as below, does anyone know what is the problem and how to
> fix it?
>
> Thanks,
>
> ==================================
> fatal:systemfunc: cannot create child process:[errno=12]
> ^Mfatal:["Execute.c":8128]:Execute: Error occurred at or near line 19 in
> file
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 24 13:09:23 2013
This archive was generated by hypermail 2.1.8 : Tue Oct 01 2013 - 14:41:43 MDT