The longer the day goes it seems to get slower. Students on the outside of the network on the internet complain more than the students behind the firewall on the inside network do.
Base Unit:
PE R515 with up to 8 Hot Swap Hard Drives, LED and AMD Opteron 42XX Procs (225-2372)
Processor:
AMD Opteron 4162EE, 6C 1.7GHz, 2M L2/6M L3, 1333Mhz Max Mem (317-5456)
AMD Opteron 4162EE, 6C 1.7GHz, 2M L2/6M L3, 1333Mhz Max Mem (317-5465)
Memory:
32GB Memory(8x4GB),1333MHz Dual Rank LV UDIMM for 2 Procs,Sparing (317-5503)
Our setup is like this: we have 2 R515's with 32 gig of RAM each
1 Tera of HD in a RAID 5 configuration.
The Servers are configured with ESXi 4.01 and one server with our web on it and the other is the db. Both servers are running Cent OS 5.7, with Zend php and MySQL. We have a Vcenter server running another box.
Running th preformanc.php file gave me these numbers
Disable the record cache (Site Admin -> Server -> Performance) for realistic results!
Processor performance
Function calls 342000 344000
Regular expression replaces over 1KB of text 11700 11700
Disk performance 16KB files read from disk (cache) 32900 34000 16KB files written to disk (cache) 12100 11400
Database performance
Get_record calls on the course table 1810 1800
Insert_record calls on the course table 1260 1250
Update_record calls on the course table 1360 2420
Maximum concurrent users (approx): 112
Mytop on Db
MySQL on localhost (5.5.20) up 19+18:18:22 [10:23:38]
Queries: 9.0 qps: 0 Slow: 0.0 Se/In/Up/De(%): 00/00/00/00
qps now: 0 Slow qps: 0.0 Threads: 2 ( 1/ 0) 00/00/00/00
Key Efficiency: 100.0% Bps in/out: 0.0/ 0.0 Now in/out: 8.4/ 1.7k
Id User Host/IP DB Time Cmd Query or State
-- ---- ------- -- ---- --- ----------
1005524 root localhost moodle 0 Query show full processlist
1005625 moodle inet22a moodle 0 Sleep
Top on DB
top - 10:25:32 up 19 days, 18:21, 2 users, load average: 0.11, 0.07, 0.04
Tasks: 167 total, 1 running, 165 sleeping, 1 stopped, 0 zombie
Cpu(s): 1.2%us, 0.5%sy, 0.0%ni, 97.8%id, 0.1%wa, 0.1%hi, 0.2%si, 0.0%st
Mem: 24685404k total, 3926156k used, 20759248k free, 270620k buffers
Swap: 12025848k total, 0k used, 12025848k free, 2588704k cached
Unknown command - try 'h' for help
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4072 mysql 15 0 591m 195m 6004 S 5.3 0.8 218:49.13 mysqld
4244 root 15 0 60596 20m 6208 S 1.0 0.1 5:31.68 Xvnc
13015 root 15 0 283m 16m 8796 S 0.7 0.1 0:02.99 gnome-terminal
3573 dbus 15 0 21640 1292 732 S 0.3 0.0 1:16.62 dbus-daemon
22957 root 15 0 12760 1148 828 R 0.3 0.0 0:00.15 top
1 root 15 0 10368 688 572 S 0.0 0.0 0:02.18 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.61 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.35 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.50 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.06 ksoftirqd/1
6 root RT -5 0 0 0 S 0.0 0.0 0:00.42 migration/2
7 root 34 19 0 0 0 S 0.0 0.0 0:00.37 ksoftirqd/2
8 root RT -5 0 0 0 S 0.0 0.0 0:00.45 migration/3
9 root 34 19 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/3
10 root 10 -5 0 0 0 S 0.0 0.0 1:12.45 events/0
11 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 events/1
12 root 10 -5 0 0 0 S 0.0 0.0 0:00.08 events/2
Top on the web server
top - 10:28:46 up 12 days, 2:20, 2 users, load average: 0.42, 0.75, 0.76
Tasks: 190 total, 1 running, 189 sleeping, 0 stopped, 0 zombie
Cpu(s): 16.2%us, 1.0%sy, 0.0%ni, 82.2%id, 0.0%wa, 0.1%hi, 0.5%si, 0.0%st
Mem: 23651168k total, 5446960k used, 18204208k free, 402648k buffers
Swap: 12025848k total, 0k used, 12025848k free, 3545108k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14798 apache 16 0 1669m 87m 50m S 30.6 0.4 0:26.83 httpd
14993 apache 15 0 1670m 86m 48m S 26.6 0.4 0:14.43 httpd
4072 root 15 0 56568 16m 5292 S 1.0 0.1 6:06.19 Xvnc
14751 apache 15 0 1669m 90m 52m S 1.0 0.4 0:51.61 httpd
14845 apache 15 0 1668m 85m 48m S 1.0 0.4 0:22.49 httpd
14924 apache 15 0 1668m 83m 48m S 1.0 0.4 0:22.97 httpd
14951 apache 15 0 1667m 83m 46m S 1.0 0.4 0:21.36 httpd
14978 apache 15 0 1668m 82m 46m S 1.0 0.4 0:15.41 httpd
15044 apache 15 0 1667m 77m 42m S 1.0 0.3 0:05.90 httpd
15104 apache 15 0 1654m 57m 31m S 1.0 0.3 0:01.33 httpd
481 root 15 0 0 0 0 S 0.7 0.0 3:46.01 pdflush
14442 root 15 0 263m 15m 8484 S 0.7 0.1 0:00.72 gnome-terminal
14878 apache 15 0 1668m 85m 49m S 0.7 0.4 0:31.61 httpd
14881 apache 15 0 1669m 84m 48m S 0.7 0.4 0:20.16 httpd
14936 apache 15 0 1669m 86m 50m S 0.3 0.4 0:14.63 httpd
14995 apache 15 0 1667m 85m 49m S 0.3 0.4 0:18.24 httpd
15008 apache 15 0 1667m 82m 46m S 0.3 0.4 0:13.72 httpd
15009 apache 15 0 1668m 84m 48m S 0.3 0.4 0:10.05 httpd
1 root 15 0 10368 684 572 S 0.0 0.0 0:03.57 init
2 root RT -5 0 0 0 S 0.0 0.0 0:01.10 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.24 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:01.01 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.14 ksoftirqd/1
6 root RT -5 0 0 0 S 0.0 0.0 0:00.80 migration/2
7 root 34 19 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/2
8 root RT -5 0 0 0 S 0.0 0.0 0:00.84 migration/3
Here is my configuration of the eAccelerator.ini file on my web sever
Here is the php info for eAccelerator print out and below is the ini file from the server
Here is my configuration of the eAccelerator.ini file on my web sever
##################################################################### # ############################ ;
You must uncomment one (and only
>> one) line from the following to load ; eAccelerator extension.
>> extension="eaccelerator.so"
>> ;zend_extension="/usr/lib/php/modules/eaccelerator.so"
>> ;zend_extension_ts="/usr/lib/php/modules/eaccelerator.so"
>>
>> ;extension="eaccelerator.dll"
>> ;zend_extension_ts="c:\php4\eaccelerator.dll"
>> ;zend_extension="c:\php4\eaccelerator.dll"
>>
>> ; The amount of shared memory (in megabytes) that eAccelerator will use.
>> ; "0" means OS default. Default value is "0".
>> eaccelerator.shm_size = "1024"
>>
>> ; The directory that is used for disk cache. eAccelerator stores
>> precompiled ; code, session data, content and user entries here. The
>> same data can be ; stored in shared memory also (for more quick
>> access). Default value is ; "/var/cache/php-eaccelerator".
>> eaccelerator.cache_dir = "/var/cache/php-eaccelerator"
>>
>> ; Enables or disables eAccelerator. Should be "1" for enabling or ;
>> "0" for disabling. Default value is "1".
>> eaccelerator.enable = "1"
>>
>> ; Enables or disables internal peephole optimizer which may speed up
>> code ; execution. Should be "1" for enabling or "0" for disabling.
>> ; Default value is "1".
>> eaccelerator.optimizer = "1"
>>
>> ; Enables or disables debug logging. Setting this to 1 will print
>> information ; to the log file about the cach hits of a file.
>> eaccelerator.debug = 0
>>
>> ; Set the log file for eaccelerator. When this option isn't set then
>> the data ; will be logged to stderr eaccelerator.log_file =
>> "/var/log/httpd/eaccelerator_log"
>>
>> ; A string that's prepended to all keys. This allows two applications
>> that use the ; same key names to run on the same host by setting this
>> in .htaccess or in the main ; configuration file for the whole webserver.
>> eaccelerator.name_space = ""
>>
>> ; Enables or disables PHP file modification checking. Should be "1"
>> ; for enabling or "0" for disabling. You should set it to "1" if you
>> want ; to recompile PHP files after modification. Default value is "1".
>> eaccelerator.check_mtime = "1"
>>
>> ; Determine which PHP files must be cached. You may specify the
>> number of ; patterns (for example "*.php *.phtml") which specifies to
>> cache or ; not to cache. If pattern starts with the character "!", it
>> means to ignore ; files which are matched by the following pattern.
>> Default value is "" that ; means - all PHP scripts will be cached.
>> eaccelerator.filter = ""
>>
>> ; When eAccelerator fails to get shared memory for new script it
>> removes ; all scripts which were not accessed at last "shm_ttl"
>> seconds from shared ; memory. Default value is "0" that means - don't
>> remove any files from ; shared memory.
>> eaccelerator.shm_ttl = "60"
>>
>> ; When eAccelerator fails to get shared memory for new script it
>> tries to ; remove old script if the previous try was made more then "shm_prune_period"
>> ; seconds ago. Default value is "0" that means - don't try to remove
>> any ; files from shared memory.
>> eaccelerator.shm_prune_period = "7200"
>>
>> ; Enables or disables caching of compiled scripts on disk. It has no
>> effect ; on session data and content caching.
>> ; Default value is "0" that means - use disk and shared memory for caching.
>> eaccelerator.shm_only = "0"
>>
>> ; The script paths that are allowed to get admin information and do
>> admin ; controls eaccelerator.allowed_admin_path = ""
>> ;sets the content to compress before saving it to memory ;
>> eaccelerator.compress = "1"
>> ;Sets the compress level
>> ;
>> eaccelerator.compress_level = "9"
|