LWN.net Logo

LPC: Life after X

LPC: Life after X

Posted Nov 8, 2010 10:45 UTC (Mon) by marcH (subscriber, #57642)
Parent article: LPC: Life after X

> Keith asked: how many of these applications care about network transparency, which was one of the original headline features of X?

Of course applications do not care about network transparency: this is exactly what "transparency" means! Hearing such a weird question from such a high-profile developer is quite scary. Especially when he works at the company which made my laptop GPU barely usable in all the recent releases.

*Users* care about network transparency. Now a question that makes sense is: how many? (and it has probably been debated enough already)


(Log in to post comments)

LPC: Life after X

Posted Nov 8, 2010 16:19 UTC (Mon) by foom (subscriber, #14868) [Link]

Except, as many people have pointed out already: if X applications don't care about working remotely, then they *DONT*, because they do too many round-trips, which becomes deadly over a network with more than a few ms RTT. I have tried to use X remotely a few times, but it simply isn't usable for most things other than emacs and xterm.

The "transparency" feature of X needs a lot of work...

LPC: Life after X

Posted Nov 8, 2010 17:07 UTC (Mon) by marcH (subscriber, #57642) [Link]

> if X applications don't care about working remotely, then they *DONT*, because they do too many round-trips, [...] I have tried to use X remotely a few times, but it simply isn't usable for most things other than emacs and xterm.

On a LAN this is just plain wrong.

Not so long ago people working with dumb X11 terminals on Ethernet 10M. For sure they were not playing games nor using Eclipse; that does not mean they were using only emacs and xterm.

Not later than this morning I used this over encrypted (!) X11 forwarding:
http://www.methylblue.com/filelight/
It worked like a charm, just like thousands of other X11 applications. Out of curiosity I just tried: gimp, firefox, and OpenOffice and they all work flawlessly on my LAN. I did not even had to get rid of the encryption!

The reason why X11's networking is not so much in use nowadays is just because a powerful PC is now cheaper than a dumb X11 terminal. It is NOT because every single X11 framework is badly designed and wasting thousands of round trip times and cheap CPU cycles.

For sure there are plenty of cases where X11 networking is irrelevant. There are ALSO plenty of cases where it works perfectly thank you very much.

LPC: Life after X

Posted Nov 8, 2010 17:41 UTC (Mon) by droundy (subscriber, #4559) [Link]

The problem is that applications (and toolkits, antialiasing, etc) have bloated the number of round-trips required. In my (admittedly anecdotal) experience, modern applications (including a current emacs) run *way* slower over a network than similar programs did in the 1980s. Everything has been designed and optimized based on the assumption that the X server is on the same machine as the client.

LPC: Life after X

Posted Nov 8, 2010 18:30 UTC (Mon) by drag (subscriber, #31333) [Link]

This is because that is always true that the client is on the same machine as the server. Within a error of about .1%.

LPC: Life after X

Posted Nov 20, 2010 1:04 UTC (Sat) by Wol (guest, #4433) [Link]

Actually, in my house, that's true about 50% of the time.

Soon, probably, to be 33% of the time ... :-)

(I've got a Phenom X3 as my main machine, an Athlon 1050 .75Gb ram machine I use as an x-terminal, and an Acer Aspire One that will probably soon have Smeegol on it and get used as an x-terminal too)

Cheers,
Wol

LPC: Life after X

Posted Nov 8, 2010 20:21 UTC (Mon) by foom (subscriber, #14868) [Link]

>> if X applications don't care about working remotely, then they *DONT*, because they do too many round-trips, [...] I have tried to use X remotely a few times, but it simply isn't usable for most things other than emacs and xterm.
> On a LAN this is just plain wrong.

Thanks for the creative editing.

Let me fill in the "[...]" you snipped out of my original message:
>which becomes deadly over a network with more than a few ms RTT
Hey, guess what! On a LAN, you won't have more than a few ms RTT!

Now try running those apps when you're working at home, a few miles away real-space, and 50ms away RTT.

LPC: Life after X

Posted Nov 8, 2010 21:54 UTC (Mon) by marcH (subscriber, #57642) [Link]

My bad I honestly missed that. Sorry.

Even if X11 networking is or has become unusable on the WAN it is does not really matter: it still works very well on the LAN so it can absolutely not be dismissed as if it were a forgotten thing from the past.

LPC: Life after X

Posted Nov 22, 2010 5:59 UTC (Mon) by dododge (subscriber, #2870) [Link]

Here's a real example from the 10MB days: early web browsers often had their their application logo at the top corner of the window, and would run a little animation loop when loading a page. I believe in Netscape's case it would send the entire logo image to the X server for every frame of animation. This worked fine on the same machine because it could use things like XSHM to send the image data out-of-band, but when running remotely it meant it was continuously and repeatedly encoding and transmitting each frame of the animation through the X protocol.

If they had designed for network transparency they presumably would instead have cached the frames as a handful of server-side pixmaps and flipped between them. It seems like a little thing, but as I recall this minor oversight made it perform terribly over a LAN.

LPC: Life after X

Posted Nov 22, 2010 8:18 UTC (Mon) by nix (subscriber, #2304) [Link]

IIRC this was only true in Netscape 4, which is when Netscape decided to give the implementation job to a gang of crack-addled monkeys rather than JWZ. (I think that was his phrase...)

Quality suffered accordingly.

LPC: Life after X

Posted Nov 22, 2010 10:56 UTC (Mon) by dododge (subscriber, #2870) [Link]

Yeah NS3 or NS4 sounds about the right timeframe. I mostly remember noticing that it was much slower than it should have been and having a real WTF?! moment when I traced the X connection and saw all those images flying by.

LPC: Life after X

Posted Nov 8, 2010 16:30 UTC (Mon) by scripter (subscriber, #2654) [Link]

When Keith said applications, I think he meant purpose-built devices. It's more clear in context. We can substitute as follows:

"how many [of the mobile systems, media devices, and in-vehicle embedded systems] care about [graphical] network transparency...?"

As for me, I'm not sure that I need the Android calendar app to be able to display its output on a remote display via X11 protocol or something similar. Instead, I'd load my google calendar elsewhere.

I don't need the Android music player to be able to display elsewhere, because I'd simply load my music collection elsewhere using a separate device, separate application, and separate network protocol.

LPC: Life after X

Posted Nov 9, 2010 21:57 UTC (Tue) by dlang (✭ supporter ✭, #313) [Link]

you absolutly do want the ability to remote the display from an android device.

think about the movies and TV programs that allow a person to flick the display from a hand-held device to a wall-size screen. If that's not an example of people wanting network transparent display capibilities, even on portable devices I don't know what is.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds