Xcache Optimization Advice....

Gene Steinberg

Well-known member
OK, here's the setup:

cPanel dedicated server with Apache 2.2.23, MySql 5.5.30-cli, PHP 5.4.11. Using DSO with mod_ruid2. Server has 24GB, dual quad-core E5540, multi-terabyte hard drives.

Using Xcache 2.0.1 (cPanel will offer upgrade to 3.0.1 in near future).

Major scripts are XenForo on three domains plus WordPress with xcache object cache plugin. All latest versions.

Here are my current settings:

Code:
xcache.admin.enable_auth    On    On
xcache.cacher    On    On
xcache.coredump_directory    no value    no value
xcache.count    16    16
xcache.experimental    Off    Off
xcache.gc_interval    0    0
xcache.mmap_path    /dev/zero    /dev/zero
xcache.readonly_protection    Off    Off
xcache.shm_scheme    mmap    mmap
xcache.size    256M    256M
xcache.slots    8K    8K
xcache.stat    On    On
xcache.test    Off    Off
xcache.ttl    14400    14400
xcache.var_count    16    16
xcache.var_gc_interval    300    300
xcache.var_maxttl    14400    14400
xcache.var_size    128M    128M
xcache.var_slots    8K    8K
xcache.var_ttl    14400    14400

Can I have suggestions for changes/improvements?

Thank you.
 
Don't use Cpanels install and manually install Xcache yourself. That's what I've done on mine. I found 3.0.1 to be much better than the 2.0 branch.

Can't really see anything that stands out. Do you have xcache-admin pages installed as well to see how it's performing?
 
OK, I gather cPanel will soon update Xcache, so I haven't thought of bothering. I hoped to keep it simple.

This is what the admin page reports, but I just reloaded PHP, so don't expect much info:

Code:
XCache 2.0.1 Administration
 
Help »
StatisticsList PHPList Var Data
Caches
-    Slots    Size    Avail    % Used    Clear    Compiling    Hits    Hits/H    Hits 24H    Hits/S    Updates    Clogs    OOMs    Errors    Protected    Cached    Deleted    GC
php#0    8.00 K    16.00 M    13.18 M   
 
no    1,037    43.21   
0.20    86    8    0    0    no    86    0   
php#1    8.00 K    16.00 M    14.62 M   
 
no    791    32.96   
0.20    66    9    0    0    no    66    0   
php#2    8.00 K    16.00 M    13.31 M   
 
no    839    34.96   
6.00    80    7    0    0    no    80    0   
php#3    8.00 K    16.00 M    13.29 M   
 
no    1,090    45.42   
10.00    94    11    0    0    no    94    0   
php#4    8.00 K    16.00 M    14.42 M   
 
no    1,278    53.25   
0.20    95    10    0    0    no    95    0   
php#5    8.00 K    16.00 M    13.57 M   
 
no    1,274    53.08   
26.00    79    12    0    0    no    79    0   
php#6    8.00 K    16.00 M    13.83 M   
 
no    1,438    59.92   
32.00    85    6    0    0    no    85    0   
php#7    8.00 K    16.00 M    12.47 M   
 
no    1,381    57.54   
0.20    91    15    0    0    no    91    0   
php#8    8.00 K    16.00 M    13.92 M   
 
no    762    31.75   
18.00    45    3    0    0    no    45    0   
php#9    8.00 K    16.00 M    14.27 M   
 
no    920    38.33   
16.00    79    4    0    0    no    79    0   
php#10    8.00 K    16.00 M    13.56 M   
 
no    1,021    42.54   
4.00    103    12    0    0    no    103    0   
php#11    8.00 K    16.00 M    13.07 M   
 
no    1,252    52.17   
0.20    129    15    0    0    no    129    0   
php#12    8.00 K    16.00 M    14.77 M   
 
no    401    16.71   
2.00    40    5    0    0    no    40    0   
php#13    8.00 K    16.00 M    13.71 M   
 
no    994    41.42   
14.00    76    7    0    0    no    76    0   
php#14    8.00 K    16.00 M    13.29 M   
 
no    1,444    60.17   
36.20    95    5    0    0    no    95    0   
php#15    8.00 K    16.00 M    14.62 M   
 
no    713    29.71   
14.00    54    6    0    0    no    54    0   
Total    128.00 K    256.00 M    219.90 M   
 
-    16,635    693.13   
179.20    1,297    135    0    0    -    1,297    0   
var#0    8.00 K    8.00 M    7.71 M   
 
-    363    15.13   
6.00    150    0    0    0    no    148    0    155
var#1    8.00 K    8.00 M    7.70 M   
 
-    241    10.04   
2.00    155    0    0    0    no    154    0    155
var#2    8.00 K    8.00 M    7.74 M   
 
-    260    10.83   
2.00    181    0    0    0    no    167    0    155
var#3    8.00 K    8.00 M    7.74 M   
 
-    175    7.29   
1.00    167    0    0    0    no    161    0    155
var#4    8.00 K    8.00 M    7.76 M   
 
-    339    14.13   
8.00    207    0    0    0    no    156    0    155
var#5    8.00 K    8.00 M    7.73 M   
 
-    257    10.71   
2.00    177    0    0    0    no    175    0    155
var#6    8.00 K    8.00 M    7.70 M   
 
-    227    9.46   
2.00    180    0    0    0    no    173    0    155
var#7    8.00 K    8.00 M    7.71 M   
 
-    170    7.08   
0.80    194    0    0    0    no    168    0    155
var#8    8.00 K    8.00 M    7.70 M   
 
-    348    14.50   
6.00    172    0    0    0    no    165    0    155
var#9    8.00 K    8.00 M    7.73 M   
 
-    261    10.88   
2.00    163    0    0    0    no    162    0    155
var#10    8.00 K    8.00 M    7.37 M   
 
-    238    9.92   
2.00    180    0    0    0    no    179    0    155
var#11    8.00 K    8.00 M    7.67 M   
 
-    242    10.08   
2.00    162    0    0    0    no    160    0    155
var#12    8.00 K    8.00 M    7.59 M   
 
-    683    28.46   
4.00    168    0    0    0    no    165    0    155
var#13    8.00 K    8.00 M    7.70 M   
 
-    158    6.58   
1.80    189    0    0    0    no    170    0    155
var#14    8.00 K    8.00 M    7.27 M   
 
-    406    16.92   
4.00    160    0    0    0    no    156    0    155
var#15    8.00 K    8.00 M    7.23 M   
 
-    212    8.83   
2.00    165    0    0    0    no    163    0    155
Total    128.00 K    128.00 M    122.06 M   
 
-    4,580    190.83   
47.60    2,770    0    0    0    -    2,622    0   
Legends:  % Used  Used Blocks  Hits
 
Best to leave it running a few hours before checking the stats. Have you also enabled Piped Apache Logs to stop apache being reloaded every 1 to 2 hours when the logs are updated?
 
Apache doesn't auto update so far as I can see in the WHM settings. Last time it was restarted was nearly two days ago.

I'll post an admin update later today for your edification. Thanks.
 
Apache doesn't auto update so far as I can see in the WHM settings. Last time it was restarted was nearly two days ago.

I'll post an admin update later today for your edification. Thanks.
That's good then, you've probably already got it set:

Home » Service Configuration » Apache Configuration » Piped Log Configuration

Just ensure that it checked.
 
Top Bottom