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
15
votes
2 answers

asynchronous IO io_submit latency in Ubuntu Linux

I am looking for advice on how to get efficient and high performance asynchronous IO working for my application that runs on Ubuntu Linux 14.04. My app processes transactions and creates a file on disk/flash. As the app is progressing through…
user5739398
  • 151
  • 1
  • 4
15
votes
1 answer

C#, EF & LINQ : slow at inserting large (7Mb) records into SQL Server

There's a long version of this question, and a short version. The short version: why are both LINQ and EF so slow at inserting a single, large (7 Mb) record into a remote SQL Server database ? And here's the long version (with some information…
Mike Gledhill
  • 27,846
  • 7
  • 149
  • 159
15
votes
8 answers

Best OS to deploy a low latency Java application?

We have a low latency trading system (feed handlers, analytics, order entry) written in Java. It uses TCP and UDP extensively, it does not use Infiniband or other non-standard networking. Can anyone comment on the tradeoffs of various OSes or OS…
Ted Graham
  • 3,511
  • 4
  • 24
  • 25
14
votes
8 answers

How to speed up website loading for opposite side of planet

I am currently running a small piece of PHP software which is being accessed by two groups of people, one group in China, the other in Ireland. The server is hosted in Ireland, and no doubt pages load between 0.3 and 0.8 seconds. The Chinese people…
user1020317
  • 654
  • 5
  • 22
14
votes
4 answers

Database Network Latency

I am currently working on an n-tier system and battling some database performance issues. One area we have been investigating is the latency between the database server and the application server. In our test environment the average ping times…
Karl
  • 2,927
  • 8
  • 31
  • 39
14
votes
6 answers

Measuring ping latency of a server - Python

I have a list of server IP addresses, I need to check if each one is online and how long the latency is. I haven't found any straight forward ways of implementing this, and there seems to be a few problems in calculating latency accurately. Any…
RadiantHex
  • 24,907
  • 47
  • 148
  • 244
13
votes
2 answers

Detect or Approximate Bluetooth Latency on Android (Audio Playback)

I am currently working on an Android audio visualizer using connected smart home devices (such as Philips hue) to visualize music. I have trouble compensating the delay caused by bluetooth speakers. I have noticed, that the Youtube app, in…
Stefan S.
  • 247
  • 3
  • 9
13
votes
1 answer

latency when pressing headset button in iphone

I'm trying to trigger different actions inside only my own app using buttons of plugged headset (something similar what pressy does). I noticed however that no matter if I use MPRemoteCommandCenter or remoteControlReceivedWithEvent delegate, I…
pzo
  • 2,087
  • 3
  • 24
  • 42
13
votes
2 answers

Theoretical minimum round-trip-time for a packet to travel over/under the North Atlantic Sea?

I'm doing some performance tuning and capacity planning for a low-latency application and have the following question: What is the theoretical minimum round-trip time for a packet sent between a host in London and one in New York connected via…
knorv
  • 49,059
  • 74
  • 210
  • 294
13
votes
1 answer

How do I get tickless kernel to work? nohz_full, rcu_nocbs, isolcpus what else?

I just installed Ubuntu 13.10 with new 3.11 kernel. And in 3.10, it has the tickless feature where I can run a process without being interrupted by local timer, not as much as before. I followed this link…
Ming
  • 365
  • 2
  • 12
13
votes
2 answers

How can I reduce Google App Engine datastore latency?

Through appstats, I can see that my datastore queries are taking about 125ms (api and cpu combined), but often there are long latencies (e.g. upto 12000ms) before the queries are executed. I can see that my latency from the datastore is not related…
chow
  • 393
  • 4
  • 11
13
votes
4 answers

Ruby GC execution exceeding ~250-320ms per request

I have a ruby on rails application. I am investigating an Apdex decline in my NewRelic portal and I'm seeing that on average, 250-320ms of time is being spent on GC execution. This is a highly disturbing number. I've included a screen shot below. My…
randombits
  • 47,058
  • 76
  • 251
  • 433
12
votes
2 answers

How to calculate packet time from latency and bandwidth

I have a link between a host and a switch. The link has a bandwidth & a latency. How to calculate the time of 2 packets(with size 1KB) to be transferred from Host A to Switch 1? Here's the diagram(I am talking about the first link) Note: I just…
MhdSyrwan
  • 1,613
  • 3
  • 19
  • 26
12
votes
2 answers

Low-latency read of UDP port

I am reading a single data item from a UDP port. It's essential that this read be the lowest latency possible. At present I'm reading via the boost::asio library's async_receive_from method. Does anyone know the kind of latency I will experience…
endian
  • 4,234
  • 8
  • 34
  • 42
12
votes
4 answers

How long does it take for OpenGL to actually update the screen?

I have a simple OpenGL test app in C which draws different things in response to key input. (Mesa 8.0.4, tried with Mesa-EGL and with GLFW, Ubuntu 12.04LTS on a PC with NVIDIA GTX650). The draws are quite simple/fast (rotating triangle type of…
Alex I
  • 19,689
  • 9
  • 86
  • 158
1 2
3
82 83