[uClibc] Network Transfer Speed
Andrew May
acmay at acmay.homeip.net
Thu Sep 30 16:00:26 UTC 2004
On Thu, 2004-09-30 at 09:01 -0400, Tony Tonchev wrote:
> Hello,
...
> Is there anything I may be missing in the uClibc configuration that
> affects this? Or any advice whatsoever that may me helpful in tracking
> down the problem. I’m using uClibc 0.9.24 and have experienced the same
> results on a P166, Celeron 533, PII400 with 128M of RAM<>. I'm using FTP
> transfers for testing.
Don't use FTP. It is usually limited by Harddisk speed (or what ever you
use to get the files to send). Writting stuff out to /dev/null instead
of a file helps on the rx side. On the sender repeating the send a few
times usually gets the file in the cache.
It is usually better to try ttcp (which has a .mk) or another test tool.
Here is a .mk for iperf which can also do udp testing.
-------------- next part --------------
#############################################################
#
# iperf
#
#############################################################
IPERF_SOURCE:=iperf-1.7.0-source.tar.gz
IPERF_SITE:=http://dast.nlanr.net/Projects/Iperf/
IPERF_DIR:=$(BUILD_DIR)/iperf-1.7.0
IPERF_BINARY:=iperf
IPERF_TARGET_BINARY:=usr/bin/iperf
$(DL_DIR)/$(IPERF_SOURCE):
$(WGET) -P $(DL_DIR) $(IPERF_SITE)/$(IPERF_SOURCE)
iperf-source: $(DL_DIR)/$(IPERF_SOURCE)
$(IPERF_DIR)/.unpacked: $(DL_DIR)/$(IPERF_SOURCE)
zcat $(DL_DIR)/$(IPERF_SOURCE) | tar -C $(BUILD_DIR) -xvf -
touch $(IPERF_DIR)/.unpacked
# --host=$(REAL_GNU_TARGET_NAME)
$(IPERF_DIR)/.configured: $(IPERF_DIR)/.unpacked
(cd $(IPERF_DIR)/cfg; $(TARGET_CONFIGURE_OPTS) ./configure \
--host=$(GNU_TARGET_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
);
touch $(IPERF_DIR)/.configured
$(IPERF_DIR)/$(IPERF_BINARY): $(IPERF_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) $(BVARS) -C $(IPERF_DIR)
$(STRIP) $(IPERF_DIR)/$(IPERF_BINARY)
$(TARGET_DIR)/$(IPERF_TARGET_BINARY): $(IPERF_DIR)/$(IPERF_BINARY)
cp -a $(IPERF_DIR)/$(IPERF_BINARY) $(TARGET_DIR)/$(IPERF_TARGET_BINARY)
iperf: uclibc $(TARGET_DIR)/$(IPERF_TARGET_BINARY)
iperf-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPERF_DIR) uninstall
-$(MAKE) -C $(IPERF_DIR) clean
iperf-dirclean:
rm -rf $(IPERF_DIR)
More information about the uClibc
mailing list