-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance #224
Comments
I had some time to look into this today. We have ~ 200 zones. I noticed that for every request made to the server two functions in They are not called once but for every zone, whether it is displayed or not. I think there is a better way to achieve this as uncommenting the execution of the SQL statement results in much better performance already. It seems that the performance degrades gradually with the amount of zones you keep. From my observations the abovementioned methods are called for every not deleted active zone. |
Both functions are required to ensure the zone can be built or reloaded which is why they are run against every zone. As I work the other issues, I'll think about how the checks can be optimized. |
My test environment for resolving this issue includes ~180 forward zones with ~1400 records each and loading zones-forward.php would take ~13 seconds while showing all zones on a single page. I've found the following:
Working on optimizing the above functions. |
Gained significant performance increases by:
Fixes will be included in the next release. |
Add another index to the fm_dns_records table Implemented better usage of session_write_close() Slightly decreased the number of SQL calls
Sounds great. I'll give it a go when the next version is out. |
fM 2.1.1 and fmDNS 2.1.2 have been released and contain the performance improvements. |
@peterschen Is the performance still an issue in your environment with these changes? |
We're currently running 2.1.4. Loading the forward zones from the home screen takes little more than five seconds in total (see screenshot). Stats: Environment: If there are some tweaks to be made I'd be happy to have them. All in all though I'm very happy with the product and the recent changes you incorporated. |
I have fm running on three different systems with a different combination of Apache, nginx, PHP-FPM, APC. For all the performance for rendering is not quite what I would like to have. I havn't drilled into this quite extensively but it seems that most of the time is spent for the first request and sending back the page.
On my production system (nginx, PHP-FPM, APC) I also used phpIPAM and with the same configuration and database it flies whilst fm feels sluggish.
The text was updated successfully, but these errors were encountered: