Questions tagged [latency]

This tag implies latency is a significant consideration

Latency is a time interval between the stimulation and response, or, from a more general point of view, as a time delay between the cause and the effect of some physical change in the system being observed.

Latency is physically a consequence of the limited velocity with which any physical interaction can propagate.

This velocity is always lower or equal to speed of light.

Therefore every physical system that has spatial dimensions different from zero will experience some sort of latency, regardless of the nature of stimulation that it has been exposed to.

The precise definition of latency depends on the system being observed and the nature of stimulation.

In communications, the lower limit of latency is determined by the medium being used for communications.

In reliable two-way communication systems, latency limits the maximum rate that information can be transmitted, as there is often a limit on the amount of information that is "in-flight" at any one moment.

In the field of human–machine interaction, perceptible latency has a strong effect on user satisfaction and usability.

Related tag:

1231 questions
28
votes
4 answers

Python logging causing latencies?

I'm developing a real-time REST API using Python3+bottle/UWSGI. I was experiencing latencies in my code, sometimes 100s of ms, which does matter in my app. Using logging module, I was trying to identify slow parts of my code, printing how long…
Tregoreg
  • 18,872
  • 15
  • 48
  • 69
26
votes
4 answers

Java BlockingQueue latency high on Linux

I am using BlockingQueue:s (trying both ArrayBlockingQueue and LinkedBlockingQueue) to pass objects between different threads in an application I’m currently working on. Performance and latency is relatively important in this application, so I was…
Johan
  • 261
  • 3
  • 7
25
votes
1 answer

Why is request_time much larger than upstream_response_time in nginx access.log?

I am trying to improve the performance of a web app. Profiling the app itself, I found its response time are quite acceptable (100ms-200ms), but when I use ApacheBench to test the app, the response time sometimes exceeds 1 second. When I looked…
NeoWang
  • 17,361
  • 24
  • 78
  • 126
23
votes
1 answer

How can I reduce input latency in a VirtualBox VM?

I've installed a Ubuntu VM using VirtualBox, but when I start it up the input lag is really noticeable. For example, when I type something there is a noticeable delay before the words show up on the screen. What can I do to reduce this lag?
Adam
  • 8,752
  • 12
  • 54
  • 96
21
votes
3 answers

AWS latency between Zones within a same Region

I have an EC2 and RDS in the same region US East(N. Virginia) but both resources are in different zones; RDS in us-east-1a and EC2 in us-east-1b. Now the question is that if I put both resources within the same zone then would it speed up the data…
UsamaAmjad
  • 4,175
  • 3
  • 28
  • 35
20
votes
2 answers

Latency of requesting a object from S3 to EC2

What's the latency to GET an object from S3 from an EC2 Instance. For example, how many ms before the actual data stream for that object starts streaming back when requesting a object by it's full path. If the object exists on S3 If the object…
The Unknown
  • 19,224
  • 29
  • 77
  • 93
19
votes
1 answer

What considerations go into predicting latency for operations on modern superscalar processors and how can I calculate them by hand?

I want to be able to predict, by hand, exactly how long arbitrary arithmetical (i.e. no branching or memory, though that would be nice too) x86-64 assembly code will take given a particular architecture, taking into account instruction reordering,…
geometrian
  • 14,775
  • 10
  • 56
  • 132
18
votes
4 answers

how can I simulate network latency on my developer machine?

I am upsizing an MS Access 2003 app to a SQL Server backend. On my dev machine, SQL Server is local, so the performance is quite good. I want to test the performance with a remote SQL Server so I can account for the effects of network latency when I…
D'Arcy Rittich
  • 167,292
  • 40
  • 290
  • 283
18
votes
3 answers

Loading and displaying large text files

In a Swing application, I sometimes need to support read-only access to large, line-oriented text files that are slow to load: logs, dumps, traces, etc. For small amounts of data, a suitable Document and JTextComponent are fine, as shown here. I…
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
18
votes
4 answers

How do you measure latency in low-latency environments?

Here's the setup... Your system is receiving a stream of data that contains discrete messages (usually between 32-128 bytes per message). As part of your processing pipeline, each message passes through two physically separate applications which…
Ajaxx
  • 2,500
  • 4
  • 27
  • 38
16
votes
3 answers

Techniques to Reduce CPU to GPU Data Transfer Latency

I've been looking into ways to reduce the latency caused by transferring data back and forth from the CPU and GPU. When I first started using CUDA I did notice that data transfer between the CPU and GPU did take a few seconds, but I didn't really…
sj755
  • 3,944
  • 14
  • 59
  • 79
16
votes
9 answers

How to determine latency of a remote server through the browser

I run a couple of game tunnelling servers and would like to have a page where the client can run a ping on all the servers and find out which is the most responsive. As far as I can see there seems to be no proper way to do this in JavaScript, but I…
Mladen Mihajlovic
  • 6,095
  • 7
  • 40
  • 55
16
votes
1 answer

Measure service latency with Prometheus

I am new to Prometheus and Grafana. My primary goal is to get the response time per request. For me it seemed to be a simple thing - but whatever I do I do not get the results I require. I need to be able to analyse the service latency in the last…
eventhorizon
  • 2,977
  • 8
  • 33
  • 57
16
votes
5 answers

Latencies issues which G1GC

I am facing a continues increase in GC pauses with G1GC algorithm. The service latencies continue to grow over time. Once this happens, I restart my service and the latencies go back to normal. Post startup, the latencies again continue to increase…
Santano
  • 161
  • 1
  • 6
16
votes
2 answers

Check latency if server denies ping requests

the server I need to check the latency of is denying PING requests, is there another way to check my latency to the server? Thanks in advance.
Jan Červenka
  • 339
  • 1
  • 3
  • 12
1
2
3
82 83