From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27148 invoked by alias); 31 Aug 2007 12:27:08 -0000 Received: (qmail 27132 invoked by uid 22791); 31 Aug 2007 12:27:07 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Aug 2007 12:27:03 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IR5aV-0001kh-00; Fri, 31 Aug 2007 14:26:59 +0200 Date: Fri, 31 Aug 2007 12:27:00 -0000 From: Andrew Lunn To: Rick Davis Cc: Ecos-Discuss Message-ID: <20070831122659.GA3789@lunn.ch> Mail-Followup-To: Rick Davis , Ecos-Discuss References: <009401c7ebb5$65c20310$31460930$@net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <009401c7ebb5$65c20310$31460930$@net> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] network problem more info X-SW-Source: 2007-08/txt/msg00179.txt.bz2 On Fri, Aug 31, 2007 at 05:57:51AM -0400, Rick Davis wrote: > To try to narrow down my memory issue. I wrote a client program that just > creates a socket, connects to port 80 and then shuts down and closes the > socket. Every time I run it 32 bytes of memory is allocated. If I keep > running the application the memory is consumed. If I let thing sit for > minutes, some of the memory is returned. This part is normal behaviour. The server socket is not closed immediately. It hangs around for a while so that it can eat any old retry packets for the connection which are still flying around the network. What you don't want is these old packets being injected into a new connection stream. What you need to do is run the test as before. Then stop the client and watch the memory usage. It should slowly decrease as these old sockets are freed after a timeout. Once it is stopped freeing, reached a steady state, you can then investigate what looks like lost memory. You probably want to go searching in the ecos mail archive, eg: http://ecos.sourceware.org/ml/ecos-discuss/2003-10/msg00380.html and http://www.cygwin.com/ml/ecos-discuss/2003-12/msg00181.html Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss