From: "Rick Davis" <rickdavisjr@comcast.net>
To: "Ecos-Discuss" <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] network problem more info
Date: Fri, 31 Aug 2007 09:58:00 -0000 [thread overview]
Message-ID: <009401c7ebb5$65c20310$31460930$@net> (raw)
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.
I added more debug and what I am seeing is memory type M_SONAME is being
allocated twice and freed once. The sequence I am seeing is as follows.
Function size type flags address malloc'd cyg_current_time
address to free
---------------------------------------------------------------------
cyg_net_malloc: 148 5 1 0x001e0770 58571
cyg_net_malloc: 72 5 1 0x001e0710 58572
cyg_net_malloc: 20 5 1 0x001e06f0 58573
cyg_net_malloc: 16 98 1 0x001e06d0 58574
cyg_net_free: 98 0x001e06d0 58576
cyg_net_malloc: 16 98 8 0x001e06d0 58577
cyg_net_free: 5 0x001e06f0 91872
cyg_net_free: 5 0x001e0710 91872
cyg_net_free: 5 0x001e0770 91873
As you can see, 5 malloc, 4 free. The one not freed is type 98 (M_SONAME)
Rick Davis
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2007-08-31 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 9:58 Rick Davis [this message]
2007-08-31 12:27 ` Andrew Lunn
2007-08-31 12:40 ` Rick Davis
2007-08-31 12:47 ` Andrew Lunn
2007-08-31 14:03 ` Alok Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009401c7ebb5$65c20310$31460930$@net' \
--to=rickdavisjr@comcast.net \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).