Linux Hello World Benchmarks...

2000-12-11 Thread Joshua Chamas
Hey, I have automated a portable Hello World test suite, but its not CPAN ready, so if any would like to contribute, run, and comment on the sources, give me a holler I'll send them to you. What it does is fire up a lean apache on a high port with only the config necessary to run the

Re: mod_perl advocacy project resurrection

2000-12-11 Thread Matt Sergeant
On Sun, 10 Dec 2000, Jim Woodgate wrote: [EMAIL PROTECTED] writes: You can do the twostage server if you are short on memory, speed is important and usage of active content is relatively low. Setup a mod_proxy and stripped down apache for port 80 and mod_perl for port 8080 for

Re: mod_perl advocacy project resurrection

2000-12-11 Thread Gunther Birznieks
At 10:07 AM 12/11/2000 +, Matt Sergeant wrote: On Sun, 10 Dec 2000, Jim Woodgate wrote: [EMAIL PROTECTED] writes: You can do the twostage server if you are short on memory, speed is important and usage of active content is relatively low. Setup a mod_proxy and stripped down

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Gunther Birznieks
Is CGI Raw decoding the get/post yourself? Or using the Apache::args, Apache::Request::param mechanism? At 02:13 AM 12/11/2000 -0800, Joshua Chamas wrote: Hey, I have automated a portable Hello World test suite, but its not CPAN ready, so if any would like to contribute, run, and comment on

Re: mod_perl advocacy project resurrection

2000-12-11 Thread Matt Sergeant
On Mon, 11 Dec 2000, Gunther Birznieks wrote: Except that won't scale beyond 1 server... But that's the same thing with IPC shared mem modules yet people still use them on mod_perl for various tricks. It's still easier in Java to do that sort of sharing -- at least it is for me. As always,

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Joshua Chamas
Gunther Birznieks wrote: Is CGI Raw decoding the get/post yourself? Or using the Apache::args, Apache::Request::param mechanism? In the hello world scripts, there is no get/post processing as part of the benchmark. Here's the code that's run: http://www.chamas.com/bench/#perlrawcgi

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Matt Sergeant
On Mon, 11 Dec 2000, Joshua Chamas wrote: Lastly, I was unable to get AxKit to run without segfaulting ... http://axkit.org/faq.xml Either you're running PHP on that server, or you have an Apache with expat included. Do "nm /path/to/apache/bin/httpd | grep -i XML" to find out if the latter is

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Gunther Birznieks
Then it seems odd that there is such a huge discrepency between CGI.pm and no CGI.pm. If you preload CGI.pm in startup.pl does the difference go away? At 02:56 AM 12/11/2000 -0800, Joshua Chamas wrote: Gunther Birznieks wrote: Is CGI Raw decoding the get/post yourself? Or using the

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Joshua Chamas
Gunther Birznieks wrote: Then it seems odd that there is such a huge discrepency between CGI.pm and no CGI.pm. If you preload CGI.pm in startup.pl does the difference go away? I did preload CGI.pm. I'll send you the hello world suite separately since you seem curious. Note that at 500

Re: Script Debugging Modules?

2000-12-11 Thread Daniel Chetlin
On Sun, Dec 10, 2000 at 07:26:38PM -0800, Bill Moseley wrote: Just how smart is the compiler? [snip] use constant DEBUG_TEMPLATE = 1; use constant DEBUG_SESSION = 2; use constant DEBUG_REQUEST = 4; use constant DEBUG_QUERY = 8; use constant

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Joshua Chamas
"Alexander Farber (EED)" wrote: Hi Joshua, you sort the table at http://www.chamas.com/bench/ by Hits/s, but the ModPerl Handler was tested on PIII-500 x 2 and the Java thingies below - only PII-266. Is it an intended joke or do I misunderstand something? The first page is marked

Upgraded to perl 5.6.0, ImageMagick now gives boot_libapreq error

2000-12-11 Thread Chris
I have just done a complete install of RedHat v7.0 which includes Perl 5.6.0. Image Magick was running fine on my old system, but now when I attempt to install it, it gives the following error message when attempting to do the PerlMagick install: ./perlmain.o: In function: 'xs_init' :

Re: File name conversion

2000-12-11 Thread darren chamberlain
Hi Aaron, Check out the section titled "Using a Translation Handler to Change the URI" in Chapter 7 of the Eagle book, at http://www.modperl.com/book/chapters/ch7.html#Using_a_Translation_Handler_to_C. Aaron Johnson ([EMAIL PROTECTED]) said something to this effect: Is there a module that

Re: Naming the mod_perl process $0

2000-12-11 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: Hello, I have a question that may have a simple answer. In order to satisfy some broader system dependencies I need to define my mod_perl process name. By default $0 seems to get set to "/dev/null". When I try to modify $0 in the Apache startup script or

the list's digest is working now

2000-12-11 Thread Stas Bekman
Thanks to Brian Behlendorf and Jim Winstead the [EMAIL PROTECTED] is back to normal operation. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide

Re: Naming the mod_perl process $0

2000-12-11 Thread Stas Bekman
On Mon, 11 Dec 2000, Joshua Chamas wrote: [EMAIL PROTECTED] wrote: Hello, I have a question that may have a simple answer. In order to satisfy some broader system dependencies I need to define my mod_perl process name. By default $0 seems to get set to "/dev/null". When I try to

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Joe Schaefer
Joshua Chamas [EMAIL PROTECTED] writes: RESULTS: [hello]# ./bench.pl -time=60 ... Test Name Test FileHits/sec Total Hits Total Time Total Bytes HTML Static

Upgraded to perl 5.6.0, ImageMagick now gives boot_libapreq error

2000-12-11 Thread Chris Allen
I have just done a complete install of RedHat v7.0 which includes Perl 5.6.0. Image Magick was running fine on my old system, but now when I attempt to install it, it gives the following error message when attempting to do the PerlMagick install: ./perlmain.o: In function: 'xs_init' :

Still bugs in Apache::Dispatch with .htaccess

2000-12-11 Thread Matt Sergeant
Sorry Geoff, OK, the bug now is that the _translate_uri sub expects you to be working with Location rather than .htaccess. It does this to do s/location/prefix/, which is why it doesn't work with .htaccess. Now first of all, there's a bit of a security risk in there - you're doing

RE: Still bugs in Apache::Dispatch with .htaccess

2000-12-11 Thread Geoffrey Young
-Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 8:27 AM To: [EMAIL PROTECTED] Subject: Still bugs in Apache::Dispatch with .htaccess Sorry Geoff, OK, the bug now is that the _translate_uri sub expects you to be working

[DIGEST] mod_perl digest 12/3/2000

2000-12-11 Thread Geoffrey Young
-- mod_perl digest December 3, 2000 - December 9, 2000 -- Recent happenings in the mod_perl world... Features

Re: sharing tied dbm fd

2000-12-11 Thread Robin Berjon
At 22:11 10/12/2000 +0100, Stas Bekman wrote: Am I correct to say that it's wrong to tie the dbm file in startup.pl and than share it across the children? [snip] I think that unexpected things may happen since %My::Tied::btree has only one file descriptor, and different processes accessing the

Re: mod_perl in chroot environment

2000-12-11 Thread Vivek Khera
"SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Do you think I should include the scenario of making Apache run in SB chroot enviroment in the guide? That require quite a bit of stuff be crammed into the chroot jail. You'll need an entire perl install there, wouldn't you? It might make sense

Re: mod_perl in chroot environment

2000-12-11 Thread Stas Bekman
"SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Do you think I should include the scenario of making Apache run in SB chroot enviroment in the guide? That require quite a bit of stuff be crammed into the chroot jail. You'll need an entire perl install there, wouldn't you? It might

Re: sharing tied dbm fd

2000-12-11 Thread Stas Bekman
At 22:11 10/12/2000 +0100, Stas Bekman wrote: Am I correct to say that it's wrong to tie the dbm file in startup.pl and than share it across the children? [snip] I think that unexpected things may happen since %My::Tied::btree has only one file descriptor, and different processes

Re: sharing tied dbm fd

2000-12-11 Thread barries
On Mon, Dec 11, 2000 at 05:08:29PM +0100, Stas Bekman wrote: At 22:11 10/12/2000 +0100, Stas Bekman wrote: I don't know whether or not you're correct as I haven't tested this (which I guess is the only way to really know :). I don't much about fd's either, I tested sharing fds beteen

Re: mod_perl advocacy project resurrection

2000-12-11 Thread Jim Woodgate
Matt Sergeant writes: Except that won't scale beyond 1 server... If I needed to go beyond one server in java, I would probably look at something like Objectspace Voyager, which is the easiest to use orb I've ever seen. Is there anything similar in perl? I'd love to try it out! -- [EMAIL

ORBs

2000-12-11 Thread Matt Sergeant
On Mon, 11 Dec 2000, Jim Woodgate wrote: Matt Sergeant writes: Except that won't scale beyond 1 server... If I needed to go beyond one server in java, I would probably look at something like Objectspace Voyager, which is the easiest to use orb I've ever seen. Is there anything

RE: Still bugs in Apache::Dispatch with .htaccess

2000-12-11 Thread Geoffrey Young
-Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 11:57 AM To: Geoffrey Young Subject: RE: Still bugs in Apache::Dispatch with .htaccess On Mon, 11 Dec 2000, Geoffrey Young wrote: I've started poking around... in

RE: Still bugs in Apache::Dispatch with .htaccess

2000-12-11 Thread Matt Sergeant
On Mon, 11 Dec 2000, Geoffrey Young wrote: OK, so how about a new directive: DispatchBase. If that is set, remove that from $r-filename, and use that as the base path. Otherwise use the $r-location method. yeah, I thought about that too - it would involve less overhead than scanning

Apache / ModPerl and IPv6

2000-12-11 Thread Jimi Thompson
I know this is off topic, but does anyone know if the config files in Apache support IPv6 addresses? -- Jimi Thompson Web Master L3 communications "It's the same thing we do every night, Pinky." begin:vcard n:Thompson;Jimi tel;pager:877-309-2784 tel;cell:817-980-7863 tel;work:817-619-3612

Re: mod_perl in chroot environment

2000-12-11 Thread Matthew Byng-Maddick
On Sun, 10 Dec 2000, Gunther Birznieks wrote: At 03:33 PM 12/10/00 +0100, Stas Bekman wrote: Do you think I should include the scenario of making Apache run in chroot enviroment in the guide? I think chroot Apache is important especially for dynamic services. Definitely. For example,

open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
Everyone: Here's something that myself and my sysadmin guy have been working on for a bit: opendir appears to be broken for us on a new Apache/mod_perl installation. We've tried checking out the mailing list archives but nothing jumpped out at us along these lines. Any ideas from anyone?

RE: Still bugs in Apache::Dispatch with .htaccess

2000-12-11 Thread Geoffrey Young
-Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Monday, December 11, 2000 1:27 PM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: RE: Still bugs in Apache::Dispatch with .htaccess I'd make it as simple as possible. Make it DispatchRoot (akin to

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
On Mon, 11 Dec 2000, Richard Dice wrote: Everyone: Here's something that myself and my sysadmin guy have been working on for a bit: opendir appears to be broken for us on a new Apache/mod_perl installation. Rich, please send in the relevant parts of the strace output, or may be you will

Apache::asp

