tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tsp-devel] Too much memory consumption in socket buffer


From: Eric Noulard
Subject: [Tsp-devel] Too much memory consumption in socket buffer
Date: Tue, 25 Mar 2008 23:51:01 +0100

Hi All,

While porting TSP on RTEMS
https://savannah.nongnu.org/task/index.php?7409

Stéphane, Fred and I dit hit a problem concerning weird
(aka too much ;-) memory requirement for the ringbuf
used by the TSP data socket sender;

I may have a fix which seems simple and efficient
and I need some testing of TSP user outside my own box.

Anyone which may recompile and test it's TSP applications
(consumer and/or provider) using the following change
is welcome:

replace (in tsp_const_def.h):

/** used to calculate the socket buffer size */
#define TSP_DATA_STREAM_MAX_HEADER_SIZE 1024

with
/**
 * This ill-named 'header' size is the size
 * needed for encoding group header which
 *        an int for timestamp
 *        an int for group id (normal or reserved)
 * This is used to calculate socket buffer size.
 */
#define TSP_DATA_STREAM_MAX_HEADER_SIZE 2*sizeof(int)

or youlmay apply the "trivial" patch attached to the bug
https://savannah.nongnu.org/bugs/download.php?file_id=15335


-- 
Erk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]