|
From: Chris H. <ha...@de...> - 2004-05-04 09:54:18
|
Hi Martijn,
On Tue, 2004-05-04 at 00:16, Martijn Brouwer wrote:
> I am running apt-proxy (the old version) on an old computer with debian
> woody. I noticed that dd consumes all cpu, which makes total performance
> poor (throughput of 20kb/s instead of 75kb/s). This is due to the ibs=1
> option.
Oh, that's not good :(
What happens if you try increasing the ibs and obs sizes to the length
of the message? I don't know if this might work:
Change
dd ibs=1 obs=16384 skip=$2 count=$3 if="$1" 2>/dev/null
To
dd ibs=$(( $3 - $2 )) obs=$(( $3 - $2 )) skip=$2 count=$3 if="$1" 2>/dev/null
> Now I am considering using v2, but this one requires python 2.3
> according to the info in the deb from experimental. Can I run this one
> on woody with python 2.1?
The main problem is not with the Python version, it is with the
python-twisted version. Twisted wasn't really stable until around
version 0.99, and Woody only has 0.15 AFAIK.
I don't think apt-proxy has been tested with Python 2.1, and I don't
know if there are any changes between 2.1 and 2.3 that would cause
problems. You'd just have to try it and see what happens.
Chris
|