📜 ⬆️ ⬇️

Terminal server for AutoCAD

I was interested in the terminal server for CAD systems for a long time and this article is the result of research on the Internet. In this article we will talk specifically about the terminal server for Avtokad.

AutoCAD is quite resource-intensive application that requires all the resources of iron: the RAM, the video card, the powerful processor and fast disks. And the thought immediately arises that freestanding powerful PCs are the best option. But we tried to deploy a terminal server for this application and put it into practice.

So, the configuration of our cool server:

  1. Supermicro platform (already nekruto, but still quite bright);
  2. 2 E5-2260 v4 processors with 28 physical cores, and with hyperthreading feature enabled 56 cores;
  3. Hypervisor — Citrix Xenserver 7.0 host operating system
  4. guest operating system Server 2016 Standart;
  5. Raid array 10 - 4 HDD disks of 1 TB with a rotation speed of 10,000 revolutions per minute;
  6. Ethernet 1 Gb / sek;
  7. The most important component is 2 Tesla m60 16 Gb video accelerators.

In fact, the server was designed to create virtual machines on windows 10 and deliver them to the user via Citrix Receiver. Virtual machines exist, but I wanted to create not many virtual lovers for many users, but one.
')
I was looking for how to make a terminal server with delivery via citrix receiver - I did not find the VDAforHDX 3dPro agent for the server OS, if anyone knows how and what, please, drop the link in the comments, so I created a server with delivery via RDP.

Let's start in order:

  1. creating a virtual machine in Citrix Xendesctop;
  2. installation of the operating system for the Server 2016 Standart virtual machine;
  3. installation of updates for the virtual machine OS;
  4. Installing Citrix guest services on a virtual machine - after that, the shutdown and restart options will appear in the virtual machine context menu - this will allow you to shut down and restart the virtual machine from Xenserver correctly (before that, only force shutdown and force reboot were available);
  5. We send the Teslam60 video card to the virtual machine using the passthrough method.

image

Further, according to the article, we install both drivers, but, I suppose, only the grid driver could be installed for the virtual machine. Further drivers do nothing more from this article.

Then you need to go to the nvidia control panel and select the default Tesla m60 video card in the 3d settings, by the way, after that, I lost the opportunity to select the default video card and now always appears like this:

image

Next, you need to install the terminal server role and enable the following group policy: Computer Configuration - Administrative Templates - Windows Components - Remote Desktop Services - Remote Desktop Session Host - Remote Session Environment - Use the default hardware graphics adapter

Here is the article that helped me do this: Measuring GPU Utilizationin Remote Desktop Services.

Since we are creating a terminal server, as a result of the work of users in any of the applications, temporary files will be created, so in order to minimize the load on the file subsystem, you can install a Ram disk and transfer temporary files to it - In the system settings - Additional system settings - Advanced tab - Environment Variables button :

Modify the following variables for both user and system:
Tmp
TEMP

image

To change these variables to a regular user — make him an administrator — change the variables, and then take away administrator rights. In variables, do not specify the root of the Ram disk - some programs will not work because of this, create a folder in the Ram disk - like I have T: \ temp. Also give this folder full rights for users.
After the reboot, the server is ready for operation and if we start AutoCAD, we will see that hardware acceleration is enabled .

All tests were performed using the GridVirtualAPP license - in the Nvidia control panel - in the Licensing section. To use QuadroDataCenterWorkstation, you must install a license server and purchase the appropriate licenses. They are bought from us - but still testing was carried out under the licenses of GridVirtualaPP .

So go to the test results. First, according to the already mentioned article, we included testing of WEbGL - we launched it at ie http://fishgl.com .

We started on one client and saw joyful 50-70 fps - the video card works.
Launched on three and fps started jumping from 25 to 60 - an average of 35-40 - the quality noticeably subsided began to appear small lags.

Here is a graph of gpu utilization, showing the difference in resource consumption between 1 and 3 users - where the load starts to increase - this is the moment of inclusion of fishgl.com in the site, ie two more users.

image

After turning on 3 more, everything became even worse. Fps began to sit up to 10 and the processor of the video card was loaded to 100%

image

As a result of the obtained results, we realized that it is better not to launch webgl technologies on a terminal server - and, in general, if it is possible to provide access to the Internet from under a local browser. First, the user can open in 10 browsers on 100 tabs, and there certainly will not sustain any server. And, secondly, without the Internet, the terminal server will be more complete.

Now let's proceed to the review of testing autocad on our server.

First, we went to the terminal server with 16 thin clients and started the AutoCAD, we launched the standard drawings in the AutoCad, we weren't doing drawing.

Here are the graphics

CPU

image

Ethernet

image

GPU

image

