Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Debugging memory-intensive programs...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <florian@h...>
Subject: [Caml-list] Debugging memory-intensive programs...
Timetravel considered harmful:

I just tried to debug a program that reads a lot of data and keeps
a significant part of it in memory because it died with a string
or array out of bounds exception halfway through it's input.
Here is part of what syslog said when I ran it in ocamldebug:

Nov  9 15:06:33 quetelet kernel: VM: do_try_to_free_pages failed for kswapd...
Nov  9 15:06:34 quetelet kernel: VM: do_try_to_free_pages failed for mozilla-bin...
Nov  9 15:06:57 quetelet last message repeated 4 times
Nov  9 15:06:57 quetelet kernel: VM: do_try_to_free_pages failed for apache...
Nov  9 15:07:01 quetelet kernel: VM: do_try_to_free_pages failed for kswapd...

[...]

Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for sshd...
Nov  9 15:14:41 quetelet last message repeated 4 times
Nov  9 15:14:41 quetelet kernel: VM: killing process sshd

[...]

Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for emacs...
Nov  9 15:14:41 quetelet last message repeated 16 times
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for bash...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for klogd...
Nov  9 15:14:41 quetelet last message repeated 15 times
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for proftpd...
Nov  9 15:14:41 quetelet last message repeated 15 times
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for XF86_Mach64...
Nov  9 15:14:41 quetelet last message repeated 15 times

[...]

Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for emacs...
Nov  9 15:14:41 quetelet last message repeated 16 times
Nov  9 15:14:41 quetelet kernel: VM: killing process emacs
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for bash...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for inetd...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for bash...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for editor...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for mutt...
Nov  9 15:14:41 quetelet kernel: VM: do_try_to_free_pages failed for syslogd...

Guess I have to do something else... :-)

Yours, Florian Hars.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr