[Lustre-discuss] short writes

Bernd Schubert bs_lists at aakef.fastmail.fm
Thu Jul 8 09:33:11 PDT 2010


On Thursday, July 08, 2010, Brian J. Murrell wrote:
> On Thu, 2010-07-08 at 07:53 -0600, Kevin Van Maren wrote:
> > Hi David,
> 
> Hey Kevin,
> 
> > http://www.opengroup.org/onlinepubs/000095399/functions/write.html
> 
> Heh.  Funny enough, I was reading the exact same URL.
> 
> > I always thought libc should
> > handle the retry for you by default, but I didn't write the spec.
> 
> write(2) is a system call, not a libc function.  fwrite(3) is a
> comparable libc function, so libc might be able to handle short
> write(2)s in fwrite(3), but really it should not (IMHO) be mucking with
> write(2) (or any other) system calls.

You have to keep in mind that Gaussian is a Fortran application. Fortran has 
its own IO library and it would be quite possible that the library of some 
compilers can handle a short write, but the library of other compilers can 
not... In my university group we had to deal with quite some weird effects 
between fortran-IO implementations... 

David, did you use PGI or another compiler? Last time I had to deal with 
Gaussian only PGI was supported, but I have not checked for recent Gaussian 
versions.


Cheers,
Bernd

-- 
Bernd Schubert
DataDirect Networks



More information about the lustre-discuss mailing list