There is no schedule for using RAM, but I’ll say that the server first had 20 GB, but after connecting 13 clients, it consumed 18.2 and AutoCAD started to display errors about the lack of memory. After that, we added another 10 GB of RAM and errors were gone, and the consumption of RAM did not rise above 22 GB. From the obtained graphs it can be seen that the use of the server's processor goes up to 50%, the disk subsystem is not particularly involved, the network activity of a maximum of 20 Mbit / s gave out jumps, the average is up to 1 Mbit, oddly enough, but the use of video memory is significant 7.2 GB from 8. From here we can conclude that the maximum number of users is 16, and this is practically without a stock, and at that moment when they do not draw in AutoCAD, they simply opened the drawing.

Next, we planted for thin clients of 3rd year students and asked to draw small parts in 3d and 2d. First, we launched AutoCAD from all thin clients:

image

Video memory just started AutoCAD without opening the drawing consumed 2.9 GB.

Next, the jellies began to draw, who was 2d, some 3d, about 50 to 50. There were no special complaints, believed at the time of opening the drawing, and very small delays, which are very rare and the impression of drawing as on a local PC.

We can immediately conclude that in this configuration there are not enough 8 CPU cores, it is better to make 10 or 12, the RAM is enough, but it is better to allocate about 2-3 GB per user.

image

Then they tried to render a drawing at one station - they rendered a 3d-model of 4 walls and immediately got lags in the work of the autocade - some students started complaining that sometimes it became jerky to work. We asked 5 students to leave and the lags stopped, although a drawing was still being rendered at one station. Below are the graphics, when 16 students are working and rendering is running - you can just see the moment when the rendering starts.

image

In principle, this was enough for us, but we decided to go ahead and started rendering at 3 more places and the auto cad began to slow down everywhere so that the work was clearly not pleasant, but still one student had to be noted, everything worked for him ... but the drawing he was from lines 10 ...

From this we can conclude that the Terminal server on a virtual machine with the 1st TeslaM60, which was passthrough's passthrough method, can be used to work in an autocade using the rdp protocol with up to 15 users, preferably about 12-13 per server, and you can draw in 2d and 3d (small), but without rendering .

Where to use: when learning to work in auto-caddy - in those disciplines where rendering is not needed (or any other highly demanding technologies), for example, for automatists or technologists who draw only in 2d. Builders, mechanics and other highly demanding autokadnye personality will complain and spit. But if you have such a server, and computers with demanding personalities are very outdated, they will gladly honor it on such a server without using rendering, since drawing rendering is the final stage just before passing the test to the discipline, and this time can be distributed in time, for example, run one by one. But this requires an adequate teacher or laboratory technician who oversees the computer class drawing process.
What makes the terminal server easier: Firstly, the installation time is, on the strength of the installation and configuration day, rather than reinstalling 15 computers, downloading updates and installing updates on each autocad. Secondly, administration of one server, but not 15 computers.

Minuses: Firstly, one server is one point of failure, the server has died, your training process has died. Therefore, a second such server is needed, but since this is a virtual server, it is better that there are two host servers and backup virtual machines are made, and if one fails, you will quickly start the virtual machine from backup on the second.

Secondly, server resources are used by many users at once, and if there is one too clever user who starts a lot of things, then there will be little resources left and can be laid on everyone. But this is precisely what should be followed by both the server administrator and the teacher of a group of students.

Third rdp it and rdp in Africa. The network will fail, it will be impossible to work and the optimization of the rdp protocol will certainly significantly improve the quality of use, but there are still some complaints about the operation of this technology and not all applications work well with it.
Why chose rdp - because they read here that autocad supports work through this protocol. But it is better to use Citrix Receiver, but unfortunately I did not find the manual how to use Citrix XenDesktop for the terminal server, which has CAD applications - all of the search manuals for individual virtual machines with desktop os — win7, 8, or 10, in which during installation indicates the type of agent VDA - forHDX 3dpro, but for the server OS there is no such agent, there is only just a VDA. Agent VDAforHDX 3dPro for virtual machines that have a video card. If anyone knows how to make the same terminal server using Citrix XenDesktop and if you know where to find VDAforHDX 3dPro for the server OS, please write in the comments.

Now let's calculate how much it all costs.

Iron server with 2 Tesla M60 cost us 1,500,000 rubles
Hypervisor XenServer7.0 - 125 000r
WindowsServer will cost approximately 60,000
Terminal license - 1 700 r (one piece)
At most, we can create 4 such terminal servers, because in the hypervisor 2 Tesla M60 video cards are displayed as 4. 4 terminal servers will pull a maximum of 50-60 clients.
When using XenServer as a hypervisor:
If 60 users per server
1500 000+ 125 000 + 60 000 * 4 + 1700 * 60 = 1967000
In terms of workplace 32783 p

If 50 users per server:
1500 000 + 125 000 + 60 000 * 4 + 1700 * 50 = 1950000
In recalculation on a workplace 39000

