Slow RDD experiences

Re: Slow RDD experiences

Postby Enrico Maria Giordano » Wed Jun 04, 2014 8:15 am

Michel,

it is in Dbinfo.ch.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Slow RDD experiences

Postby MarcoBoschi » Wed Jun 04, 2014 8:49 am

This morning,
I tested this through a vpn

The difference in performance is not as clear as yesterday we have 60 seconds versus 75
I use a smaller table.
Yesterday the differenze was 50% faster using that command
This is the source code

Code: Select all  Expand view

#include "dbinfo.ch"
ANNOUNCE RDDSYS


FUNCTION MAIN
LOCAL nInizio  := SECONDS()
LOCAL nContati := 0
LOCAL aArray   := {}
SET EXCLUSIVE OFF

USE n:\hse\la
SET INDEX TO n:\hse\la
dbInfo( DBI_SHARED, .F. )

SET ORDER TO 1
GO TOP
DO WHILE !EOF()        

   AADD( aArray , field->modello )
   SKIP        
   inkey()
ENDDO
? SECONDS() - nInizio            
? LEN( aArray )

INIT PROCEDURE RddInit
REQUEST DBFFPT
REQUEST DBFCDX
rddSetDefault( "DBFCDX" )
RETURN
 



P.S. sometimes my posts do not appear in this group
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Slow RDD experiences

Postby Patrizio » Wed Jun 04, 2014 9:02 am

MarcoBoschi wrote:This morning,
I tested this through a vpn

The difference in performance is not as clear as yesterday we have 60 seconds versus 75
I use a smaller table.
Yesterday the differenze was 50% faster using that command
This is the source code

P.S. sometimes my posts do not appear in this group



For reliable test performance you need to repeat the test a large number of times and then look at average.
Patrizio
 
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy

Re: Slow RDD experiences

Postby driessen » Wed Jun 04, 2014 9:03 am

I have a huge problem on the network of one of my customers.
It's a Windows 2012 server with 2 virtual servers : a data server and a terminal server.

If a user logs in on the terminal server, everything is running just fine.

But if a user logs in from a workstation (all are Windows 7-64 bits), it's really a disaster. It takes 2 minutes to read 1200 records into an array. That same action takes 3 to 5 seconds on the terminal server.

I added the line "DBINFO (DBI_SHARED,.F.)" but I can't notice any difference.

Keep looking because it is a very big and urgent problem. Thanks.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Slow RDD experiences

Postby Enrico Maria Giordano » Wed Jun 04, 2014 9:16 am

Michel,

I would check the customer network. :-)

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Slow RDD experiences

Postby driessen » Wed Jun 04, 2014 9:26 am

Enrico,

We tried everything. Enabling and disabling SMB 1.0, 2.0 and 3.0, enabling and disabling oplocks. Nothing seems to be helping.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Slow RDD experiences

Postby Enrico Maria Giordano » Wed Jun 04, 2014 9:30 am

Michel,

did you check the network speed without programs, using a console COPY command?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Slow RDD experiences

Postby stefano » Wed Jun 04, 2014 9:55 am

Used commit o dbcommit() ?
I have seen a sharp slowdown

stefano
FWH 14.11 + xHarbour + bcc582
stefano
 
Posts: 80
Joined: Tue Mar 25, 2008 9:03 pm
Location: ITALIA

Re: Slow RDD experiences

Postby driessen » Wed Jun 04, 2014 10:10 am

Enrico,

I tested the network speed without any programs, using the console COPY command. I copied a file of 600 MB from the server to the workstation in just 8 sec. That looks normal to me.


Stefano,

What do you mean? What is the difference betwee commit and dbcommit() ?
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Slow RDD experiences

Postby Enrico Maria Giordano » Wed Jun 04, 2014 10:19 am

Michel,

driessen wrote:Enrico,

I tested the network speed without any programs, using the console COPY command. I copied a file of 600 MB from the server to the workstation in just 8 sec. That looks normal to me.


Yes, it looks like a good speed. :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Slow RDD experiences

Postby Enrico Maria Giordano » Wed Jun 04, 2014 10:24 am

Michel,

driessen wrote:What do you mean? What is the difference betwee commit and dbcommit() ?


COMMIT is equal to DbCommitAll() that commits all the workareas, while DbCommit() only commits the current workarea. It hardly makes any difference.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Slow RDD experiences

Postby lucasdebeltran » Wed Jun 04, 2014 12:14 pm

Michel,

Please, issue this commands and reset each PC:

netsh int tcp set heuristics disabled
netsh int tcp set global autotuninglevel=disabled
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: Slow RDD experiences

Postby driessen » Wed Jun 04, 2014 12:51 pm

Lucas,

Thanks a lot but I don't notice any signifant difference.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Slow RDD experiences

Postby lucasdebeltran » Wed Jun 04, 2014 2:16 pm

Have you disabled antivirus?.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: Slow RDD experiences

Postby driessen » Wed Jun 04, 2014 4:14 pm

I Will do some test later tonight.
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests