Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: Fast search!

Quote Reply
Re: Fast search! In reply to
First, as I said, make sure you have enough RAM. On a Windows machine, 1gb is not unreasonable. On Unix, 256 meg is good for Sparc, 512 is much, much better, especially for Intel. You'll probably see performance increases on the Intel platform up through 1GB if your mother board/bios handles it properly. 512 on a Sparc was almost unheard of a few years ago <G>... but if you think life was good with 128 meg..... :)

Then, as Alex said, move to mod_perl first. (or speedy cgi). That will give a performance increase with the currently available resources.

The caveat is, that apache_mod_perl is _BIG_ its an easy 3-4x as big as apache without mod_perl. That means, you need more RAM, or you start to lose your benefits in using disc cache memory. Figure at least 4 meg of ~RAM in Unix for Apache/mod_perl per process. 25 processes is 100 meg of RAM, otherwise you are swapping. Add a 16 meg MySQL proces and the Unix kernal, and 128 meg of ram starts to look pretty small. Of course, it _will_ work. It will work pretty well. It will just work better with more RAM.

Once you do that, you need to see where your real bottlenecks are. You might need some system management tools or even an analyst to look at your traffic. What you need to do at that point "load balance" between two or more servers, such that each server is doing a fair share of work, without duplicating stuff. For instance, putting the database on one machine, and optimizing that for database serving, having a separate network connection to that machine, and using the front end machine for web serving might be good. Then, again, maybe running fat and thin apache versions (with and without mod_perl) may be better -- depending on what your site is doing.

There is no one answer, and load-balancing and networking is an art, more than a science.

But, first check your RAM and CPU, then move to mod_perl.

The point I'm making is make sure your hardware is up to the job, before you start to try to squeeze every drop of performance out of it. Sometimes, that is a losing battle. After that you'll need to figure out what is taking the most resources, and how best to break up the workload.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Subject Author Views Date
Thread Fast search! Janio 8284 Jan 8, 2001, 11:19 AM
Thread Re: Faster search!
Alex 8069 Jan 8, 2001, 11:44 AM
Thread Re: Faster search!
pugdog 8165 Jan 8, 2001, 1:30 PM
Thread Re: Faster search!
Alex 8105 Jan 8, 2001, 1:33 PM
Post Re: Faster search!
padders 8035 Jan 8, 2001, 1:51 PM
Thread Re: Faster search!
Janio 8044 Jan 9, 2001, 4:01 AM
Thread Re: Faster search!
padders 8049 Jan 9, 2001, 6:43 AM
Thread Re: Faster search!
Janio 8001 Jan 9, 2001, 9:26 AM
Post Re: Faster search!
Alex 7960 Jan 9, 2001, 1:29 PM
Thread Re: Faster search!
Alex 8020 Jan 9, 2001, 1:28 PM
Thread Re: Faster search!
Janio 8002 Jan 9, 2001, 2:09 PM
Thread Re: Faster search!
Alex 7963 Jan 9, 2001, 2:36 PM
Thread Re: Faster search!
pugdog 7873 Jan 11, 2001, 10:29 AM
Thread Re: Faster search! DATABASE
Janio 7856 Jan 11, 2001, 12:48 PM
Thread Re: Faster search! DATABASE
ridesworld 7885 Jan 11, 2001, 1:49 PM
Post Re: Faster search! DATABASE
Janio 7812 Jan 12, 2001, 4:33 AM
Thread Re: Faster search!
WilHatfield 7902 Jan 11, 2001, 10:16 AM
Post Re: Faster search!
Alex 7836 Jan 11, 2001, 2:09 PM
Thread Re: Fast search!
Janio 7788 Jan 23, 2001, 2:25 AM
Thread Re: Fast search!
pugdog 7847 Jan 23, 2001, 2:31 AM
Thread Re: Fast search!
Janio 7839 Jan 23, 2001, 2:37 AM
Thread Re: Fast search!
pugdog 7828 Jan 23, 2001, 2:50 AM
Thread Re: Fast search!
Janio 7821 Jan 23, 2001, 3:13 AM
Post Re: Fast search!
Alex 7765 Jan 23, 2001, 12:36 PM
Post Re: Fast search!
pugdog 7733 Jan 23, 2001, 12:53 PM
Thread Re: Fast search!
AlexJ 2885 Jan 23, 2001, 3:07 PM
Thread Re: Fast search!
Janio 2903 Jan 23, 2001, 3:50 PM
Thread Re: Fast search!
pugdog 2898 Jan 23, 2001, 4:59 PM
Thread Re: [pugdog] Fast search!
revs 2662 Feb 22, 2002, 2:38 PM
Thread Re: [revs] Fast search!
Paul 2707 Feb 23, 2002, 1:58 AM
Thread Re: [RedRum] Fast search!
revs 2658 Feb 23, 2002, 7:50 AM
Thread Re: [revs] Fast search!
fulcan 2657 Feb 26, 2002, 6:34 PM
Post Re: [fulcan] Fast search!
Alex 2631 Feb 26, 2002, 6:56 PM