On Tue, Jan 2, 2018 at 4:15 PM, Thomas Koenig wrote:
> Hi Janne,
>
>> +#define MAX_CHUNK 2147479552
>
>
> Two things to discuss:
>
> Should this also be backported to the 7-branch?
Probably yes. Is the 6 branch still active? If so, maybe that one as well.
> Also, we could set the default subreco
Hi Janne,
+#define MAX_CHUNK 2147479552
Two things to discuss:
Should this also be backported to the 7-branch?
Also, we could set the default subrecord length for unformatted
I/O to the same value. Save a syscall :-)
What do you think?
Regards
Thomas
It turns out that Linux never reads or writes more than 2147479552
bytes in a single syscall. For writes this is not a problem as
libgfortran already contains a loop around write() to handle short
writes. But for reads we cannot do this, since then read will hang if
we have a short read when readin