Closed (duplicate)
Project:
CVS deploy
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2008 at 17:23 UTC
Updated:
28 Apr 2009 at 22:52 UTC
When this module is installed, my site checks for updates whenever an admin page is loaded. This causes the site to slow down majorly.
Comments
Comment #1
frankcarey commentedyes, xdebug shows it using a ton of resources,
Comment #2
frankcarey commentedIT is the _cvs_deploy_find_latest_update() function that is taking up 30% of the load time is this function, according to xdebug. I have quite a few modules, so this is probably more pronounced. I think the solution is to provide some sort of caching here inside this function.
Comment #3
acrollet commentedHi there, I just want to chip in on this topic with some (very unscientific) numbers. I'd like to note that this problem is exacerbated when one's DocumentRoot is on an NFS server - every trip to disk becomes much slower.
Loading admin/build/modules without cvs deploy enabled, but with about 10 other modules enabled (our standard complement) makes about 70k lstat64 calls (by far the most used system call according to strace).
Enabling cvs_deploy bumps that number to 430k. (over 6x greater!) When open_basedir is configured for that vhost, the number of calls jumps to 1.3 million - this obviously isn't CVS deploy's fault, but it sure hurts performance in a bad way...
I'm not familiar with the cvs deploy code base, and I imagine it might also take some changes to core, but I'm hoping to get the ball rolling on some discussion as to what can be done to improve the situation. I would also be willing to work on a patch, if pointed in the right direction...
Comment #4
frankcarey commentedAs a reference, my drive that druapl was running off was ntfs, with ntfs-3g install on ubuntu 8.04. It may be that this slowed down performance as well. I'm changing that config now and will report back if ext3 changed load times.
Comment #5
dwwI'm 99% positive this is caused by #220592: Core cache API breaks update.module: fetches data way too often, kills site performance, etc. Once that's fixed, this won't be a problem.