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

Home » Public Forums » archive » Re: netcdf + idl: posixio.c:265: px_pgin: Assertion ...
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
Re: netcdf + idl: posixio.c:265: px_pgin: Assertion ... [message #75715] Thu, 14 April 2011 01:33
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 13.04.2011 15:24, schrieb Fabzou:
> Hi,
>
> Thanks for the information. Could it be related to my problem?
> https://groups.google.com/group/comp.lang.idl-pvwave/browse_ thread/thread/85b56dbd3e16d687/213ae8de36749fd9?hl=ky&ln k=gst&q=fabzou#213ae8de36749fd9
>

I guess it is.

>
> Anyway, I did not understand what you mean with:
>
>> The workaround is to to introduce a caching routine for copying the file

The workaround is a function with locking capability which copies a file
from NFS to local storage before it becomes readed.

https://idlsource.fz-juelich.de/hg/icg_lib-11.0/file/tip/idl _work/rb_lib/caching.pro

>> to a local storage with IO Block: 4096 size.

if you do a

> stat filename

From the man page
NAME
stat - display file or file system status



you get the IO Block information of the filesystem for your filename.
In our case we have on the fileserver the IO Block: 4096 size but not on
the NFS filesystem.

Reimar
>
> Is there a code template for this ?
>
> Thanks in advance,
>
> Fab
>
> On 04/13/2011 02:37 PM, Reimar Bauer wrote:
>> Hi
>>
>> we found a terrible netCDF problem which makes it hard to use a given
>> network storage for reading many many files.
>>
>> It is the same problem for reading as discussed in that thread
>> https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgr oup
>> /2011/msg00108.html
>>
>> The workaround is to to introduce a caching routine for copying the file
>> to a local storage with IO Block: 4096 size.
>>
>> We have some users which got a bit crazy because of random
>>
>> idl: posixio.c:265: px_pgin: Assertion `*posp == ((off_t)(-1)) || *posp
>> == lseek(nciop->fd, 0, 1)' failed.
>> Aborted
>>
>> while accessing a few hundred files.
>>
>> cheers
>> Reimar
>
Re: netcdf + idl: posixio.c:265: px_pgin: Assertion ... [message #75716 is a reply to message #75715] Thu, 14 April 2011 01:26 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 13.04.2011 15:34, schrieb Kenneth P. Bowman:
> In article <io451n$ujh$1@zam602.zam.kfa-juelich.de>,
> Reimar Bauer <R.Bauer@fz-juelich.de> wrote:
>
>> Hi
>>
>> we found a terrible netCDF problem which makes it hard to use a given
>> network storage for reading many many files.
>>
>> It is the same problem for reading as discussed in that thread
>> https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgr oup
>> /2011/msg00108.html
>>
>> The workaround is to to introduce a caching routine for copying the file
>> to a local storage with IO Block: 4096 size.
>>
>> We have some users which got a bit crazy because of random
>>
>> idl: posixio.c:265: px_pgin: Assertion `*posp == ((off_t)(-1)) || *posp
>> == lseek(nciop->fd, 0, 1)' failed.
>> Aborted
>>
>> while accessing a few hundred files.
>>
>> cheers
>> Reimar
>
> Is this a netCDF library problem or an IDL problem? Have you
> reported it to UNIDATA and/or ITTVIS?

I have reported it to unidata by a mail to the mailinglist, see the
thread I posted. I guess it is a unidata netCDF problem and after it is
fixed we need a newer version in IDL.

Reimar

>
> Ken
Re: netcdf + idl: posixio.c:265: px_pgin: Assertion ... [message #75731 is a reply to message #75716] Wed, 13 April 2011 06:34 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <io451n$ujh$1@zam602.zam.kfa-juelich.de>,
Reimar Bauer <R.Bauer@fz-juelich.de> wrote:

> Hi
>
> we found a terrible netCDF problem which makes it hard to use a given
> network storage for reading many many files.
>
> It is the same problem for reading as discussed in that thread
> https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgr oup
> /2011/msg00108.html
>
> The workaround is to to introduce a caching routine for copying the file
> to a local storage with IO Block: 4096 size.
>
> We have some users which got a bit crazy because of random
>
> idl: posixio.c:265: px_pgin: Assertion `*posp == ((off_t)(-1)) || *posp
> == lseek(nciop->fd, 0, 1)' failed.
> Aborted
>
> while accessing a few hundred files.
>
> cheers
> Reimar

Is this a netCDF library problem or an IDL problem? Have you
reported it to UNIDATA and/or ITTVIS?

Ken
Re: netcdf + idl: posixio.c:265: px_pgin: Assertion ... [message #75733 is a reply to message #75731] Wed, 13 April 2011 06:24 Go to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
Hi,

Thanks for the information. Could it be related to my problem?
https://groups.google.com/group/comp.lang.idl-pvwave/browse_ thread/thread/85b56dbd3e16d687/213ae8de36749fd9?hl=ky&ln k=gst&q=fabzou#213ae8de36749fd9


Anyway, I did not understand what you mean with:

> The workaround is to to introduce a caching routine for copying the file
> to a local storage with IO Block: 4096 size.

Is there a code template for this ?

Thanks in advance,

Fab

On 04/13/2011 02:37 PM, Reimar Bauer wrote:
> Hi
>
> we found a terrible netCDF problem which makes it hard to use a given
> network storage for reading many many files.
>
> It is the same problem for reading as discussed in that thread
> https://www.unidata.ucar.edu/mailing_lists/archives/netcdfgr oup
> /2011/msg00108.html
>
> The workaround is to to introduce a caching routine for copying the file
> to a local storage with IO Block: 4096 size.
>
> We have some users which got a bit crazy because of random
>
> idl: posixio.c:265: px_pgin: Assertion `*posp == ((off_t)(-1)) || *posp
> == lseek(nciop->fd, 0, 1)' failed.
> Aborted
>
> while accessing a few hundred files.
>
> cheers
> Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: EPS to PDF contour plots
Next Topic: Numbering of memory-files in ENVI/IDL

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

Current Time: Wed Oct 08 15:07:16 PDT 2025

Total time taken to generate the page: 0.00704 seconds