Poor web serving performance

Cal Henderson calh at yahoo-inc.com
Thu Jan 25 23:17:56 UTC 2007


Brad Fitzpatrick <brad at danga.com> wrote:
: What's your:
:
:    SERVER aio_threads = nnnn
:
: Set to in your config?
:
: And can you verify that the same number of perlbal child processes 
are
: hanging off the parent process?

SERVER aio_mode         = ioaio
SERVER aio_threads      = 30

i've tried with values from 2-50 and some higher ones too - all give 
the same result. for any number of aio threads, i can only find a 
single child processes - ps, pstree and top all just show the two 
processes (i'm using IO::AIO).

16201 pts/0    Sl+    0:00 /usr/local/bin/perl 
./perlbal --config=my.conf
16202 pts/0    S+     0:00 /usr/local/bin/perl 
./perlbal --config=my.conf


as far as i can see, IO::AIO::min_parallel(30) is being called 
sucessfully.

Linux::AIO wont pass the test suite so i haven't tried that. it fails 
the usual tests:

[calh at pc12 Linux-AIO-1.9]$ make test
PERL_DL_NONLAZY=1 /home/y/bin/perl5.8.6 "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_load......ok
t/01_stat......ok
t/02_read......ok
t/03_errors....# Failed test 1 in t/03_errors.t at line 21
#  t/03_errors.t line 21 is:     ok($_[0] < 0 && $! == ENOENT);
t/03_errors....ok 3/10# Failed test 7 in t/03_errors.t at line 40
#  t/03_errors.t line 40 is:     ok($! == ENOENT);
t/03_errors....ok 9/10# Failed test 10 in t/03_errors.t at line 49
#  t/03_errors.t line 49 is:     ok($! == EBADF);
t/03_errors....FAILED tests 1, 7, 10
        Failed 3/10 tests, 70.00% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/03_errors.t               10    3  30.00%  1 7 10
Failed 1/4 test scripts, 75.00% okay. 3/26 subtests failed, 88.46% 
okay.
make: *** [test_dynamic] Error 255


thanks,

--cal 



More information about the perlbal mailing list