Am 02.03.2006 um 00:21 schrieb Vlad Seryakov:
I played with this and still not sure what is the problem. With
small TCP buffers and starting with 2 request it slws down and
reads be small chunks. netstat shows Send-Q so it might be TCP
stack playing on Linux,
Zoran, can you check this on Solaris.
If you tell me what exactly to do, I can do that.
In the meantime I just made fresh checkout and test
on Darwin. Here is the output:
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain: Tcl
version: 8.4.12
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain:
NaviServer/4.99.2 starting
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain:
security info: uid=1005, euid=1005, gid=101, egid=101
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain: max
files: FD_SETSIZE = 1024, rl_cur = 10240, rl_max = 10240
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Warning: nsmain:
rl_max > FD_SETSIZE
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: vhost
[testvhost]: www.example.com:80 -> /Users/zoran/sf/naviserver/tests/
testserver/vhosts/e/x/a/example.com/pages
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsd/
init.tcl: Booting virtual server: testvhost...
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: conf: [ns/
server/testvhost]enabletclpages = 1
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: tcl:
enabling .tcl pages
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsd/
init.tcl: Booting virtual server: testvhost2...
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: conf: [ns/
server/testvhost2]enabletclpages = 1
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: tcl:
enabling .tcl pages
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: adp[test]:
mapped *.adp
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsd/
init.tcl: Booting virtual server: test...
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: modload:
loading /Users/zoran/sf/naviserver/tests/../nslog/nslog.so
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nslog:
opened '/Users/zoran/sf/naviserver/tests/testserver/access.log'
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: modload:
loading /Users/zoran/sf/naviserver/tests/../nsdb/nsdb.so
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: modload:
loading /Users/zoran/sf/naviserver/tests/../nsdbtest/nsdbtest.so
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: conf: [ns/
server/test]enabletclpages = 1
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: tcl:
enabling .tcl pages
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: modload:
loading /Users/zoran/sf/naviserver/tests/../nssock/nssock.so
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nssock:
enable 3 spooler thread(s) for uploads >= 1025 bytes
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nssock:
enable 3 writer thread(s) for downloads >= 1025 bytes, bufsize=512 bytes
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain:
NaviServer/4.99.2 running
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nsmain:
security info: uid=1005, euid=1005, gid=101, egid=101
[02/Mar/2006:16:16:19][13224.41950208][-sched-] Notice: sched: starting
[02/Mar/2006:16:16:19][13224.2684415336][-main-] Notice: nssock:
listening on 127.0.0.1:8001
[02/Mar/2006:16:16:19][13224.41951232][-spooler2-] Notice: spooler2:
accepting connections
[02/Mar/2006:16:16:19][13224.41967104][-spooler1-] Notice: spooler1:
accepting connections
[02/Mar/2006:16:16:19][13224.41968128][-spooler0-] Notice: spooler0:
accepting connections
[02/Mar/2006:16:16:19][13224.41969152][-writer2-] Notice: writer2:
accepting connections
[02/Mar/2006:16:16:19][13224.41970176][-writer1-] Notice: writer1:
accepting connections
[02/Mar/2006:16:16:19][13224.41971200][-writer0-] Notice: writer0:
accepting connections
[02/Mar/2006:16:16:19][13224.41972224][-driver-] Notice: starting
[02/Mar/2006:16:16:19][13224.41972224][-driver-] Notice: driver:
accepting connections
Tests running in interp: /Users/zoran/sf/naviserver/nsd/nsd
Tests located in: /Users/zoran/sf/naviserver/tests
Tests running in: /Users/zoran/sf/naviserver/tests
Temporary files stored in /Users/zoran/sf/naviserver/tests
Test files sourced into current interpreter
Running tests that match: *
Skipping test files that match: l.*.test
Only running test files that match: *.test
Tests began at Thu Mar 02 16:16:20 CET 2006
encoding.test
[02/Mar/2006:16:16:20][13224.41973248][-conn:test:0] Notice:
encoding: loaded: iso8859-2
http.test
[02/Mar/2006:16:16:20][13224.41972224][-driver-] Error: Releasing
Socket; Bad Request (-11/0), FD = 27, Peer = 127.0.0.1:63732
[02/Mar/2006:16:16:20][13224.41969152][-writer2-] Notice: Writer:
closed fd=30, error=0/0, sent=2048
[02/Mar/2006:16:16:20][13224.41973248][-conn:test:0] Notice: Writer:
2: started fd=30: 2048 bytes: /2048bytes
[02/Mar/2006:16:16:20][13224.41972224][-driver-] Error: Releasing
Socket; Request-URI Too Long (-10/0), FD = 27, Peer = 127.0.0.1:63738
[02/Mar/2006:16:16:20][13224.41972224][-driver-] Error: Releasing
Socket; Bad Request (-11/0), FD = 27, Peer = 127.0.0.1:63739
[02/Mar/2006:16:16:20][13224.41972224][-driver-] Error: Releasing
Socket; Bad Request (-11/0), FD = 27, Peer = 127.0.0.1:63740
[02/Mar/2006:16:16:21][13224.2684415336][-main-] Warning: ---> about
to run http-4.5
[02/Mar/2006:16:16:21][13224.41972224][-driver-] Error: Releasing
Socket; Request Entity Too Large (-12/0), FD = 28, Peer =
127.0.0.1:63745
make: *** [test] Broken pipe