News for hackers. Stuff that matters.
Re:Computer latency: 1977-2017 by kevin_thibedeau on Sunday December 24, 2017 @11:00PM (#16002566)
Linux would be faster with a PS/2 keyboard, non-compositing WM, and plain ASCII Athena Xterm with a bitmap font.
Re:Computer latency: 1977-2017 by vasili111 on Monday December 25, 2017 @05:44AM (#16003614)
Why will Linux be faster with PS/2 keyboard rather than USB keyboard?
Re:Computer latency: 1977-2017 by timrobinson on Monday December 25, 2017 @06:22AM (#16003715)
Because PS/2 is interrupt driven whereas USB relies on the CPU polling for events.

https://en.wikipedia.org/wiki/PS/2_port#Legacy_port_status_a...

Re:Computer latency: 1977-2017 by ahartmetz on Monday December 25, 2017 @07:28AM (#16003885)
It's mostly irrelevant. USB uses polling internally, but the polling frequency is high and an interrupt is generated on the bus side when something has happened. I have taken latency measurements on PC hardware for a serial communication situation, and USB latency was a very small part of the problem. 1-2 milliseconds typically.
Re:Computer latency: 1977-2017 by kevin_thibedeau on Monday December 25, 2017 @12:00PM (#16004794)
It isn't irrelevant because USB packets still have to wend their way through the host stack after reception. Interrupt driven IO is always lowest latency.
Re:Computer latency: 1977-2017 by unwind on Monday December 25, 2017 @10:25AM (#16004406)
There is no separate interrupt line that devices can use to interrupt the host. All USB traffic is started by the host.
Re:Computer latency: 1977-2017 by ahartmetz on Monday December 25, 2017 @04:46PM (#16005849)
Yes, but with sufficiently high polling frequency it doesn't matter very much. (It is true that each hub may add latency, as your sibling comment noted.) Regarding the "interrupt on the bus side", I may have expressed myself badly - I meant PCI(e) bus.
Re:Computer latency: 1977-2017 by snaky on Monday December 25, 2017 @06:54AM (#16003805)
> plain ASCII

Is Unicode support in xterm really adding the latency?

Re:Computer latency: 1977-2017 by mcguire on Monday December 25, 2017 @11:16AM (#16004603)
UTF-8 adds a fair amount of work to every operation; UTF-16 and -32 multiply the amount of data transferred.

But in practice, I'd expect non-ASCII to be associated with more expensive features, which has more of an effect.