| View previous topic :: View next topic |
| Author |
Message |
dollarek
Joined: 11 Jan 2008 Posts: 46
|
Posted: Feb 03, 2008 11:58 am Post subject: Downloading speed. |
|
|
Hi.
Is this script allowing some downloading speed? cuz when i download something using this script it does about 500 kbps but if file is on on ftp and i download using direct link its does my normaln internet speed which is 800 kbps. I use 1gb SLA connection to my dedicated server. And it was only used about 5 MB whan i was testing. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Feb 04, 2008 7:08 am Post subject: |
|
|
This is due to some CPU optimizations while downloading.
To achieve full speed, comment this line in index.cgi:
| Code: | | select(undef, undef, undef,0.006); |
|
|
| Back to top |
|
 |
dollarek
Joined: 11 Jan 2008 Posts: 46
|
Posted: Feb 04, 2008 3:19 pm Post subject: |
|
|
| PilgrimX182 wrote: | This is due to some CPU optimizations while downloading.
To achieve full speed, comment this line in index.cgi:
| Code: | | select(undef, undef, undef,0.006); |
|
I am not the best in cgi. I bit more in php, do you mean comment as
| Code: | | //select(undef, undef, undef,0.006); | If this is what u meant than site is crashing after adding slash |
|
| Back to top |
|
 |
splatmatic
Joined: 02 Jan 2008 Posts: 4
|
Posted: Feb 05, 2008 12:24 am Post subject: |
|
|
to comment out a perl script its a # symbol.
Hope that helps.
Splat |
|
| Back to top |
|
 |
dollarek
Joined: 11 Jan 2008 Posts: 46
|
Posted: Feb 05, 2008 9:55 am Post subject: |
|
|
| Code: | | #select(undef, undef, undef,0.006); |
dont work ether |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Feb 05, 2008 10:26 am Post subject: |
|
|
Talking bout XFS1.2, right? Don't work what? You have error or same lower speed?
To speedup you can also try to change
| Code: | | read($in_fh,$buf,4096) |
to
| Code: | | read($in_fh,$buf,8192) |
in index.cgi |
|
| Back to top |
|
 |
dollarek
Joined: 11 Jan 2008 Posts: 46
|
Posted: Feb 05, 2008 11:58 am Post subject: |
|
|
| Yes i wanted to speed up downlonad speed, cuz using 1.2 it goes only up to about 400/500 . I will test what u just gave me after i finish by ICT. |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1901 Location: UFO Lab
|
Posted: Feb 05, 2008 12:13 pm Post subject: |
|
|
In XFS1.2 speed could be lower cause perl script output the file, also this eat pretty much CPU.
In PRO version download speed is the same as for static files.
There are some ways to make speed even higher than static files from Apache but I won't tell you all the secrets now  |
|
| Back to top |
|
 |
dollarek
Joined: 11 Jan 2008 Posts: 46
|
Posted: Feb 05, 2008 12:17 pm Post subject: |
|
|
okokokok anyway you are brilliant |
|
| Back to top |
|
 |
|