comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Random 'Unable to allocate memory' error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Random 'Unable to allocate memory' error [message #92093] Tue, 13 October 2015 06:43 Go to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Hello everyone!

I am currently processing a time series. For some reasons the 'Unable to allocate memory' error occurs sometimes. I don't know the reasons as the appearance ist not systematic. Sometimes the error occurs sometime not. I can say that is not file specific.

Any Ideas?

Thanks,
Kai
Re: Random 'Unable to allocate memory' error [message #92094 is a reply to message #92093] Tue, 13 October 2015 07:31 Go to previous messageGo to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
One more thing I should mention.
I am processing parallel (2 processes). Those two should not exceed the memory limit of the server.
Re: Random 'Unable to allocate memory' error [message #92095 is a reply to message #92094] Tue, 13 October 2015 08:46 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
Hello Kai,

could it be caused by memory fragmentation? For more see
http://www.exelisvis.com/Support/HelpArticles/TabId/185/ArtM ID/800/ArticleID/3441/3441.aspx

Cheers, Heinz
Re: Random 'Unable to allocate memory' error [message #92096 is a reply to message #92093] Tue, 13 October 2015 11:11 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
I assume this is Windows OS. Did you try the 64-bit version of IDL?

On Tuesday, October 13, 2015 at 9:43:42 AM UTC-4, Kai Heckel
wrote:
> Hello everyone!
>
> I am currently processing a time series. For some reasons the 'Unable to allocate memory' error occurs sometimes. I don't know the reasons as the appearance ist not systematic. Sometimes the error occurs sometime not. I can say that is not file specific.
>
> Any Ideas?
>
> Thanks,
> Kai
Re: Random 'Unable to allocate memory' error [message #92099 is a reply to message #92096] Wed, 14 October 2015 00:44 Go to previous messageGo to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Dienstag, 13. Oktober 2015 20:11:47 UTC+2 schrieb Haje Korth:
> I assume this is Windows OS. Did you try the 64-bit version of IDL?
>
> On Tuesday, October 13, 2015 at 9:43:42 AM UTC-4, Kai Heckel
> wrote:
>> Hello everyone!
>>
>> I am currently processing a time series. For some reasons the 'Unable to allocate memory' error occurs sometimes. I don't know the reasons as the appearance ist not systematic. Sometimes the error occurs sometime not. I can say that is not file specific.
>>
>> Any Ideas?
>>
>> Thanks,
>> Kai


Thanks for your suggestions so far!

I am processing on a linux server. So it shouldn't be anything Windows related.
Re: Random 'Unable to allocate memory' error [message #92104 is a reply to message #92099] Wed, 14 October 2015 04:15 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Hm, I thought you could indeed be suffering from memory fragmentation, but I thought this is only a windows issue. Since you are on linux, you should be automatically using 64 bit as the 32 bit version is no longer included in recent releases. In this case, I really don't know what causes your issue. I would check with support.

On Wednesday, October 14, 2015 at 3:44:35 AM UTC-4, Kai Heckel wrote:
> Am Dienstag, 13. Oktober 2015 20:11:47 UTC+2 schrieb Haje Korth:
>> I assume this is Windows OS. Did you try the 64-bit version of IDL?
>>
>> On Tuesday, October 13, 2015 at 9:43:42 AM UTC-4, Kai Heckel
>> wrote:
>>> Hello everyone!
>>>
>>> I am currently processing a time series. For some reasons the 'Unable to allocate memory' error occurs sometimes. I don't know the reasons as the appearance ist not systematic. Sometimes the error occurs sometime not. I can say that is not file specific.
>>>
>>> Any Ideas?
>>>
>>> Thanks,
>>> Kai
>
>
> Thanks for your suggestions so far!
>
> I am processing on a linux server. So it shouldn't be anything Windows related.
Re: Random 'Unable to allocate memory' error [message #92107 is a reply to message #92104] Wed, 14 October 2015 07:59 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

On 10/14/15 07:15, Haje Korth wrote:
> Hm, I thought you could indeed be suffering from memory
> fragmentation,
> but I thought this is only a windows issue. Since you are on linux, you
> should be automatically using 64 bit as the 32 bit version is no longer
> included in recent releases. In this case, I really don't know what
> causes your issue. I would check with support.

This is probably unrelated, but I experienced a similar issue recently.

In my case it was because I was attempting to do some IDL processing on
a frontend (or login) node of the supacomputer I was using. That is
(somehow) restricted by the system setup. I'm guessing everything was
working fine until I passed some memory usage limit or there were too
many other folks on the login node - I was not doing anything too
complicated or big.

When I started an interactive job on a compute node the 'Unable to
allocate memory' error went away. (Aside: The sysdocs said to run IDL, a
whole node should be taken! I guess memory management is an issue in
general with IDL.)

So, if the OP is using IDL on a shared system (s/he did say "server"
so...other users?) maybe the other users are requesting enough resources
to make the OP's script run out of available memory in a seemingly
random way?

(I'm waving my hands about in the air trying to make the scenario seem
reasonable :o)

cheers,

paulv


>
> On Wednesday, October 14, 2015 at 3:44:35 AM UTC-4, Kai Heckel wrote:
>> Am Dienstag, 13. Oktober 2015 20:11:47 UTC+2 schrieb Haje Korth:
>>> I assume this is Windows OS. Did you try the 64-bit version of IDL?
>>>
>>> On Tuesday, October 13, 2015 at 9:43:42 AM UTC-4, Kai Heckel
>>> wrote:
>>>> Hello everyone!
>>>>
>>>> I am currently processing a time series. For some reasons the
>>>> 'Unable to allocate memory' error occurs sometimes. I don't know the
>>>> reasons as the appearance ist not systematic. Sometimes the error occurs
>>>> sometime not. I can say that is not file specific.
>>>>
>>>> Any Ideas?
>>>>
>>>> Thanks,
>>>> Kai
>>
>>
>> Thanks for your suggestions so far!
>>
>> I am processing on a linux server. So it shouldn't be anything Windows related.
>
Re: Random 'Unable to allocate memory' error [message #92118 is a reply to message #92107] Thu, 15 October 2015 04:01 Go to previous messageGo to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Mittwoch, 14. Oktober 2015 16:59:35 UTC+2 schrieb Paul van Delst:
> Hello,
>
> On 10/14/15 07:15, Haje Korth wrote:
>> Hm, I thought you could indeed be suffering from memory
>> fragmentation,
>> but I thought this is only a windows issue. Since you are on linux, you
>> should be automatically using 64 bit as the 32 bit version is no longer
>> included in recent releases. In this case, I really don't know what
>> causes your issue. I would check with support.
>
> This is probably unrelated, but I experienced a similar issue recently.
>
> In my case it was because I was attempting to do some IDL processing on
> a frontend (or login) node of the supacomputer I was using. That is
> (somehow) restricted by the system setup. I'm guessing everything was
> working fine until I passed some memory usage limit or there were too
> many other folks on the login node - I was not doing anything too
> complicated or big.
>
> When I started an interactive job on a compute node the 'Unable to
> allocate memory' error went away. (Aside: The sysdocs said to run IDL, a
> whole node should be taken! I guess memory management is an issue in
> general with IDL.)
>
> So, if the OP is using IDL on a shared system (s/he did say "server"
> so...other users?) maybe the other users are requesting enough resources
> to make the OP's script run out of available memory in a seemingly
> random way?
>
> (I'm waving my hands about in the air trying to make the scenario seem
> reasonable :o)
>
> cheers,
>
> paulv
>
>
>>
>> On Wednesday, October 14, 2015 at 3:44:35 AM UTC-4, Kai Heckel wrote:
>>> Am Dienstag, 13. Oktober 2015 20:11:47 UTC+2 schrieb Haje Korth:
>>>> I assume this is Windows OS. Did you try the 64-bit version of IDL?
>>>>
>>>> On Tuesday, October 13, 2015 at 9:43:42 AM UTC-4, Kai Heckel
>>>> wrote:
>>>> > Hello everyone!
>>>> >
>>>> > I am currently processing a time series. For some reasons the
>>>> > 'Unable to allocate memory' error occurs sometimes. I don't know the
>>>> > reasons as the appearance ist not systematic. Sometimes the error occurs
>>>> > sometime not. I can say that is not file specific.
>>>> >
>>>> > Any Ideas?
>>>> >
>>>> > Thanks,
>>>> > Kai
>>>
>>>
>>> Thanks for your suggestions so far!
>>>
>>> I am processing on a linux server. So it shouldn't be anything Windows related.
>>

Good idea Paul but I am the only one processing on the server.... However, 32 GB of RAM should be enough for me and others to process.

Here is another idea I have:
In all processes large arrays are created. Not only one but multiple arrays. Is possible that these variables need to be deleted after they were used in each file loop?

BTW: Is it possible to delete all variable except for one?
Re: Random 'Unable to allocate memory' error [message #92119 is a reply to message #92118] Thu, 15 October 2015 06:57 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Thursday, October 15, 2015 at 6:01:50 AM UTC-5, Kai Heckel wrote:
>
> Here is another idea I have:
> In all processes large arrays are created. Not only one but multiple arrays. Is possible that these variables need to be deleted after they were used in each file loop?
>

With memory allocation errors, *anything* is possible :-)

To help answer this, you might try keeping track of the memory usage each step in the loop. By using MEMORY(), at least you would then have an idea if you were hitting the server limit....
Re: Random 'Unable to allocate memory' error [message #92120 is a reply to message #92119] Thu, 15 October 2015 07:59 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 10/15/15 09:57, Phillip Bitzer wrote:
> On Thursday, October 15, 2015 at 6:01:50 AM UTC-5, Kai Heckel wrote:
>>
>> Here is another idea I have: In all processes large arrays are
>> created. Not only one but multiple arrays. Is possible that these
>> variables need to be deleted after they were used in each file
>> loop?
>>
>
> With memory allocation errors, *anything* is possible :-)
>
> To help answer this, you might try keeping track of the memory usage
> each step in the loop. By using MEMORY(), at least you would then
> have an idea if you were hitting the server limit....

+1

If you don't measure it, you can't manage it.
Re: Random 'Unable to allocate memory' error [message #92134 is a reply to message #92119] Mon, 19 October 2015 05:46 Go to previous messageGo to next message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Donnerstag, 15. Oktober 2015 15:57:28 UTC+2 schrieb Phillip Bitzer:
> On Thursday, October 15, 2015 at 6:01:50 AM UTC-5, Kai Heckel wrote:
>>
>> Here is another idea I have:
>> In all processes large arrays are created. Not only one but multiple arrays. Is possible that these variables need to be deleted after they were used in each file loop?
>>
>
> With memory allocation errors, *anything* is possible :-)
>
> To help answer this, you might try keeping track of the memory usage each step in the loop. By using MEMORY(), at least you would then have an idea if you were hitting the server limit....

Thanks, I will test it. But what do the values of MEMORY() mean?
Re: Random 'Unable to allocate memory' error [message #92136 is a reply to message #92134] Mon, 19 October 2015 06:01 Go to previous messageGo to next message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Monday, 19 October 2015 14:46:10 UTC+2, Kai Heckel wrote:

> But what do the values of MEMORY() mean?

http://www.exelisvis.com/docs/MEMORY.html

--
Yngvar
Re: Random 'Unable to allocate memory' error [message #92166 is a reply to message #92094] Thu, 22 October 2015 11:20 Go to previous messageGo to next message
Chip Helms is currently offline  Chip Helms
Messages: 24
Registered: November 2012
Junior Member
On Tuesday, October 13, 2015 at 10:31:24 AM UTC-4, Kai Heckel wrote:
> One more thing I should mention.
> I am processing parallel (2 processes). Those two should not exceed the memory limit of the server.

Are you using the IDL-IDL bridge for this? If this is the case, this thread might help you:
https://groups.google.com/d/topic/comp.lang.idl-pvwave/J2QMU UvmPLY/discussion

Supposedly, the issue was fixed in 8.3 (of course, I'm still using 8.2.3 due to budget issues :) ). I'm not entirely sure how I solved the issue (or if I did at all). I can try digging a bit more if this is, in fact, related to your issue.

Cheers,
Chip
Re: Random 'Unable to allocate memory' error [message #92169 is a reply to message #92166] Thu, 22 October 2015 23:55 Go to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Donnerstag, 22. Oktober 2015 20:20:05 UTC+2 schrieb Chip Helms:
> On Tuesday, October 13, 2015 at 10:31:24 AM UTC-4, Kai Heckel wrote:
>> One more thing I should mention.
>> I am processing parallel (2 processes). Those two should not exceed the memory limit of the server.
>
> Are you using the IDL-IDL bridge for this? If this is the case, this thread might help you:
> https://groups.google.com/d/topic/comp.lang.idl-pvwave/J2QMU UvmPLY/discussion
>
> Supposedly, the issue was fixed in 8.3 (of course, I'm still using 8.2.3 due to budget issues :) ). I'm not entirely sure how I solved the issue (or if I did at all). I can try digging a bit more if this is, in fact, related to your issue.
>
> Cheers,
> Chip

Hey Chip,

thanks for the suggestion, but I am using 8.4 and this has already been fixed I guess. Anyways I think that it could be CPU related because on the 1st server 2 processes run properly (16 cores, 32GB RAM). On the 2nd server only one process can be run (8 cores, 32GB RAM).
So I am only running 3 processes now, which is fine for me.

However, thank you all for your suggestions!

Cheers,
Kai
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8.5's HDF version and HDF5 version
Next Topic: Clip 2D Array in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:42:59 PDT 2025

Total time taken to generate the page: 0.00557 seconds