If you take WindowsServer 2016 DataCenter as a hypervisor, you don’t have to pay for virtual machines OS, and Server 2016 itself costs about 250000 on DataCenter on 28 cores
1500 000 + 250000+ 1700 * 60 = 1852000
30886 rub for a workplace in recalculation on 60 users

Connections can be made, for example, using thin clients that cost up to 20,000 rubles, for example, an hp T620, or nettops, for example, a Lenovo m600, but the best option is to use self-assemblies. Here is an example of such self-collecting

  1. Desktop SilverStone Milo ML05 <SST-ML05B> Black Mini-iTX Without BP 1 pc. 3,690
  2. Power supply NAVAN <SFX-400W> 400W SFX (24 + 4 pin) 1 pc. 1,378
  3. ASRock H110M-ITX (RTL) LGA1151 PCI-E DVI + HDMI GbLAN SATA Mini-ITX 2DDR4 1 pc. 4,305
    CPU Intel Core i3-7320 4.1 GHz / 2core / SVGA HD Graphics 630 / 4Mb / LGA1151 1 pc. 10 331
    SSD 120 Gb SATA 6Gb / s ADATA Ultimate SU700 <ASU700SS-120GT-C> 2.5 "3D TLC 1 Piece 3 813
    Crucial DDR4 RDIMM 4Gb <PC4-17000> CL15 ECC Registered 1 pc. 4,428
    21.5 "Acer LCD <UM.WV6EE.A09> V226HQL Abmd (LCD, Wide, 1920x1080, D-Sub, DVI) 1 pc. 6,703
    2Gb <PCI-E> DDR3 MSI GT710 2GD3H LP (RTL) D-Sub + DVI + HDMI 1 pc.
    3 321

    Total: 37 969 rubles. ($ 617.48)

    Having bought a thin client, you will spend 30,000 rubles with a monitor and a mouse keyboard, it will have a pre-installed operating system designed only for remote connection anywhere and not quite a working browser. But having spent a little more and buying self-collecting for 40 thousand rubles, you will receive a full-fledged PC with a good processor and a video card. By installing free Linux on it, for example, Ubuntu or Linux Mint, you will get a full-fledged OS with the ability to install additional software - this can be a variety of applications - from text editors to CAD-applications. You can even install AutoCAD equivalents on them, for example, BricksCad, but still if your educational institution is taught how to work in Windows applications, you will have to either install it on each Windows workstation or deploy a terminal server.

    I am at the terminal server if the application allows you to use the launch mode by many users from one server. At the same time, by increasing the number of users on the server, you will reduce the price of the OS license per user. This is especially true at the present time when Dream Spark from small-scale software is closed for Russia, and the government decree prohibits the purchase of foreign software for educational institutions without a justification. In addition, in the new May decrees they plan to transfer the entire state sector to domestic software by the year 24, how it is unclear, and therefore it is necessary to stock up software now.

    Let's calculate the price for a workstation in several ways.

    Total in the minimum configuration one workplace will cost:
    thin client - 20000 r
    monitor - 7000 r
    mouse keyboard - 2000 p
    Workstation on the terminal server - 30000 r
    Total 59 000

    If you buy self-assembly and Windows:
    self-collection with a monitor 38000 p
    keyboard mouse - 2000 p
    Windows 10 pro - 9000 r
    Total 49,000

    10,000 p is a small overpayment, but choosing the second option increases administration costs: installing windows and drivers takes more time than simply turning on a thin client, or installing Linux mints. In addition, you need to take care of anti-virus software, and, from experience, I can say that 95 percent of all viruses for Windows.

    If we choose the third option - a terminal server and self-collection with Linux, we get:
    Workstation on the terminal server - 30000 r
    self-collecting with a 38000 monitor
    keyboard mouse 2000 r
    total: 70000 r

    The price is quite high and for this money you can buy a good self-collection, just for Cad applications, but again, the administration of separate PCs is harder than the administration of the server, especially when it comes to 60 machines. But the performance will be better than on the terminal server, especially in rendering. I also want to note that the server is unloaded - when it is used by one user is a good graphic station, which can be given to the use of department scientists for heavy rendering at a time when there are no pairs.

    In addition, the server can be used by dividing its resources in time, for example, there are two computer classes with old technology, but both need autocad. Let some use it on the first pair, and the second on the second. Thus, you can increase the number of workstations in two and the price of one workplace will fall below 30,000.

    You can allow students to connect to the server from your home or university library, thereby providing all the software necessary for course, practical or thesis.

    Whether to use such servers in the educational process is a moot point. But time moves ahead and virtualization is becoming cheaper, more accessible and more stable. In addition, such a server allows you to increase the speed of creating a computer class at times.

    One more thing - if you buy a server not with 2 video cards but from 4, then the price for the workplace will fall again.

    The question is complex and it is necessary to weigh the pros and cons and build on the specific task for what and why.

    PS Add comments - I would like to know your opinion on this issue.

Source: https://habr.com/ru/post/358516/


All Articles