From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8365 invoked by alias); 7 Jan 2008 22:41:59 -0000 Received: (qmail 8357 invoked by uid 22791); 7 Jan 2008 22:41:58 -0000 X-Spam-Check-By: sourceware.org Received: from 106.bga.akamai.com (HELO mail.elementlabs.com) (205.238.129.106) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 22:41:38 +0000 Received: from ELMOBILE55 ([66.167.200.109]) (authenticated user victor.valencia@elementlabs.com) by mail.elementlabs.com for ecos-discuss@ecos.sourceware.org; Mon, 7 Jan 2008 16:29:05 -0600 From: "Victor Valencia" To: Date: Mon, 07 Jan 2008 22:41:00 -0000 Message-ID: <005b01c8517e$83faa5b0$8beff110$@valencia@elementlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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: [ECOS] FreeBSD Network Stack memory allocation X-SW-Source: 2008-01/txt/msg00013.txt.bz2 I am building an application using ecos on an ARM9 processor using the FreeBSD stack. The default configuration for the stack allocates 256k + (max-sockets * 1024). It then breaks it up into 1/2 for mbufs, 1/4 for general heap, and 1/4 for clusters. My question is how do I determine how much memory I should allocate for my application? Is there some formula for determining how much to allocate based on number of sockets, max packet size, network throughput, etc? My application is fairly simple and maintains TCP sockets with up to 4 hosts. I am trying to minimize the amount of network memory I need to hopefully under 128k but I have no way of verifying analytically if this will work or not. Any suggestions?? Thanks In Advance Victor -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss