Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 28, 2009 7:20 pm 
Offline
Senior Newbie

Joined: Tue Apr 28, 2009 7:13 pm
Posts: 7
Hi,

I have a local test vmware image running Ubuntu 8.10 server.

My linode is also Ubuntu 8.10.

They are both set up almost exactly the same (I have a step by step almost script like template to set up a new server).

I'm using php file_get_contents to download (small ~ 15kb) files from websites.

The thing is, that my test vm, behind a crappy bargain basement adsl connection, performs far better than my Linode.

My test machine looks like its doing 1 file per second or thereabouts. My linode looks like its averaging 1 file per 3 seconds.

Any idea what could be the prob? I don't have a high powered test machine, its running under vmware sharing my 2.4ghz laptop. And besides, this isn't exactly disk or cpu killing stuff!

The php.ini files should be the same on both machines. HTTP network timeout in the context on both is set to 1. Linode appears to be pausing for far far longer though. And also appears to be taking longer on successfull tries too.

Is there some kind of bandwidth limiting going on? My linode performance charts in the console seem fine and unloaded.


Top
   
 Post subject:
PostPosted: Tue Apr 28, 2009 7:33 pm 
Offline
Senior Newbie

Joined: Tue Apr 28, 2009 7:13 pm
Posts: 7
Hmm..

Already found that I should probably be using curl instead anyway.

http://stackoverflow.com/questions/5555 ... erformance

That doesn't explain the bad linode performance yet. Though I will change the getcontents function to curl tomorrow and test.


Top
   
 Post subject:
PostPosted: Tue Apr 28, 2009 7:35 pm 
Offline
Senior Newbie

Joined: Tue Apr 28, 2009 7:13 pm
Posts: 7
This looks interesting and points to the possibility of slow dns servers.

http://stackoverflow.com/questions/7350 ... erformance


Top
   
 Post subject:
PostPosted: Wed Apr 29, 2009 8:42 am 
Offline
Senior Newbie

Joined: Tue Apr 28, 2009 7:13 pm
Posts: 7
Performance over a large number of records (10K) is 1 download every 5 seconds.

I'm going to rewrite this in python so I can multithread.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group