LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-16-2008, 08:52 AM   #1
phaz0r
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Lighttpd performance problem + RAID performance problem in a high load site


Hi!

Im running a Music site with flash players for play MP3 files. We have more or less 250.000 visits per day with 5-10 req/s and 4 servers (Mysql, Web, Store, Backup).

Web server specs:
Xeon Dual Core 3065
4 GB RAM DDR2
2x146 GB SAS 15.000 RPM
Linux Centos 5.2 64 Bits
Lighttpd 1.4.20 (RPM)
PHP 5.1.6
Access to MP3 files via NFS (Gigabit Ethernet link)
Load average: 4.5 - 6 (Some times 120 :x)

Store server:
Xeon E5410
8 GB RAM DDR2
2x146 GB SAS 15.000 RPM (RAID 1) (SYSTEM)
6X1000 GB SATA 2 (RAID 6) (MP3 store)
Linux Centos 5.2 64 Bits
NFS V4 daemon
CPU Usage: 1-5 %
Load average: 6-7
RAID Controller: ADAPTEC SAS RAID 3805 8 Ports PCI-EXPRESS 128 Mbit DDR2 (connected SAS and SATA disks)

Lighttpd Configuration:
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_access",
"mod_fastcgi",
"mod_accesslog" )
server.document-root = "/var/www/website/"
server.max-connections = 7000
server.max-fds = 21000
server.max-worker = 30
#server.max-request-size = 30000
server.max-write-idle = 7200
server.max-read-idle = 10
server.max-keep-alive-requests = 0
server.max-keep-alive-idle = 0
#server.use-noatime = "enable"
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"

fastcgi.server = ( ".php" =>
( "myip" =>
(
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 10,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "5000"
)
))
)

I got a lot of this errors and php-cgi zombie process:

2008-11-12 19:54:48: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 9
2008-11-12 19:54:48: (mod_fastcgi.c.2709) child died somehow, waitpid failed: 10

Connections at this moment:

# netstat -an |grep :80 |wc -l
2409
# netstat -an |grep :80 |grep TIME_WAIT |wc -l
1102

Could be the raid causing troubles mixing disks SATA/SAS and with a RAID6 implementation (writing slow) in my store server?
Is linux-sendfile (rpm default backend) causing troubles with NFS?

And the most important question: is my configuration correct?

I appreciate any help.

Thanks!
 
  


Reply

Tags
lighttpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
High Performance Computing humbletech99 Linux - General 9 11-13-2008 01:29 PM
LXer: Performance Technologies Announces Availability of AMC121 High-Performance Comp LXer Syndicated Linux News 0 09-18-2007 10:30 AM
LXer: Promise Technology Introduces High-Performance SCSI-to-SATA RAID 6 Storage Systems LXer Syndicated Linux News 0 09-22-2006 07:03 PM
Disk performance causing high Load Avg? craigeb78 Linux - Hardware 6 03-09-2006 04:47 PM
high-performance laptop memonvil Linux - Laptop and Netbook 7 03-02-2005 07:41 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration