caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Overflow with Spacetime
@ 2017-08-09  7:37 Kenneth Adam Miller
  2017-08-10 13:12 ` Leo White
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Adam Miller @ 2017-08-09  7:37 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]

Hello all,


I wrote a particular application, and after profiling I can see that the
garbage collector is using 95% of the time in the application and that it
uses up to 6 gigs of memory on a 1 megabyte input file for a run that
totals out to be about 2 minutes. A 27 kilobyte input file takes seconds to
run, so I know that there is some explosive leak or otherwise terrible
issue with the space complexity here. I doubled down, and got compilation
to run to completion using _tags to make sure that there were symbols and
profiling turned on (thanks Ivan, Drup).

Additionally, I compiled my application with spacetime and ran it to obtain
a `spacetime-<pid>` binary, which I then attempted to get a report on with
prof_spacetime. prof_spacetime went up to about 7.3 gigs in memory usage
before it repeatedly would die with `Killed` or `Stack overflow` as the
error. I'm trying to figure out what else there is I can do to make sure
that the process runs to completion. I double checked to make sure that I
was running the prof_spacetime command built with just a 4.04.0 compiler to
ensure that it wouldn't profile itself while trying to "Process series". My
spacetime dump is about 900 Mb, so I understand that it would use some
memory processing it. Possibly I ran into a space leak while trying to find
a space leak.

In the meantime, I will try and find some intermediate size input to get
something I can work on - thought I should report this.

[-- Attachment #2: Type: text/html, Size: 1583 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-10 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-09  7:37 [Caml-list] Overflow with Spacetime Kenneth Adam Miller
2017-08-10 13:12 ` Leo White
2017-08-10 13:17   ` Kenneth Adam Miller

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).