Article delegate-en/1217 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A1216@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Very slow ftp uploads
26 Jun 2001 07:30:00 GMT feedback@delegate.org (Yutaka Sato)


Hi,

In message <_A1216@delegate-en.ML_> on 06/26/01(15:53:56)
you pxycabdyi-dyd2yvexw5xr.ml@ml.delegate.org wrote:
 |I am running the latest delegated on a FreeBSD 4.3-STABLE Box. When i run
 |delegated with -v -v i see the messages like these appearing on the screen:
 |
 |out:32768->65536
 |    09/23 05:47:26.52 [26680] 3+0/12: NICE-1 72K/2/13.91s 36864/p 5302/s
 |buf=65536(65536)
 |    09/23 05:47:29.53 [26680] 3+0/12: NICE-2 136K/4/16.91s 34816/p 8233/s
 |buf=65536(65536)
 |    09/23 05:48:11.54 [26680] 3+0/12: NICE-3 264K/8/58.93s 33792/p 4587/s
 |buf=65536(65536)
 |    09/23 05:52:53.54 [26680] 3+0/12: NICE-4 520K/16/340.93s 33280/p 1561/s
 |buf=65536(30720)
 |
 |till the upload was completed.
 |
 |The machine currently is running in a test environment with no load at all.
 |There is only one delegated running which job is only to listen to address
 |192.168.2.101 on port 21 and forward it to an FTP on 192.168.1.101
 |(Dual-Homed Machine)

Firstly, disabling nice() in iotimeout:doNice() function, like follows,
might change the situation.

*** ../../delegate7.3.2/src/iotimeout.c	Sun Mar 11 00:11:31 2001
--- iotimeout.c	Tue Jun 26 16:09:26 2001
***************
*** 510,516 ****
--- 510,518 ----
  	if( 10 <= (now - since) )
  	if( niced < MAX_NICE_VALUE && (0x010000 << niced) < bytes ){
  		niced += 1;
+ /*
  		nice(1);
+ */
  
  		bsize = ((int)((bytes/elapsed) * MAX_NICE_SLEEP*2)) & ~0x3FF;
  		if( bsize == 0 )

If not, commenting doNice() in ftp.c:FTP_data_relay() function might
be effective.

Cheers,
Yutaka
--
  @ @ Yutaka Sato <y.sato@delegate.org> http://www.delegate.org/y.sato/
 ( - ) National Institute of Advanced Industrial Science and Technology (AIST)
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V