Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Out-of-memory faults and other cygwin issues
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Yaron M. Minsky <yminsky@C...>
Subject: [Caml-list] Out-of-memory faults and other cygwin issues
Does anyone know what triggers ocaml to crash on an "out-of-memory"
error?  I'm currently using ocaml on cygwin, and I find that my program
often crashes after the memory size reaches about ~200 megs.  This
happened on a machine with a gig of ram and that didn't have all that
much else running.

Another thing I've noticed is that ocaml doesn't seem to collect memory
at the times I expect it to.  In particular, after clearing all
references to the big memory structures and running Gc.full_major and
Gc.collect (in that order), the memory size (as measured by the Windows
task manager) doesn't immediately go down.  It's possible that I've
neglected to clear my memory references, but I don't think that's it. 

Another odd and regrettable thing I've noticed about ocaml-on-cygwin is
that when it crashes with a stack error, on cygwin it does so
silently--no error message at all.  Anyone know if this is something
that can be worked around?

Thanks in advance,
y

-- 
|--------/            Yaron M. Minsky              \--------|
|--------\ http://www.cs.cornell.edu/home/yminsky/ /--------|

Open PGP --- KeyID B1FFD916 (new key as of Dec 4th)
Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners