Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 17th, 2010, 12:01 AM
lasheimok lasheimok is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 5 lasheimok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m
Reputation Power: 0
Question Firebird for Linux slow on 64bit processors?

Hi all,

we're running Firebird databases on several of our customers' servers. Until some two years ago the servers were running Windows, until we noticed that Firebird on Linux performed way better, so we started using Linux for new servers.

But recently we ran into problems with Firebird for Linux on 64bit processors. Even though they're faster in every aspect we test, network requests to Firebird are three times as slow as on 32bit processors.

Running queries locally works fine, but connecting to Firebird over the network is slow. Also any other network connections work fine, only connecting to Firebird is slow.

We tried for weeks to rule out any other configuration detail that might make a difference, like using different distributions, 32bit or 64bit versions of different distributions, different versions, different servers, different clients, all the same. If Firebird is running on a 32bit processor, it replies quickly. If you take out the hard disk and boot the same system on a 64bit processor, it takes at least three times longer to reply.

Firebird for Windows doesn't seem to have this problem. On a 64bit processor, installing Windows inside a virtual machine and running the server there is faster than running it outside the virtual machine.

Any idea??

Reply With Quote
  #2  
Old August 17th, 2010, 03:38 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,527 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 3 h 19 m 49 sec
Reputation Power: 538
Quote:
Any idea??

Failed to mention relevant software version.
Also, did you check the bug tracker ?

Reply With Quote
  #3  
Old August 17th, 2010, 09:11 PM
lasheimok lasheimok is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 5 lasheimok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m
Reputation Power: 0
Smile adding previously missing information

The Firebird version used by all distros and versions that we tried is 2.1. We didn't try whether older versions or the 2.5 RCs show the same behaviour.

As clients we used Flamerobin and some Delphi applications that use IBProvider to connect to Firebird. IBProvider shows the same behaviour in both versions 2 and 3.

Reply With Quote
  #4  
Old August 18th, 2010, 02:38 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 8,527 pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level)pabloj User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 1 Day 3 h 19 m 49 sec
Reputation Power: 538
Hi, I'd start with this suggestion related to connections
http://tracker.firebirdsql.org/browse/CORE-438
I think it's some kind of network problem, MySQL had something similar regarding DNS.
Then you might want to post to the developer list.

Last edited by pabloj : August 18th, 2010 at 02:42 AM.

Reply With Quote
  #5  
Old August 23rd, 2010, 10:20 PM
lasheimok lasheimok is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 5 lasheimok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m
Reputation Power: 0
IBProvider??

Hi pabloj,

thank you for your reply and suggestions. We looked into it and did some more tests, which helped us to narrow down the problem.

Two months ago Flamerobin showed different speeds when connecting to different Firebirds over a network, that doesn't happen any more.
Currently it's only Delphi programs that are slow. We tried to run some of the code in Lazarus and it works fine.

So it looks like a problem with IBProvider being slow when connecting to a 64bit Linux.

Thank you for your help so far!

Reply With Quote
  #6  
Old August 24th, 2010, 05:34 AM
inspirohost inspirohost is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Location: New York
Posts: 20 inspirohost Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 4 h 4 m 19 sec
Reputation Power: 0
Using the latest stable version of Firebird (2.1.3) on a Linux box and haven't received any complaints from clients yet. It's probably a script-related problem.

Reply With Quote
  #7  
Old August 24th, 2010, 10:17 PM
lasheimok lasheimok is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 5 lasheimok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m
Reputation Power: 0
Quote:
Originally Posted by inspirohost
Using the latest stable version of Firebird (2.1.3) on a Linux box and haven't received any complaints from clients yet. It's probably a script-related problem.


Just to confirm that the setup is the same: Does any of your clients use IBProvider to connect to your 64bit Linux servers?

Reply With Quote
  #8  
Old September 16th, 2010, 01:05 AM
thegaffney thegaffney is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2010
Posts: 52 thegaffney User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 38 m 7 sec
Reputation Power: 3
We just switched from a 32bit windows server to 64 bit linux servers and it's much faster, we use a php web app to connect to it though. We used to have a delphi program that used IBProvider to connect to it, but that was back when it was still using windows.

Reply With Quote
  #9  
Old September 16th, 2010, 08:36 PM
lasheimok lasheimok is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 5 lasheimok User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m
Reputation Power: 0
It seems to be a problem specific to IBProvider. When we connect using any other method, even other methods within Delphi, 64bit is faster.

Unfortunately we've got a huge code base that can't easily be changed to using another connector.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird for Linux slow on 64bit processors?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap