caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* AW: [Caml-list] Bigarray.*.map_file
@ 2005-09-14 14:16 Bauer, Christoph
  0 siblings, 0 replies; only message in thread
From: Bauer, Christoph @ 2005-09-14 14:16 UTC (permalink / raw)
  To: 'Olivier Andrieu', Bauer, Christoph; +Cc: caml-list

Hi,

thanks for the fast reply.

> You can't: mmap is called with offset 0 (see
> otherlibs/bigarray/mmap_unix.c). 

This isn't nice for huge files (>2G) :-(
But I guess I could write my own C-funktion for that.

> 
>  > How can I do an munmap? I ask because of these lines from 
> the man-page:
>  > 
>  >        The munmap system call deletes the mappings for the speci-
>  >        fied address  range,  and  causes  further  references  to
>  >        addresses within the range to generate invalid memory ref-
>  >        erences.  The region is also automatically  unmapped  when
>  >        the process is terminated.  On the other hand, closing the
>  >        file descriptor does not unmap the region.
> 
> unmap() is called when the bigarray is collected by the GC.

Ok.

Best regards, 
Christoph


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-14 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-14 14:16 AW: [Caml-list] Bigarray.*.map_file Bauer, Christoph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).