This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: tcp stack tuning
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Jani Monoses <jani at iv dot ro>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 19 Feb 2003 14:03:47 +0100
- Subject: Re: [ECOS] tcp stack tuning
- References: <20030219144657.213105d0.jani@iv.ro>
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