Hello,
I just found xupload at http://www.programurl.com/software/big-file-upload.htm.
Currently Xupload is my favorite.
As I plan to provide the upload functionality to a wide range of users I have some questions.
1.) Does xupload support to upload files from multipe users at the same time? Is there a limit or is the limit only up to my servers connections?
2.) Do you know how much resources (CPU / MB etc.) XUpload requires for one upload by one user?
3.) Would XUpload support to enable uplad by e.g. 30 Users or would this fail because of not enough Server Power?
4.) Do you have some general information about the upload performance?
Thank you very much in advance.
With kind regards
liveimage.de
XUpload - xupload performance / simultaneous uploads /server load
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
1) Sure. Any amount of users you want. XUpload use 2 connections(upload & progress bar) The limit is only up to your server connections.
2) XUpload using less memory & CPU than usual perl upload scripts cause not copying uploaded temp files, but renaming & moving them.(copying huge files take much resources and time). Progress bar script is optimized to use small CPU. Moreover you can tune it's CPU usage, I will tell you the way if you need this.
3) This depends on your server configuration and users upload speeds. It's Apache that use most CPU cause it handle uploads. So we can't tune upload process CPU usage, only progress bar. On our local server(PentiumD 2.5GHz) upload with 5Mb/sec of 300Mb file used ~50% CPU, but on remote server with lower upload speed it takes about 4-6%. So I guess it's all about upload speed. You can limit it with Apache bandwidth to lower CPU usage by multiple users.
2) XUpload using less memory & CPU than usual perl upload scripts cause not copying uploaded temp files, but renaming & moving them.(copying huge files take much resources and time). Progress bar script is optimized to use small CPU. Moreover you can tune it's CPU usage, I will tell you the way if you need this.
3) This depends on your server configuration and users upload speeds. It's Apache that use most CPU cause it handle uploads. So we can't tune upload process CPU usage, only progress bar. On our local server(PentiumD 2.5GHz) upload with 5Mb/sec of 300Mb file used ~50% CPU, but on remote server with lower upload speed it takes about 4-6%. So I guess it's all about upload speed. You can limit it with Apache bandwidth to lower CPU usage by multiple users.
Thank you very much for your proficient answers.
Regarding tuning CPU for progressbar. Which modifications does it require? Mods on Apache? This is not possible for me as I have currently shared hosting. Modifications in Perl Script? I do not have enogh programing skills
Regarding tuning CPU for progressbar. Which modifications does it require? Mods on Apache? This is not possible for me as I have currently shared hosting. Modifications in Perl Script? I do not have enogh programing skills
PilgrimX182 wrote: 2) ... Moreover you can tune it's CPU usage, I will tell you the way if you need this.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
No skills required
In upload_status.cgi find this string:
0.05 is delay there. Much this delay, less CPU will take progress bar.
But once again, most part of CPU will eat Apache since it handles uploads.
In upload_status.cgi find this string:
Code: Select all
select(undef, undef, undef,0.05);
But once again, most part of CPU will eat Apache since it handles uploads.
I 've set delay to 1.05.
And the upload values are anyway refreshed like realtime.
What is the delay unit? Can you explain it a little bit please?
- What does the delay do?
- Is there a value you recommend? I mean which is acceptable for the end user and also lowers cpu use best?
Thank you very much in advance.
And the upload values are anyway refreshed like realtime.
What is the delay unit? Can you explain it a little bit please?
- What does the delay do?
- Is there a value you recommend? I mean which is acceptable for the end user and also lowers cpu use best?
Thank you very much in advance.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm