Legacy X and network transparency
Legacy X and network transparency
Posted Nov 5, 2010 5:52 UTC (Fri) by PO8 (guest, #41661)Parent article: Shuttleworth: Unity on Wayland
Remoting a window manager, in particular, hasn't been a terribly useful option for a long time.
Posted Nov 5, 2010 7:13 UTC (Fri)
by jzbiciak (guest, #5246)
[Link] (16 responses)
I'm actually quite OK with this, since it plays well into advances we've made (fast CPUs == fast compression, and we have ever increasing bandwidth), and does a better job of tolerating the one major bit that hasn't advanced much: round-trip latency.
I have an X application I sometimes need to run remotely over a VPN link over VDSL. I have gobs of bandwidth, but the RTT sucks. The app is barely usable. In contrast, Windows Remote Desktop and VNC both work just fine over the same link. Both of the latter seem to be more of the "dumb bitmap plus compression" school of thought, and that seems to work pretty well with modern setups.
Posted Nov 5, 2010 7:34 UTC (Fri)
by dlang (guest, #313)
[Link] (7 responses)
Posted Nov 5, 2010 12:50 UTC (Fri)
by i3839 (guest, #31386)
[Link] (5 responses)
The main advantage of Wayland is that it simplifies the whole graphics stack enormously. It uses DRI2/KMS, just like X does, so it doesn't give extra possibilities or a magic performance increase.
Posted Nov 5, 2010 15:19 UTC (Fri)
by drag (guest, #31333)
[Link] (4 responses)
Wayland is much simpler because it depends on a modern graphic stack. It'll be faster then X, though, simply because it's much less overhead and cleaner implementation. It won't be magical, of course. Only modest improvements. Probably be better in terms of battery life....
There is also no reason why you need to give up X Windows to use Wayland. I use X Windows just fine in Microsoft Windows. Also lots of people use X Windows just fine in OS X. Given that Wayland is naturally composited interface then having a Wayland-specific X Server that draws to off-screen buffers will allow natural integration and backwards compatibility with current applications.
Not that there is a Wayland DDX like there is for MS Windows DDX and XQuartz DDX, but it's certainly going to be a requirement. It's one of those things that will have to be made before Wayland is usable.
Applications that use Wayland will immediately be able to benefit from being 'native wayland', but X apps won't get lost out in the cold.
Posted Nov 6, 2010 4:22 UTC (Sat)
by rqosa (subscriber, #24136)
[Link] (3 responses)
> Applications that use Wayland will immediately be able to benefit from being 'native wayland' These native Wayland apps use DRI2 to draw to offscreen buffers, right? So, isn't it true that there's no reason why X clients couldn't also be made to use DRI2 to draw to offscreen buffers? And in that case, there's no significant speed penalty to using X (because the X clients then are doing direct rendering without needing to go through the X server (as in AIGLX)), right? And if Wayland doesn't have a speed advantage over X, then what is its advantage?
Posted Nov 6, 2010 6:04 UTC (Sat)
by PO8 (guest, #41661)
[Link] (2 responses)
Posted Nov 8, 2010 16:14 UTC (Mon)
by renox (guest, #23785)
[Link] (1 responses)
Posted Nov 9, 2010 0:19 UTC (Tue)
by alankila (guest, #47141)
[Link]
Posted Nov 5, 2010 17:50 UTC (Fri)
by jzbiciak (guest, #5246)
[Link]
You just lose the shared-memory efficiency when you hand over the results, since the client's video card and the compositor's video card are in two entirely different boxes.
Posted Nov 5, 2010 9:07 UTC (Fri)
by marcH (subscriber, #57642)
[Link] (3 responses)
Err... are you seriously expecting network latency to become better? You know that it depends on the speed of light, right?
I know it could be better than Ethernet *on the LAN* but I doubt that X protocols are soooo chatty they would feel any difference.
> I have an X application I sometimes need to run remotely over a VPN link over VDSL.
DSL offers notoriously bad round trip times (20-30ms) because of the massive amount of Forward Error Correction. You should either look for an ISP that allows to tune your FEC (as explained here http://www.dslreports.com/faq/2182), or for an entirely different and better access technology like DOCSIS. Maybe even 3G has better latency than DSL. Anyone knows?
Posted Nov 5, 2010 15:22 UTC (Fri)
by centenary (guest, #71028)
[Link] (2 responses)
I think you're misreading his point. His point *is* the fact that network latencies won't improve (which you're also saying here). Since network latencies won't improve, bitmap-oriented protocols have an advantage since X-forwarding performs poorly under network latency.
Posted Nov 5, 2010 17:58 UTC (Fri)
by jzbiciak (guest, #5246)
[Link] (1 responses)
I didn't call out physics as the cause. I figured the speed of light should be pretty obvious in this crowd. :-) As for using DSL vs. something else: At least I'm not using satellite. *shudder*
In the end it wasn't a technical decision on my part anyway: The state of broadband being what it is around here, my shopping experience for a provider amounted to telling the sales person "I run servers", and seeing what happened. The cable guys told me "have a nice day," whereas the DSL guys asked "with or without static IP?" It may've changed since then, but does it really matter? I'm now spiraling way off topic.
Posted Nov 7, 2010 15:52 UTC (Sun)
by marcH (subscriber, #57642)
[Link]
With your shopping experience yes maybe... on the other hand the latencies of broadband technologies is quite relevant.
Posted Nov 5, 2010 15:48 UTC (Fri)
by deepfire (guest, #26138)
[Link] (3 responses)
Well, this is somewhat of a strawman. The fact that X is not implemented particularly efficiently does not mean that X is not fundamentally better than dumb protocols.
If you want to compare apples to apples, see NX, the heavily-optimised implementation of the X protocol. I use it daily, and FWIW it beats crap out of the competition.
Posted Nov 6, 2010 6:20 UTC (Sat)
by butlerm (subscriber, #13312)
[Link] (2 responses)
That said, I sure hope someone is looking at a mid-layer API that can be adapted to virtually any combination of user interface toolkit and display communication protocol without having to reduce everything to a bitmap first.
Why should nearly any kind of application be programmed to an API that is designed to be non-remotable? That is the highway to balkanization. What we need is a generic mid-layer API that can reasonably support both scenarios without the historical infelicities of X, so you do not have to re-port your entire application just because you want to run it remotely on occasion, preferably without feeling you are watching satellite tv during a snowstorm.
Posted Nov 6, 2010 9:37 UTC (Sat)
by quotemstr (subscriber, #45331)
[Link]
Posted Nov 6, 2010 13:09 UTC (Sat)
by deepfire (guest, #26138)
[Link]
Posted Nov 8, 2010 8:16 UTC (Mon)
by nix (subscriber, #2304)
[Link] (2 responses)
(oh, wait.)
Posted Nov 12, 2010 3:07 UTC (Fri)
by jmorris42 (guest, #2203)
[Link] (1 responses)
Yea, that is just an extra helping of fail to go along with ditching network transparency. So not only are we supposed to be happy tossing "The Network is the Computer, the Computer is the Network" we also lose "Mechanism not policy" along with it.
After both of those are gone, might as well just buy a Mac and be done with it.
Ya know, one of the attractions of Free Software for me was the hope for freedom from being abandoned by a vendor. But with the lemming like action of the distributions chasing "The Year of Linux on the Desktop" it looks like we (we the *NIX loving folk who were the early adopters) are about to be abandoned. Thankfully we will at least have the option to fall back to a distribution preserving the *NIX way.... even if we have to fork it off from an existing one and maintain it. Right up until Firefox and Chromium go Wayland and drop X support, then things might get messy.
Posted Nov 14, 2010 21:07 UTC (Sun)
by nix (subscriber, #2304)
[Link]
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
So this 'simplicity' isn't very convincing: yes, Wayland itself is simple, but as it's not a complete solution, the result won't be simple!
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
> over VDSL. I have gobs of bandwidth, but the RTT sucks. The app is barely
> usable. In contrast, Windows Remote Desktop and VNC both work just fine
> over the same link. Both of the latter seem to be more of the "dumb bitmap
> plus compression" school of thought, and that seems to work pretty well
> with modern setups.
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency
Legacy X and network transparency