If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > DB latency creation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-11, 04:34
vinod.krishh vinod.krishh is offline
Registered User
 
Join Date: Feb 2011
Posts: 2
Question DB latency creation

Hi folks,

I am a system analyst, trying to find the effect of DB latency in our systems. Is there a way to generate DB latency in the order of milli seconds.. ?

My application & db are in separate boxes. Same switch.

I have tried the following.
1. Disabled disc write cache.
-was able to generate db latency of 28ms

2. Tried to play around with the memory & cpu/processor available for the SQL server.
3. Disabled in memory caching.
-Generates latency in the order of secs. But I need it it in milli secs.

4. Introduced network latency to the DB machine.
-delaying response & simulating DB latency. This works but is not accepted by the developers.

So I have to either find a configurable parameter in DB which creates latency in millisecs or a 3rd party tool which may generate latency in DB.

Any inputs are appreciated .

Cheers,
-Vinod
Reply With Quote
  #2 (permalink)  
Old 02-16-11, 09:01
Kaiowas Kaiowas is offline
Registered User
 
Join Date: Feb 2004
Posts: 488
So.. you want to build in some controlled delay on purpose?

WAITFOR (Transact-SQL)
Reply With Quote
  #3 (permalink)  
Old 02-16-11, 09:04
vinod.krishh vinod.krishh is offline
Registered User
 
Join Date: Feb 2011
Posts: 2
Yes, that is right..
Reply With Quote
  #4 (permalink)  
Old 02-16-11, 11:00
Kaiowas Kaiowas is offline
Registered User
 
Join Date: Feb 2004
Posts: 488
Well... I wouldn't go for changing memory/cache settings or any of that: usually they are set to maximize performance while maintaining stability/integrity. I don't know how things work for you, but here the admins are usually quite pleased after delivering a server. You may find yourself in some predicament while trying to return to the original settings.

It also sounds like it's a temporary (test) situation with a specific predicted or at least controlled delay, instead of delay that could be anywhere between this and that.
Also, for measuring and reproducing it's nice to have something that you can predict and re-use at a later time on another platform while still having the same abilities.

I guess I'd go for WAITFOR in the stored procedures: I'd just jam the statement in there. As for the tables and views... don't know.

Do you have a specific issue you are working on?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On