GD CPU/memory requirements

can anyone give me a rough idea of what sort of processing power GD/
php uses to create a thumbnail of a large photo (they range in size
from 50kb to 5mb).. the script only makes the thumbnail once then
saves it rather than creates it for each user then delete it,it would
make 20 thumbs for each page.. around a million photos in total.

system will be debian stable, sata2 drives.. running just web and
nothing else.

Cheers.
flamer [ Mi, 02 Mai 2007 04:57 ] [ ID #1702940 ]

Re: GD CPU/memory requirements

flamer die.spam [at] hotmail.com wrote:
> can anyone give me a rough idea of what sort of processing power GD/
> php uses to create a thumbnail of a large photo (they range in size
> from 50kb to 5mb).. the script only makes the thumbnail once then
> saves it rather than creates it for each user then delete it,it would
> make 20 thumbs for each page.. around a million photos in total.

The larger the original image is the longer it will take, but I would
recommend you do run throe all the images before you release it for the
public, as there will be noticeable slowdown when generating the
thumbnails, I have been working on a site with creates thumbnails of
500x500 images and when you have 30 images to generate, it's like you
are back on a modem.

> system will be debian stable, sata2 drives.. running just web and
> nothing else.

Do select a good file system, I would recommend jfs, it's usually quite
close to xfs performance, but uses less CPU power. RaiserFS is more CPU
using, but does manage crashes a lot better. Ext2/3 works ok for normal
users. Reiser4 (not yest in default kernels) is still buggy and I don't
recommend the usage of it until it's been at least in two versions of
the official kernel.


--

//Aho
Shion [ Mi, 02 Mai 2007 07:03 ] [ ID #1702941 ]

Re: GD CPU/memory requirements

"flamer die.spam [at] hotmail.com" <die.spam [at] hotmail.com> wrote in
news:1178074625.604683.74900 [at] y5g2000hsa.googlegroups.com:

> can anyone give me a rough idea of what sort of processing power GD/
> php uses to create a thumbnail of a large photo (they range in size
> from 50kb to 5mb).. the script only makes the thumbnail once then
> saves it rather than creates it for each user then delete it,it would
> make 20 thumbs for each page.. around a million photos in total.

processing power would be fine on just about anything these days. you just
want enough memory (on the system, and specified in php.ini) to load a 5MB
source file and create 20 thumbnails of roughly 'x'KB into memory at the
same time.
Good Man [ Mi, 02 Mai 2007 17:15 ] [ ID #1702949 ]

Re: GD CPU/memory requirements

On May 3, 3:15 am, Good Man <h... [at] letsgo.com> wrote:
> "flamer die.s... [at] hotmail.com" <die.s... [at] hotmail.com> wrote innews:1178074625.604683.74900 [at] y5g2000hsa.googlegroups.com:
>
> > can anyone give me a rough idea of what sort of processing power GD/
> > php uses to create a thumbnail of a large photo (they range in size
> > from 50kb to 5mb).. the script only makes the thumbnail once then
> > saves it rather than creates it for each user then delete it,it would
> > make 20 thumbs for each page.. around a million photos in total.
>
> processing power would be fine on just about anything these days. you just
> want enough memory (on the system, and specified in php.ini) to load a 5MB
> source file and create 20 thumbnails of roughly 'x'KB into memory at the
> same time.

thanks for the replies, I have not used jfs before but I will have a
read about it and try it out. creating all the thumbnails first is an
option however there will probably be around 10k photos added each
week to the live site so the live server will have to do thumbnails on
the fly as well.

Flamer.
flamer [ Do, 03 Mai 2007 00:05 ] [ ID #1702952 ]
PHP » alt.php » GD CPU/memory requirements

Vorheriges Thema: difference between --enable-mbstring and --enable-mbstring=shared
Nächstes Thema: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION