CTX201812
2016-04-20
1970-01-01
Note: This article is written for the initial release of XenDesktop 7.6. No graphics modes such as Framehawk (XD7.6 FP2 ...

Information

Note: This article is written for the initial release of XenDesktop 7.6. No graphics modes such as Framehawk (XD7.6 FP2) or Thinwire plus are covered which were released later. It is believed to cover all graphics modes for versions XenDesktop/XenApp 7.0 to 7.6 FP1.

Since the release of the XenApp and XenDesktop 7.x platform, many of the default HDX settings have changed. These changes can have a significant impact on the resource utilization and performance of a deployment as compared to previous versions. Additionally, customer migrations are expected to rise with the release of XenApp and XenDesktop 7.6 due to the enhanced feature set and end of mainstream support for Windows 2008 R2.
This TechNote provides an overview of the graphics modes available with XenApp and XenDesktop 7.X, outlines the changes made to default settings, discusses scenarios where the graphics mode can have serious consequences for an environment and provides details on how to view the graphics mode information for a session.

HDX Graphics Modes

While in XenApp 6.5 there is a single major graphics mode, there are four major graphics modes available in the XenDesktop 7.x platform - summarized below.
User-added image

Desktop Composition Redirection

Desktop Composition Redirection (DCR) is based on the Aero Redirection feature introduced with XenDesktop 5.x. DCR offloads DirectX commands used by the Desktop Windows Manager to the user’s Windows device which reduces CPU load on the server. DCR was set as the default option for desktop VDAs because desktop composition cannot be disabled with Windows 8 and above. Prior to XenDesktop 7.6, DCR required significantly more bandwidth because it did not leverage any adaptive settings (it is fixed quality). Therefore, DCR should be disabled for WAN users accessing a XenDesktop
7.5 and below VDA. (Disabling Aero in Win 7 will also disable DCR.)
DCR in XenDesktop 7.6 has several improvements that lower its bandwidth requirements, including adaptive graphics. With existing Windows Receivers 3.x to 4.1 DCR can leverage adaptive graphics similar to those found in XenDesktop 5.x (JPEG). With Receiver 4.2 DCR will leverage an H.264 adaptive display. DCR is also now available on Mac end-points with Receiver 11.9.

H.264 Enhanced SuperCodec

Initially part of HDX 3D Pro, the H.264 encoder is now part of the enhanced HDX SuperCodec graphics mode and allows for the delivery of Windows 8 and Server 2012 desktops. The encoder used in previous versions of XenApp and XenDesktop cannot be loaded in Windows 8 and is not optimized for Server 2012. Therefore this graphics mode is the default setting instead of the legacy mode in XenApp?? and XenDesktop 5.6. The codec runs completely on the server CPU (not in GPU) and allows for a desktop with desktop composition (Aero in Win7) to be delivered to any device although at the cost of additional server side CPU.

Compatibility Mode

When the endpoint Receiver does not support H.264 decoding or visual quality is set to “lossless” or “build to lossless”, the VDA will use an alternate JPEG based encoder. When this encoder is in use the graphics mode is called compatibility mode and should be avoided unless delivering a lossless session (no compression). The encoder can cause heavy bandwidth usage (3x or more) and can quickly saturate WAN connections. It is currently being rewritten although no release date has been set.
The following is?? an example of how Compatibility Mode may appear compared to the H.264 encoder with lossless text. On the left is compatibility mode which leaves artifacts and can result in blurry text. On the right, the H.264 encoder with lossless text is noticeably sharper.
User-added image
The minimum Receiver versions to avoid Compatibility Mode are as follows.
  • Windows – Receiver 3.4
  • Mac – Receiver 11.8
  • Linux – Receiver 13.0
  • Mobile – Latest iOS or Android Receiver
  • HTML5 Receiver 1.3
  • Many thin client vendors are given access to the Receiver source code and create custom Receiver versions. At this time, there is no Receiver version on Dell’s Wyse ThinOS that supports the H.264 enhanced graphics mode.

Legacy Mode (Thinwire/Adaptive Display)

Legacy Mode in XenApp and XenDesktop 7.x enables the XenDesktop 5.x and XenApp 6.5 settings allowing for what was known as Adaptive Display. It is only applied through the Citrix Computer Policy of the same name. It is unavailable on Windows 8 and above due to Microsoft OS changes. It is available on Server 2012, but it cannot optimize the session due to Microsoft OS graphics changes and is not recommended unless Compatibility Mode is the alternative. There has been some reported customer?? success using Legacy Mode with Server 2012 when limiting the graphical experience (animations, wallpaper, and so on).
Enabling Legacy Mode does not disable DCR. If both are enabled, end points that can leverage DCR will continue to do so. Endpoints that cannot leverage DCR will revert to Legacy Mode instead of the?? H.264 enhanced codec.

Changes to Default HDX Behavior

The following list highlights some of the changes to default behavior introduced with XenApp and XenDesktop 7.x?? that can affect resource utilization and user experience.
  • Desktop Composition Redirection (DCR) is on by default and requires significantly more bandwidth as of XenDesktop 7.5.
    • XenDesktop 7.6 introduces adaptive graphics within DCR similar to the behavior of the other graphics modes (Based on Receiver, versions mentioned in TechNote).
  • The default frames per second (FPS) setting has increased from 24 (in XenApp 6.5) to 30. This may result in additional bandwidth and CPU utilization (Check if this was lowered additionally by policy if doing a migration to ensure there is not a large jump in resources).
  • The H.264 graphics mode is used by default on XenApp 7.x and is unaffected by many adaptive display policies.
  • It runs as process ctxgfx.exe on the VDA. You can look at its CPU usage in task manager.
    Note: In Legacy mode, the CPU cost was included in each application so this is not entirely a new CPU overhead.
  • The H.264 graphics mode can deliver rich media and server rendered media more efficiently over the WAN. However many existing applications leverage GDI (Graphics Device Interface) and may be better optimized by the Thinwire adaptive display mode (Legacy Mode). (Does not apply on Server 2012/Windows8 and above)
  • H.264 decoding requires a minimum receiver version. Older versions of Receiver will fall back to compatibility mode which suffers from additional bandwidth requirements and quality issues which may result in a poor user experience. Compatibility mode should be used as a last resort only.
  • If VDA is running on Windows 7 or Server 2008 R2, the Thinwire adaptive display mode can be used to avoid compatibility mode issues. It is enabled by Citrix computer policy "Legacy Mode" only.
  • Legacy mode is not supported on Windows 8 nor is it optimized to deliver the graphics stack in Server 2012. Under circumstances where only Legacy Mode and Compatibility Mode are an option, customers have had success with Legacy mode on Server 2012/R2 with a basic desktop experience.

Graphics Mode Selection Leading Practice

Although for first time Citrix deployments, the out of the box graphics settings may be sufficient, it will sometime be necessary to modify these through Citrix policies. The two main scenarios where the graphics modes settings will have a significant impact are:
  1. Users are connecting over WAN connections - due to the large variation in bandwidth requirements of each mode.
  2. Legacy and custom thin client Receivers versions are used - due to the lack of support for the H.264 encoder resulting in a “compatibility encoder”. This encoder suffers from very high bandwidth usage and is not recommended. It is currently being redeveloped.
Warning: There is currently a worst case scenario which, if encountered, should be noted and escalated. In this scenario, the deployment has a large number of Receivers which do not support H.264 decoding (Wyse ThinOS Receiver for example) and the OS deployed is Server 2012 or Windows 8. The compatibility mode encoder may result in high bandwidth and CPU utilization and poor performance. There have been cases where a single user in compatibility mode have saturated a WAN connection.
The following table details which graphics modes are supported and recommended based on the operating system and network connection used.
User-added image
1?? Should the end point use a Receiver which does not support H.264 decoding, the session will revert to the Compatibility Mode Encoder.
2?? Legacy Mode may require less CPU and bandwidth for delivering basic Windows 7 and Server 2008 R2 VDAs.
3?? Legacy Mode with Server 2012/R2 has seen success at customers who limit the visuals of the desktops (no animations, plain wallpaper no mouse shadows). Internal testing is ongoing.

Policy Table by HDX Graphics Mode

Many of the graphics policies in XenApp and XenDesktop 7.x only apply when a session is using a specific graphics mode. To help determine which policies will apply to a session see the policy table below adapted from a publicly available version in a highly recommended blog post by Gabriel Nguyen and Fedi Saidane.
PolicyUser / ComputerDesktop Composition RedirectionH.264Compatibility ModeLegacy Graphics ModeDefault Setting / Comments
Desktop Composition graphics qualityUserX?? ?? ?? Medium
Desktop Composition RedirectionUserX?? ?? ?? Enabled
Display memory limitComputer?? XXX65536 KB
Display mode degrade preferenceComputer?? ?? ?? XDegrade color depth first
Dynamic window previewComputer?? XXXEnabled
Image cachingComputer?? ?? ?? XEnabled??
Legacy graphics modeComputer?? ?? ?? XDisabled
This policy will enable Legacy Graphics Mode
Maximum allowed color depthComputer?? ?? ?? X32 Bits Per Pixel
Notify user when experience is degradedComputer?? ?? ?? XDisabled
Only works on RDS. The UI Dialog for this didn’t get implemented in the Workstation VDA originally.
Persistent cache thresholdComputer?? ?? ?? X3000000 Kbps
Queuing and tossingComputer?? ?? ?? XEnabled
Extra color compressionUser?? ?? ?? XDisabled
Extra Color Compression is an optimization that saves up to 20% on the size of lossy compressed images, but at the expense of quality.
Turning it off makes some images, like text over a complex background appear sharper.
Extra color compression thresholdUser?? ?? ?? X8192 Kbps
Heavyweight compressionUser?? ?? ?? XDisabled
Lossy compression levelUser?? ?? ?? XMedium
Lossy compression level threshold valueUser?? ?? ?? X2147483647 Kbps
Minimum image qualityUser?? ?? ?? XNormal
Moving image compressionUser?? ?? ?? XEnabled
Enables or disables Adaptive Display. Disabling Adaptive Display in Legacy Mode will revert to progressive display.
Progressive compression levelUser?? ?? ?? XNone
If enabled in Legacy Mode, Adaptive Display is disabled and switched to Progressive Display.
Progressive compression threshold valueUser?? ?? ?? X2147483647 Kbps
Target frame rateUser?? XXX30 fps
Target minimum frame rateUser?? ?? ?? X10 fps
Valid for Legacy Adaptive Display ONLY: this setting is used to decide when to reduce quality for transient (moving) images.
Visual qualityUser?? XX?? Medium
Setting the visual quality to ‘lossless’ or ‘build to lossless’ will use compatibility mode as it will not leverage compression. This is the only case when Compatibility Mode should be used.

Identifying HDX Graphics Mode Used

There are several ways to determine which graphics mode is used within a session for troubleshooting purposes. The best way to determine the graphics mode used depends on whether or not the session is accessible and if there are sufficient permissions to install HDX Monitor.
To remotely capture the graphics mode for all sessions in a site, you may run the script attached below on a delivery controller in the site or a machine with the PowerShell snapins installed. It will return a CSV with the username, desktop name, and graphics mode for active sessions along with additional information for troubleshooting. It is provided as-is and is not supported by Citrix. An example screenshot is provided below.
?? Site Graphics Modes Script
User-added image
To check the graphics mode for a single session, use either HDX Monitor or WMI queries (via cmd or PowerShell equivalent). Below is a step by step guide to the graphics modes within HDX Monitor.
HDX Monitor can connect remotely to a VDA and specific sessions can be selected should the VDA be on a XenApp machine.
ScreenshotDetails
??
User-added image
When opening HDX Monitor in XenDesktop there are three tabs which display information about the graphics modes.
Red – DCR
Blue – H.264/Compatibility
Green – Legacy (Thinwire)
??

??
?? User-added image
??
If using DCR the Direct 3D tab will show that Composition Redirection has started and is active.
When using HDX Monitor to look at a session on a XenApp 7.x machine the Direct 3D tab will be unavailable as it is only supported on the Desktop VDA.
User-added image
User-added image
In this case the graphics mode is using H.264 as noted by ‘DeepCompression’
Note that if Legacy mode is enabled, the same information will still be displayed however a warning message will appear at the bottom indicating that this graphics mode is not in use.
User-added image
User-added image
The Thinwire tab which displays Legacy Mode information will also display a warning if it is not enabled.
The warning message on either tab is the simplest way to distinguish whether Legacy Mode is in use.
It is only used if explicitly enabled through policy.??
User-added imageAlternatively, the same information can be extracted directly through WMIC queries.
The commands to the left can be run on a Desktop VDA to determine if DCR is currently in use.
Through PowerShell the equivalent command is Get-WMIObject -
Namespace root\citrix\hdx – Class citrix_virtualchannel_d3d
User-added imageThe commands in this screenshot can be run on either a Desktop or Server VDA to determine if the H.264, Compatibility, or Legacy graphics modes are in use.
“Component_Encoder” – will show whether H.264 or compatibility are in use should “Legacy Mode” be disabled.
If Policy_LegacyGraphicsMode is ‘TRUE’ then Legacy mode is enabled and will be used unless the VDA is on a Windows 8 desktop.
Note:?? AtomicFrameSupport is required for H.264 decoding. It is the default setting for Receiver 3.4 and above, however some customers have disabled this if using Presentation Server 4 due to a refresh issue.
For XenApp Hosts:
On a XenApp host only the first session information will be presented. If that session is for another user, the information may not be visible. To get information for all sessions append
_enum to the command to retrieve all sessions on the host.

Additional Resources

There are several resources which you can use for additional information as well as public customer reference.
  1. Virtual Desktop Handbook 7.x – Graphics modes design decisions are included under the Bandwidth Requirements section in the Design chapter.
  2. HDX display with XenDesktop and XenApp 7.x – Detailed blog article covering graphics modes as well as policies. Also covers some recent field experience when Legacy Mode is the preferred mode. Contains the policy tables which have been adapted in this TechNote.
  3. XenDesktop/XenApp 7.x Encoding Intro – Blog article which introduces the graphics modes and provides some design guidance and data.
Note: If blogging about the graphics modes, please tag blog posts with “HDX” and “HDX Graphics” so that PMs can track and distribute accordingly.
If you’d like to provide feedback and ideas on HDX policy templates in Citrix Studio please refer to the article by HDX PM Rachel Berry.
??
Document Management
TechNote IssueDNA TechNote #004
TitleHDX 7.x: Do You Know Your Graphics Mode?
ProductXenApp / XenDesktop 7.x
OwnerWorldwide Consulting Services
ContributorsCitrix Worldwide Consulting would like to thank the following people that contributed to the creation of this TechNote:
  • Amit Ben-Chanoch (author / requestor)
  • Gabriel Nguyen (author)
  • Fedi Saidane (author)
  • Andrew Woodard (author)
  • Marcel Calef (contributor)
  • Rachel Berry (reviewer / requestor)
  • David Case (reviewer)
  • Scott Mooney (reviewer)
  • Derek Thorslund (reviewer)
Access / FeedbackTechNotes are available to all Citrix employees. To request access, provide feedback, or submit a TechNote idea please use the form below.
https://podio.com/webforms/6040613/470785
For access please select “TechNote” on the form above and include your email address and “Access Request” under TechNote feedback.
Revision HistoryOctober 1, 2014 ; Rev 1 – Document created

Applicable Products


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.