NealC
Well-known member
I run several XF sites and dream of mine being as fast as the DIY Solar forum. What is their magic that makes their site so screaming fast?
The sun?I run several XF sites and dream of mine being as fast as the DIY Solar forum. What is their magic that makes their site so screaming fast?
The speed of the forum isn't related to the forum itself, but more on the server setup where it is residing imo.I run several XF sites and dream of mine being as fast as the DIY Solar forum. What is their magic that makes their site so screaming fast?
Agree, I use the same software obviously but I'm wondering what the config could be that is so fast. I just want to learn how to improve my sites to make them as fast as possible.The speed of the forum isn't related to the forum itself, but more on the server setup where it is residing imo.
Network speed of 2-5 gbps, nvme disk, good processor, redis and proper caching setup. That is all one need to make site blazing fast with proper server setup.Agree, I use the same software obviously but I'm wondering what the config could be that is so fast. I just want to learn how to improve my sites to make them as fast as possible.
I think this is what I need to focus on. I use redis, but don't think I'm using the best setup. Just a local redis on my ubuntu server running XF also with MySQL. Powerful dual proc server with SSD's.redis and proper caching setup
I'm a bit excessive on add-ons. Good point, will review and uninstall.how many add-ons are installed in the forum system
Is the Welcome in your forums an addon?I'm a bit excessive on add-ons. Good point, will review and uninstall.
innodb_buffer_pool_size and innodb_buffer_pool_instances in your MySQL settings.Thank you, adjusted from 32G to 96G (80% of RAM) and set instances from 16 to 8 per a query to chatGPT for verification.Simplest (but not necessarily the cheapest) thing you can do to improve performance is to ensure you have sufficient RAM available to keep the entire database in memory via InnoDB caching viainnodb_buffer_pool_sizeandinnodb_buffer_pool_instancesin your MySQL settings.
Obviously if you have a very large database this might not be feasible - but it really does make a huge difference in performance.
Another thing is that PHP likes faster clock speed for cpu, buying more cores (if its cloud/vps) might not gain you significant performance if there is no load on the server.I run several XF sites and dream of mine being as fast as the DIY Solar forum. What is their magic that makes their site so screaming fast?
<?php
header("Content-Type: text/plain");
// Basic CPU test
function cpu_test($n = 5000000) {
$x = 0;
for ($i = 0; $i < $n; $i++) {
$x += sqrt($i);
}
return $x;
}
// Memory allocation & array operations
function memory_test($n = 300000) {
$arr = [];
for ($i = 0; $i < $n; $i++) {
$arr[] = md5($i);
}
return count($arr);
}
// JSON/string manipulation
function json_test($n = 10000) {
$data = [];
for ($i = 0; $i < $n; $i++) {
$data[] = ["i" => $i, "hash" => sha1($i)];
}
return json_encode($data);
}
$start = microtime(true);
$results = [];
$results['cpu'] = cpu_test();
$results['memory'] = memory_test();
$results['json'] = strlen(json_test());
$end = microtime(true);
echo "=== PHP BENCHMARK ===\n";
echo "CPU test done\n";
echo "Memory test done\n";
echo "JSON test done\n";
echo "----------------------\n";
echo "Total time: " . round(($end - $start), 4) . " sec\n";
echo "----------------------\n";
print_r($results);
Total time: 0.1187 sec to 0.1387 in execution time, some slower intel Xeon i have ~ 0.5387, both with opcache and 8.3.28 php version.Perhaps spin up an XF demo to get a feel for how fast XF Cloud is, given how snappy my forum is. It uses Vultr, so perhaps if you ask the devs what spec virtual server they use for it, they might tell you and you can create a similar one. Cost is a factor of course and I have no idea what the specs of their servers are. I'd be interested to know.wonder though if a cloud based ubuntu option would be better and be the more affordable way to modernize the server architecture?
We use essential cookies to make this site work, and optional cookies to enhance your experience.