Bug 63938 - tcp_debug eating up RAM
Summary: tcp_debug eating up RAM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: eCos
Classification: Retired
Component: TCPIP
Version: 1.5.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: George Thomas
QA Contact: eCos bugs internal list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-04-22 12:07 UTC by Andrew Lunn
Modified: 2007-04-18 16:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-04-22 13:41:22 UTC
Embargoed:


Attachments (Terms of Use)
Fully conditionalize debug facility (5.49 KB, patch)
2002-04-22 13:41 UTC, George Thomas
no flags Details | Diff

Description Andrew Lunn 2002-04-22 12:07:03 UTC
Description of Problem:

The TCP/IP stack declares a structure tcp_debug. This is used for debugging tcp
using a user space program. The structure currently contains space for 100
connections. Each connection requires 264 bytes of memory. So the total
structure is consuming 25Kbytes of memory. 

I think its very unlikly anyone will use this facility, can i suggest the table
is shruck down to 1 or 2 entries? You need to modify
packages/net/tcpip/current/include/netinet/tcp_debug.h:121

Comment 1 George Thomas 2002-04-22 13:41:17 UTC
Created attachment 54824 [details]
Fully conditionalize debug facility


Note You need to log in before you can comment on or make changes to this bug.