forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dke on June 15, 2006, 01:26:24 pm

Title: Is there any way to reduce cpu load when loading index "Random thumbnails"
Post by: dke on June 15, 2006, 01:26:24 pm
Hi all,

Im running this on a not so good machine (p4 1500mhz with 512 rambus) but i figure its worth asking.

When people surf my page it takes a few seconds for it to load the index (mainly because it has to generate 8 random pictures from my fairly large database which has 110 000 pictures in it)

Im guessing that the cpu jumps to 100% might be normal, but its always worth asking if there might be a setting in http.conf / php.ini or even in coppermine that would reduce the load, and make it load quicker?

Anyone have any tips?
Title: Re: Is there any way to reduce cpu load when loading index "Random thumbnails"
Post by: Joachim Müller on June 16, 2006, 10:33:04 am
Sure, the random albums generate a huge strain on the script for large galleries. Just disable random meta album as suggested in the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing) and FAQ (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#NoLastUploads)
Title: Re: Is there any way to reduce cpu load when loading index "Random thumbnails"
Post by: dke on June 16, 2006, 06:09:14 pm
ahh, thanks..

well i was hoping for a solution that wouldnt require me to turn of the random images, but i guess i have to since i have 110 000 pictures it gives the computer alot of load.

A simple question though, turning off "random images" is it enough to just remove the string "random,2" in the admin.php or should i find somewhere were i can turn it "off" like it says in the FAQ.

FROM FAQ: 'random': random pictures (leaving random pictures "on" for huge galleries with more than 10,000 pics might result in performance problems; switch random "off" in this case)

I guess "off" just means removing "random,2"? Cause now when i have it off and i use "lastup,4" for my main page (which shouldnt take to much load) it still takes a slight while to load the main page and the cpu goes to 100%, im having a feeling that it still tries to random images and then it checks the value in admin.php and it says 0 so it continues on without, or maybe its just my ol server not able to handle it :)

thanks in advance
Title: Re: Is there any way to reduce cpu load when loading index "Random thumbnails"
Post by: Joachim Müller on June 19, 2006, 06:53:36 am
I guess "off" just means removing "random,2"?
Exactly