Slow Speeds when unzipping with PHP onto a NFS, how can I speed it up?

Posted by bunwich on Stack Overflow See other posts from Stack Overflow or by bunwich
Published on 2010-05-08T00:44:00Z Indexed on 2010/05/08 0:48 UTC
Read the original article Hit count: 286

Filed under:
|
|

Hi, I'm trying to figure out how to boost my NFS speed and php uploads.

  1. File is uploaded to the webserver's local tmp dir

  2. With PHP I copy the file userxxx.zip to the NFS

  3. With PHP I extract the userxxx.zip on the NFS to another dir on the NFS.

What I'm finding is the file is in Step 3, the file is being read through the NFS by the web server, processed by the web server, and uploaded back across the NFS.

Speeds as expected are very slow.

Might a possible solution be to get the Fileserver to extract the zip? a) Webserver copies the file to the NFS b) Webserver makes a web service call to the Fileserver c) Fileserver can now unzip the file like it's local and the speeds should be much faster.

I would appreciate any suggestion anyone how people have approached this problem.

(I'm aware that php ZipArchive() is very slow, and I'll likely use java or php exec unzip to speed it up)

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about nfs