[flar: Hunting down Memory leaks (WAS: system crash)]
----- Forwarded message from flar -----
Date: Tue, 26 Sep 2000 00:21:12 +0200
Subject: Hunting down Memory leaks (WAS: system crash)
To: Brian May <bam@debian.org>
On Sun, Sep 24, 2000 at 12:30:24PM +1100, Brian May wrote:
> Hello,
>
> Just previously, while viewing high resolution images in gqview,
> my computer completely crashed (nothing worked, no network, mouse pointer
> didn't move, no keys did anything, etc). I had to cold reset my
> computer.
>
> In my log file, I saw the following suspicious message:
>
> Sep 24 11:28:55 snoopy kernel: VM: do_try_to_free_pages failed for kswapd...
> Sep 24 11:30:10 snoopy kernel: VM: do_try_to_free_pages failed for kupdate...
> Sep 24 11:35:42 snoopy kernel: VM: do_try_to_free_pages failed for kswapd...
> Sep 24 11:35:53 snoopy kernel: VM: do_try_to_free_pages failed for panel...
> Sep 24 11:36:16 snoopy kernel: VM: do_try_to_free_pages failed for gpm...
> Sep 24 11:40:06 snoopy kernel: VM: do_try_to_free_pages failed for kswapd...
> Sep 24 11:41:54 snoopy kernel: VM: do_try_to_free_pages failed for kswapd...
>
> which, to me, might suggest a low memory problem. Is this analysis
> correct?
>
Talking about memory leaks, I suffer often the my server hangs because
of a memory leak. I searched for bugs against the installed packages
but couldn't find any. Then I start wondering about keeping logs of the
memory use of programms, but euhhhh... don't know how. Does anyone here
knows a tool/way to log the memory use of programms?
Mzzl, Joost (de enige echte)
----- End forwarded message -----
I first send this mail only to brain in stead of the list. He reply
gave me a sollution (see below), and pointed my to the problem. Maybe
someone whit a bit of experience could put this in a package or
package it "stand alone". (then again, maybe not)
while true; do sleep 1; date; ps auwx; sync; done >> logfile
Mzzl, Joost (de enige echte)
Reply to: