Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Mar 29, 2005 1:56 am 
Offline
Senior Newbie

Joined: Mon Jan 24, 2005 12:35 am
Posts: 6
Hi,

I've got a series of dumps that are loaded into postgresql for a crm application. Using a tcp connection to the postgresql database from my local machine - putting all the data into postgres takes over 21 *minutes*. I'm on a 2mbs connection.

Running the ant build file and insertion from on my linode inserting all the data takes only 49 seconds.

Why is network performance so damn horrible? I've googled and searched postgres information lists for information and similar problems but can't find anything. I've never had this problem on other dedicated (or vps) servers. So I figure it could be something to do with the linode.com setup.

Anyone have any ideas?

Cheers
Willie


Top
   
 Post subject:
PostPosted: Tue Mar 29, 2005 3:11 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Check postgresql's memory usage and also look to see if you're hitting the Linode's I/O limiter during the 21 minute load operation.

_________________
/ Peter


Top
   
PostPosted: Tue Mar 29, 2005 4:27 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
willieseabrook wrote:
Using a tcp connection to the postgresql database from my local machine


Whats the ping time between these machines?

In all likelyhood your connection is being slowed by all the back-and-forth conversation
between the two ends.


Top
   
 Post subject:
PostPosted: Tue Mar 29, 2005 5:27 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
Well the dude said it was 20x faster when he ran directly from the linode, so it's probably not a memory usage or IO problem.

I use postgres and it's always been slower over a network, whether on a VPS or a standalone box sitting in the same room. I'm assuming there is back and forth communication that goes on that slows down overall throughput.

I'd suggest you run iptraf and top and maybe some other stuff to monitor resource usage as you do your postgres operations. Also you should monitor /proc/io_status. I suspect you will not see any of those resources reduced and that you will end up with a low overall average bandwidth because of the postgres protocol. But if for example you see 2M average incoming bandwidth, you know its maxing out that.

Good luck.


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


Who is online

Users browsing this forum: No registered users and 0 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