Help needed with possible kernel memory leak (FreeBSD 9.0 Release)

2012-08-21 Thread Remme
Hi All, Please help to solve a kernel memory leak problem. After few weeks searching forums and googling any help is welcome. Here is the problem description: We are installed the latest 9.0 FreeBSD with all recent patches. Ports tree is also up to date. Host running a nginx, php-fpm, memcached

Re: Help needed with possible kernel memory leak (FreeBSD 9.0 Release)

2012-08-21 Thread Adrian Chadd
FWIW - there's lots of statistics and some dtrace scripts + output here. So for those knowlegable in this area, this forum thread is well worth your time. Adrian On 21 August 2012 07:42, Remme adscomp...@gmail.com wrote: Hi All, Please help to solve a kernel memory leak problem. After few

Re: Memory leak on thread removal

2009-05-17 Thread Mikolaj Golub
During the run the program's virtual memory usage constantly grows. The growth MG is observed only when n != m. When running the program with uncommented MG sleep() and observing the number of threads with 'top -H' I see in turn 2 or 4 MG threads. So it looks like memory leak when thread

Re: Memory leak on thread removal

2009-05-17 Thread Mikolaj Golub
On Sat, 16 May 2009 20:24:09 +0200 Marius Nünnerich wrote: http://freshmeat.net/projects/lmdbg This is a small memory leak debugger. It does not provide all functionality you can find in more sophisticated tools but is lightweight, portable and simple in use. It was very useful when I

Re: Memory leak on thread removal

2009-05-16 Thread Mikolaj Golub
memory leak when thread is removed. Should I fill PR? It looks like I have found the leak. The problem is in libgomp/team.c. gomp_thread_start() does sem_init() but sem_destroy() is never called. This patch solves the problem for me: --- contrib/gcclibs/libgomp/team.c.orig 2009-05-16 17:32

Re: Memory leak on thread removal

2009-05-16 Thread Pieter de Goeje
the number of threads with 'top -H' I see in turn 2 or 4 threads. So it looks like memory leak when thread is removed. Should I fill PR? It looks like I have found the leak. The problem is in libgomp/team.c. gomp_thread_start() does sem_init() but sem_destroy() is never called. This patch solves

Re: Memory leak on thread removal

2009-05-16 Thread Marius Nünnerich
() and observing the number of threads with 'top -H' I see in turn 2 or 4   threads. So it looks like memory leak when thread is removed. Should I fill   PR? It looks like I have found the leak. The problem is in libgomp/team.c. gomp_thread_start() does sem_init() but sem_destroy() is never

Re: Memory leak on thread removal

2009-05-15 Thread Marius Nünnerich
. The growth is observed only when n != m. When running the program with uncommented sleep() and observing the number of threads with 'top -H' I see in turn 2 or 4 threads. So it looks like memory leak when thread is removed. Should I fill PR? I can confirm this. I briefly looked through

Re: Memory leak on thread removal

2009-05-15 Thread Andriy Tkachuk
On 2009-05-15 14:48, Marius Nünnerich wrote: Anybody knows good tools how to investigate this? Valgrind? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Memory leak on thread removal

2009-05-12 Thread Mikolaj Golub
with uncommented sleep() and observing the number of threads with 'top -H' I see in turn 2 or 4 threads. So it looks like memory leak when thread is removed. Should I fill PR? -- Mikolaj Golub ___ freebsd-hackers@freebsd.org mailing list http

Re: Req: Help tracking possible kernel memory leak. - possibly filesystem related

2006-08-01 Thread Q
On 01/08/2006, at 3:10 PM, Q wrote: I was wondering if someone could help point me in the direction of how to go about trying to resolve what I assume to be a memory leak in FreeBSD 6.x. I have made some more progress on identifying this problem. If I drop to single user mode

Req: Help tracking possible kernel memory leak.

2006-07-31 Thread Q
(Resent: Apologies if this is a duplicate) Hi, I was wondering if someone could help point me in the direction of how to go about trying to resolve what I assume to be a memory leak in FreeBSD 6.x. I have two database servers, one running 6.0 the other 6.1, both are running PostgreSQL

Looking for advice on chasing a kernel memory leak

2006-02-22 Thread Viktor Vasilev
Hello, I'm having trouble with a WARP (http://www.pcengines.ch/wrap.htm) board running m0n0wall v1.21 (stripped down FreeBSD 4.11-RELEASE-p13). It's serving as an internet gateway and the problem is, that after some time it starts blocking traffic and doesn't do NAT anymore. The box is

Re: Memory leak in net80211 on FBSD 6.0

2005-11-29 Thread Nate Nielsen
Nate Nielsen wrote: I'm experiencing a memory leak in the net80211 code. I have two atheros 5213-A cards on two embedded systems running FreeBSD 6.0. They are setup as IBSS (adhoc) stations. After roughly 15 seconds of ~14Mbps TCP traffic (single stream) I promptly run out of memory: login

Memory Leak Free Problem

2005-09-08 Thread Cole
Hi I have the netapp code they release for icap server. Ive ported it to FreeBSD. And I have found there is a memory leak in the code itself. Ive tried contacting netapp directly, but no reply. Their code can be found at : http://www.i-cap.org/spec/icap-server10.tar.gz Ive been trying to fix

Re: Memory Leak Free Problem

2005-09-08 Thread rookie
We have this section of code: 1. new_body = api_filter(origin_resp_body,origin_resp_body_len); 2. origin_resp_body_len = new_body-length; 3. origin_resp_body = new_body-data; I figure that the memory leak is occuring with origin_resp_body being assigned to the new_body buffer

Re: memory leak in inflate.c

2005-03-15 Thread Marc Olzheim
On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote: On Mon, 14 Mar 2005 [EMAIL PROTECTED] wrote: Hi, I am trying to debug a memory leak in executing gzipped binaries ^^ when the parameter list is too long

RE: memory leak in inflate.c

2005-03-15 Thread Vijay.Singh
Subject: Re: memory leak in inflate.c On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote: On Mon, 14 Mar 2005 [EMAIL PROTECTED] wrote: Hi, I am trying to debug a memory leak in executing gzipped binaries ^^ when

Re: memory leak in inflate.c

2005-03-15 Thread Marc Olzheim
On Tue, Mar 15, 2005 at 12:15:11PM -0800, [EMAIL PROTECTED] wrote: Thanks. Could someone generate the patch as I dont have the latest FreeBSD source checked out. Hmm, there seem to be more possible leaks, as the code has been literally copied from /usr/src/gnu/usr.bin/gzip/, including the

Re: memory leak in inflate.c

2005-03-15 Thread Marc Olzheim
On Tue, Mar 15, 2005 at 09:42:07PM +0100, Marc Olzheim wrote: Thanks. Could someone generate the patch as I dont have the latest FreeBSD source checked out. Hmm, there seem to be more possible leaks, as the code has been literally copied from /usr/src/gnu/usr.bin/gzip/, including the

memory leak in inflate.c

2005-03-14 Thread Vijay.Singh
Hi, I am trying to debug a memory leak in executing gzipped binaries when the parameter list is too long. The function in question is inflate_dynamic(). /* decompress until an end-of-block code */ if (inflate_codes(glbl, tl, td, bl, bd)) return 1

Re: memory leak in inflate.c

2005-03-14 Thread Marco Molteni
On Mon, 14 Mar 2005 [EMAIL PROTECTED] wrote: Hi, I am trying to debug a memory leak in executing gzipped binaries when the parameter list is too long. The function in question is inflate_dynamic(). /* decompress until an end-of-block code */ if (inflate_codes(glbl, tl, td

Re: setenv/unsetenv's known memory leak

2005-02-24 Thread Seán C . Farley
version that makes copies of all variables within the environment upon the first run of setenv(). Here are the two versions I have written to stop the memory leak. Old (complex): http://www.farley.org/freebsd/tmp/setenv-1.tar.bz2 New (simple): http://www.farley.org/freebsd/tmp/setenv-2.tar.bz2 Seán

Re: setenv/unsetenv's known memory leak

2005-02-24 Thread Seán C . Farley
On Thu, 24 Feb 2005, Seán C. Farley wrote: Here are the two versions I have written to stop the memory leak. Old (complex): http://www.farley.org/freebsd/tmp/setenv-1.tar.bz2 New (simple): http://www.farley.org/freebsd/tmp/setenv-2.tar.bz2 Also, you may find an uncompressed view of the two tar

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Peter Jeremy
On Tue, 2005-Feb-22 22:01:12 -0600, Seán C. Farley wrote: The latest PR on this (two PR's mentioned in it are closed): http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/19406 ... Here is a test program along with a patch to stop the leak: http://www.farley.org/freebsd/tmp/setenv.tar.bz2 The diff is

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Dag-Erling Smørgrav
in it are closed): http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/19406 They were closed for a reason. Read their audit trails. I could find no apparent reason for continuing to allow for the memory leak. The only reason given to allow it was to permit programs to continue to use

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Seán C . Farley
. The latest PR on this (two PR's mentioned in it are closed): http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/19406 They were closed for a reason. Read their audit trails. I could find no apparent reason for continuing to allow for the memory leak. The only reason given to allow it was to permit

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Dag-Erling Smørgrav
Seán C. Farley [EMAIL PROTECTED] writes: How does this version look? Needlessly complicated. I'd just copy the entire environment into malloc()ed space the first time setenv() or putenv() is called. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___

setenv/unsetenv's known memory leak

2005-02-22 Thread Seán C . Farley
/query-pr.cgi?pr=misc/19406 I could find no apparent reason for continuing to allow for the memory leak. The only reason given to allow it was to permit programs to continue to use the environment variable retrieved by setenv() after the program had reset or deleted it. If a program can be assumed

memory leak in resolver

2005-02-16 Thread Dag-Erling Smørgrav
[EMAIL PROTECTED] ~/src/gai% cat gai.c #include sys/types.h #include sys/socket.h #include netdb.h #include string.h int main(void) { struct addrinfo hint, *res; memset(hint, 0, sizeof(hint)); hint.ai_family = AF_INET; hint.ai_socktype = SOCK_STREAM;

Re: memory leak in resolver

2005-02-16 Thread Brian Fundakowski Feldman
On Wed, Feb 16, 2005 at 12:16:26PM +0100, Dag-Erling Smørgrav wrote: [EMAIL PROTECTED] ~/src/gai% cat gai.c #include sys/types.h #include sys/socket.h #include netdb.h #include string.h int main(void) { struct addrinfo hint, *res; memset(hint, 0, sizeof(hint));

Re: Memory Leak

2004-05-24 Thread Dag-Erling Smørgrav
Brian Feldman [EMAIL PROTECTED] writes: URL:http://green.homeunix.org/~green/boehm-gc.diffs have you sent this to the port maintainer (nobutaka@)? DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list

Re: Memory Leak

2004-05-23 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Daniel O'Connor [EMAIL PROTECTED] writes: : -BEGIN PGP SIGNED MESSAGE- : Hash: SHA1 : : On Sun, 23 May 2004 04:06, Cole wrote: : I just wanted to know what programs any of you have used to track down a : memory leak in your programs? : Also

Re: Memory Leak

2004-05-23 Thread Simon Barner
Daniel O'Connor wrote: There is valgrind.. http://www.rabson.org/#valgrind I thought it was in ports but I can't see it. Hi, as I pointed out in another message of this thread, the port is ready and waiting for a committer. Simon signature.asc Description: Digital signature

Re: Memory Leak

2004-05-23 Thread Garance A Drosihn
PROTECTED] To: Cole [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Looking for a ports committer for valgrind (Re: Memory Leak) I just wanted to know what programs any of you have used to track down a memory leak in your programs? this reminds me of something

Re: Memory Leak

2004-05-23 Thread Brian Feldman
On Sat, May 22, 2004 at 10:30:42PM -0600, M. Warner Losh wrote: Any suggestions for leak detectors that work in real-time or in response to some external signal? In a threaded application would be ideal. I've hacked malloc to add the stack traceback to the utrace info that's output by

Memory Leak

2004-05-22 Thread Cole
Hey I just wanted to know what programs any of you have used to track down a memory leak in your programs? Also wondering if there is maybe a good tutorial on the subject under FreeBSD or even linux if possible. Im running FreeBSD 4.9 so just looking for something try to help me track it down

Re: Memory Leak

2004-05-22 Thread Tim Kientzle
Cole wrote: Hey I just wanted to know what programs any of you have used to track down a memory leak in your programs? Also wondering if there is maybe a good tutorial on the subject under FreeBSD or even linux if possible. Im running FreeBSD 4.9 so just looking for something try to help me track

Looking for a ports committer for valgrind (Re: Memory Leak)

2004-05-22 Thread Simon Barner
I just wanted to know what programs any of you have used to track down a memory leak in your programs? this reminds me of something... :-/ I created a port for Doug Rabson's FreeBSD port[1] of valgrind [2]. He considered my work ready for the ports tree, but he also said that that he doesn't

Re: Memory Leak

2004-05-22 Thread Matthew D. Fuller
On Sat, May 22, 2004 at 11:52:19AM -0700 I heard the voice of Tim Kientzle, and lo! it spake thus: The one problem I've had is that dmalloc.h redefines some standard functions, which can cause gcc to complain. I usually just have a flag in my Makefile to enable dmalloc (adding a -D to the cc

Re: Memory Leak

2004-05-22 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Tim Kientzle [EMAIL PROTECTED] writes: : Cole wrote: : Hey : : I just wanted to know what programs any of you have used to track down a : memory leak in your programs? : Also wondering if there is maybe a good tutorial on the subject under : FreeBSD

contigmalloc + contigfree = memory leak?

2001-10-15 Thread Eugene M. Kim
)) free(vaddr, M_DEVBUF); } However, there *is* contigfree() and a related patch was applied on -current around August, so I did the same thing (adding an else clause to call contigfree(vaddr, dmat-maxsize, M_DEVBUF)). It didn't solve the memory leak problem either, so I'm stuck here

Re: contigmalloc + contigfree = memory leak?

2001-10-15 Thread Eugene M. Kim
= ptoa(Maxmem)) free(vaddr, M_DEVBUF); } However, there *is* contigfree() and a related patch was applied on -current around August, so I did the same thing (adding an else clause to call contigfree(vaddr, dmat-maxsize, M_DEVBUF)). It didn't solve the memory leak problem

memory leak in libfetch ? (with patch)

2001-05-21 Thread Thierry . Herbelot
() shows a missing free(cookie) at the end of the function. the following patch seems to cure the memory leak : - --- ftp.c.ori Sat Apr 7 19:30:48 2001 +++ ftp.c Mon May 21 15:26:42 2001 @@ -422,7 +422,9 @@ io-err = 0; close(io-csd); io-csd = -1

memory leak in the routing table ?

1999-08-04 Thread jayanth
Were there any issues related to a memory leak in the routing table ? I am running freebsd-stable. After a few days vmstat -m shows the memory used by routing table to be very high and log messages "arpresolve: cant allocate llinfo for a.b.c.d" "arplookup a.b.c.d failed could not

memory leak in the routing table ?

1999-08-04 Thread jayanth
Were there any issues related to a memory leak in the routing table ? I am running freebsd-stable. After a few days vmstat -m shows the memory used by routing table to be very high and log messages arpresolve: cant allocate llinfo for a.b.c.d arplookup a.b.c.d failed could not allocate llinfo