2000-12-11 Thread Eran Keshet
hi, im trying 2 call the "handler" function in Apache::asp from a perl module (in apache with mode_perl), i need 2 pass parameters 2 that function like the filename, and i tried 2 modify the handler function accordingly, but i keep getting errors like " [client 10.10.10.19] need AuthName: /Test"

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
Have you looked at the permissions and verified that the uid of the user running apache has permissions to list the contents of the directory? It's a good suggestion, but we've been all up and down this one over here. (For instance, if it didn't have perms, then the opendir/readdir commands

'why mod_perl' rebate anybody?

2000-12-11 Thread Stas Bekman
As it was said before, successfull projects are self-fueled once they get to the press. Look at this article dated Nov 7, 2000. http://www.WebDevelopersJournal.com/articles/why_php.html The article starts with what seems to be a hard evidence: "According to NetCraft surveys, PHP is now the most

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
On Mon, 11 Dec 2000, Richard Dice wrote: Have you looked at the permissions and verified that the uid of the user running apache has permissions to list the contents of the directory? It's a good suggestion, but we've been all up and down this one over here. (For instance, if it didn't

Re: File name conversion

2000-12-11 Thread Aaron Johnson
That is just what I was looking for. I just modified the $r-filename and left $r-uri untouched. 10 lines of code and I have it doing exactly what I needed and Apache::ASP reads the correct file. I still have the $ENV{REQUEST_URI} to check for the orginal name requested, there by allow me to set

Re: Linux Hello World Benchmarks...

2000-12-11 Thread Joe Schaefer
Joshua Chamas [EMAIL PROTECTED] writes: Joe Schaefer wrote: IME, simple mod_perl handlers typically run around 50% as fast as HTML static pages. Your hello world benchmark seems to be slightly misleading in this respect, since the content-length is small relative to the header size.

Re: Apache::asp

2000-12-11 Thread Joshua Chamas
Eran Keshet wrote: hi, im trying 2 call the "handler" function in Apache::asp from a perl module (in apache with mode_perl), i need 2 pass parameters 2 that function like the filename, and i tried 2 modify the handler function accordingly, but i keep getting errors like " [client

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice
It shouldn't be gigabytes -- you want to strace only special events like open and read, and you want to attach to the process only before running the script (run under -X) -- so you should have just a few lines!!! % strace -p PID -e trace=open,read I was talking about ltrace, not strace,

Re: mod_perl training (was Re: Certification)

2000-12-11 Thread J. J. Horner
On Sun, Dec 10, 2000 at 06:13:13PM +0800, Gunther Birznieks wrote: It sounds to me like you have hit the nail on the head. Perhaps what is needed in terms of recouping costs for a mod_perl hands-on development course and/or online course is the open source/collaborative approach. This

Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread tom
Er. I think you mean 'rebuttal'. I don't know what kind of rebate anyone's expecting from mod_perl, since it's free. In fact, more people might be expecting to pay for it ;-) Tom

[OT] Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Aaron Johnson
Actually in some context rebate will do. One meaning of rebate is: Middle English rabet, from Old French rabat: recess in a wall, act of beating down, from rabattre, to beat down again; Is rebate in the sense of the word that the amount is reduced an American thing? Aaron Johnson [EMAIL

Re: sharing tied dbm fd

2000-12-11 Thread Robin Berjon
At 11:55 11/12/2000 -0500, barries wrote: I tested sharing fds beteen parent child, but not dbms, and it breaks as expected. sysseek() in one process alters the internals of the fd, tripping up the other process if it happens between seek and read. I guess that's pretty much to be expected.

Re: [OT] Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Robin Berjon
At 15:58 11/12/2000 -0500, Aaron Johnson wrote: Actually in some context rebate will do. One meaning of rebate is: Middle English rabet, from Old French rabat: recess in a wall, act of beating down, from rabattre, to beat down again; Is rebate in the sense of the word that the amount is reduced

Re: [OT] Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread tom
Is rebate in the sense of the word that the amount is reduced an American thing? Hmmm. I hadn't thought about it, but come to think of it, I think it is used more extensively in America. The sense it has here is more of a partial refund, as in "Buy this mouse and send in the manufacturer's

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman
On Mon, 11 Dec 2000, Richard Dice wrote: It shouldn't be gigabytes -- you want to strace only special events like open and read, and you want to attach to the process only before running the script (run under -X) -- so you should have just a few lines!!! % strace -p PID -e

Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Stas Bekman
Er. I think you mean 'rebuttal'. I don't know what kind of rebate anyone's expecting from mod_perl, since it's free. In fact, more people might be expecting to pay for it ;-) So you've know my secret now... my English sucks... please don't tell anybody... Now you start wondering how he [me]

Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Jimi Thompson
Count me in! I'll help! Stas Bekman wrote: Er. I think you mean 'rebuttal'. I don't know what kind of rebate anyone's expecting from mod_perl, since it's free. In fact, more people might be expecting to pay for it ;-) So you've know my secret now... my English sucks... please don't

PerlChildInitHandler not being called

2000-12-11 Thread Paul J. Lucas
I looked int he archives for this problem and, while mentioned, not definitive solution was apparantly found. I did notice the handler get called once, but only once: total server shutowns and restarts don't make it get called. I'm using Apache 1.3.12,

Re: mod_perl class

2000-12-11 Thread Richard Routh
OK, J. J. Horner writes: I would be willing to donate my time to write and initially test the exercises to the slides that are taught for the days. If a couple people were to donate their time to writing the slides based on an outline produced by Stas and Randal. I will write the

Re: mod_perl in chroot environment

2000-12-11 Thread Gunther Birznieks
At 10:51 AM 12/11/00 -0500, Vivek Khera wrote: "SB" == Stas Bekman [EMAIL PROTECTED] writes: SB Do you think I should include the scenario of making Apache run in SB chroot enviroment in the guide? That require quite a bit of stuff be crammed into the chroot jail. You'll need an entire perl

Re: mod_perl in chroot environment

2000-12-11 Thread Gunther Birznieks
I've snipped some stuff out of both sides. At 09:58 AM 12/11/00 +, Matthew Byng-Maddick wrote: On Sun, 10 Dec 2000, Gunther Birznieks wrote: At 03:33 PM 12/10/00 +0100, Stas Bekman wrote: For example, perhaps the mod_perl server and the HTML/images server should be separately chrooted

Re: [OT] Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Gunther Birznieks
At 01:23 PM 12/11/00 -0800, [EMAIL PROTECTED] wrote: Is rebate in the sense of the word that the amount is reduced an American thing? Hmmm. I hadn't thought about it, but come to think of it, I think it is used more extensively in America. The sense it has here is more of a partial refund,

[OT] Re: 'why mod_perl' rebate anybody?

2000-12-11 Thread Paul
A linguistics discussion on the mod_perl list. Larry would be proud. =o) Je pense, donc je sui! lol! --- [EMAIL PROTECTED] wrote: Is rebate in the sense of the word that the amount is reduced an American thing? Hmmm. I hadn't thought about it, but come to think of it, I think it is used

Linux Hello World: TT Optimized...

2000-12-11 Thread Joshua Chamas
Hey, Updated results from the other day with the Template Toolkit benchmark properly optimized, thanks Perrin! The reference for these numbers is at: http://www.chamas.com/bench If you would like the hello test suite, please email me separately. ]# ./bench.pl -time=60 Test Name

Re: Linux Hello World: TT Optimized...

2000-12-11 Thread newsreader
Could you please explain the differences between CGI Raw and CGI.pm? I'm using oo method of CGI. Thanks On Mon, Dec 11, 2000 at 07:56:03PM -0800, Joshua Chamas wrote: Hey, Updated results from the other day with the Template Toolkit benchmark properly optimized, thanks Perrin!

Re: Linux Hello World: TT Optimized...

2000-12-11 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: Could you please explain the differences between CGI Raw and CGI.pm? I'm using oo method of CGI. Thanks On Mon, Dec 11, 2000 at 07:56:03PM -0800, Joshua Chamas wrote: Hey, Updated results from the other day with the Template Toolkit benchmark properly

Re: Linux Hello World: TT Optimized...

2000-12-11 Thread Jeremy Howard
Joshua Chamas wrote: If you are using CGI.pm object methods, I would worry about calling all those methods to build your HTML and if you are performance minded, I would use them frugally. IIRC, CGI.pm is actually slower to run the functional syntax than the object syntax. This is because

RE: ORBs

2000-12-11 Thread Henrik Tougaard
Matt Sergeant writes: CORBA::ORBit is very simple to use. I'd be very interested in hearing from anyone who has used this in a mod_perl project. We are currently using CORBA and mod_perl for scaleable access to databases. The setup is: Web-server: Apache::ASP and client-side COPE.

Apache::Session benchmarks

2000-12-11 Thread Ed Park
FYI-- here are some Apache::Session benchmark results. As with all benchmarks, this may not be applicable to you. Basically, though, the results show that you really ought to use a database to back your session stores if you run a high-volume site. Benchmark: This benchmark measures the time