This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tcp stack tuning


On Wed, Feb 19, 2003 at 02:46:57PM +0200, Jani Monoses wrote:
> Hi

> looking at ecos.ecc I could not find any CDL options relating to TCP
> behaviour.Is there a way to increase throughput say at the expense
> of memory Are TCP parameters (window sizes,delays, buffer sizes etc)
> tunable?  I am trying nc_test_client which measures throughput and
> want to see how far it can go

The normal way to do this is to use sysctl. But this is not supported
with eCos. The functions still seem to be in the OpenBSD stack, so you
could call them directly.

Otherwise you need to just poke around the global variables. eg

   extern int tcp_keepidle;
   extern unsigned int tcp_recvspace;
   extern unsigned int tcp_sendspace;

   tcp_keepidle = 2*60*PR_SLOWHZ; /* 2 minutes */
   tcp_recvspace = 1024 * 48;
   tcp_sendspace = 1024 * 48;

          Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]