file:write/2 , first argument is an io_device() not filename <div><a href="http://www.erlang.org/doc/man/file.html#write-2">http://www.erlang.org/doc/man/file.html#write-2</a><br><br><div class="gmail_quote">On Wed, May 4, 2011 at 1:19 PM, Dave Challis <span dir="ltr"><<a href="mailto:dsc@ecs.soton.ac.uk">dsc@ecs.soton.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 04/05/11 11:53, Carlo Bertoldi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/05/2011 12:29, Dave Challis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm having trouble writing large binaries to disk using file:write or<br>
file:write_file.<br>
<br>
If I shrink Data to less than 2Gb, the write operation works fine.<br>
<br>
</blockquote>
snip<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Erlang is running in 64-bit mode, my erlang system info is:<br>
Erlang R14B02 (erts-5.8.3) [source] [64-bit] [smp:8:8] [rq:8]<br>
[async-threads:0] [hipe] [kernel-poll:false]<br>
<br>
Is there something I should be doing differently, or a compile time<br>
option that I missed?<br>
<br>
</blockquote>
I believe you forgot to mention the underlying filesystem you're using.<br>
The 2GB limit reminds me of a FAT filesystem. Just my 2 cents.<br>
</blockquote>
<br></div>
Ah, sorry. I'm trying to write to an ext4 partition, running on 64-bit Ubuntu. I can create 10Gb+ files in the directory I'm trying to write to using applications without a problem though.<br>
<br>
Thanks,<div class="im"><br>
-- <br>
Dave Challis<br>
<a href="mailto:dsc@ecs.soton.ac.uk" target="_blank">dsc@ecs.soton.ac.uk</a><br>
_______________________________________________<br></div><div><div></div><div class="h5">
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>- Ahmed Omar<div><a href="http://nl.linkedin.com/in/adiaa" target="_blank">http://nl.linkedin.com/in/adiaa</a></div><div>Follow me on twitter</div>
<div><a href="http://twitter.com/#!/spawn_think" target="_blank">@spawn_think</a></div><br>
</div>