Which one is faster linux or windows

Put to the Test: Is Windows or Linux Faster?

While minimizing costs for infrastructure has always been a concern, with more companies moving to cloud platforms, there’s never been a better time to re-evaluate the operational costs of applications.

Previous InterWorks testing showed Linux performed much better than Windows; however, because the Linux version of Tableau Server that we tested used Hyper and the Windows version didn’t yet have it, we never had a great indicator of how much those gains were due to Hyper versus the operating system.

Over the past couple years, we’ve felt like Tableau Server is faster on Linux, but we’ve never had cold hard data to back up these feelings. Enter this testing suite where we put our data where our mouth is!

The Tests

The setup for this test is a little contrived. I needed the ability to fully saturate the servers quickly while not being limited by my source data or my machine’s ability to send many requests to the servers themselves. I didn’t want to spend too much time fixing workbooks or running tests only to find out that my workbooks were behaving so poorly that no server would have run them well. I needed to test scenarios where the server was saturated and where the server is idle to make sure there isn’t a true runaway winner in the brawl.

While I tried to use scenarios that were accurate to real life, your mileage may vary depending on your actual workload and use cases.

We’ll do a call back to 5 th grade science class and use the scientific method to set up our tests.

Hypotheses: Linux runs about 5-10% fast than Windows on average. AMD will perform similarly to Intel, perhaps a bit worse.

  1. With a newly initialized server (read: totally empty), how long does it take to run a tsm restart?
    • Linux uses time -p tsm restart
    • Windows uses measure-command
  2. Using TabJolt with 1, 5, 10, 15 and 30 concurrent threads, what do average response times look like, and what does the error rate look like?
    • Two workbooks with four dashboards total were pulled from Tableau Public and run against a Snowflake database where datasets are cached early on.
  3. After these tests have been completed, how long does an extract refresh on a CitiBike table take to run?

The Results

For the tsm restart test, the clear winner is Linux. Here are the average restart times:

  • Linux (AMD): 320 seconds
  • Linux (Intel): 329 seconds
  • Windows (AMD): 521 seconds
  • Windows (Intel): 540 seconds
Читайте также:  Переместить пользователя другую группу linux

Interestingly, the Linux restart times were also more consistent, with a standard deviation of seven seconds compared to Windows’ 26 seconds.

For the TabJolt test, the clear winner is again Linux with the average response time of Windows being 48% slower than Linux:

Details on the individual runs are included towards the end of this blog post.

For the extract refresh test, Linux came out on top once more completing the refresh 10% faster than Windows. Here are the averages:

  • Linux (Intel) : 300 seconds
  • Linux (AMD) : 318 seconds
  • Windows (AMD) : 330 seconds
  • Windows (Intel) : 355 seconds

Conclusions

Knowing now that Linux is faster than Windows in all scenarios tested, what other factors should be considered when determining if Linux is the right platform for you to run Tableau Server on?

  • Operational costs: Linux is between 40-50% cheaper than Windows on all public clouds, as Windows licensing is bundled with compute cost.
  • Administration: Linux doesn’t have a desktop graphical user interface. All server administration needs to be done through a command line interface, which can be intimidating. The TSM Web UI on Linux is identical to Windows, however.
  • Data source compatibility: Not all data source types are supported on Linux by Tableau. Be sure to check out Tableau’s driver list here (drivers with an asterisk are Windows-only).

If you’re looking to stretch your Tableau Server as far as possible on your budget, our tests show that not only does Linux cost less to run, but it’s also able to handle higher loads than Windows, perform maintenance operations quicker and return lower dashboard load times.

As tested, you can also save up to 10% on your cloud compute bill by choosing AMD CPUs over Intel and get the same – or slightly better – performance.

Stats for Nerds

It wouldn’t be science if I didn’t show my work! Servers were all c5.4xlarge (Intel) or c5a.4xlarge (AMD) running Ubuntu 18.04 or Windows Server 2019 Base with Tableau Server installed on a GP3 storage drive. Here’s the cost breakdown for what each of those cost to run in an “average” 732-hour (30.5 day) month:

  • c5.4xlarge (Windows): $1065
  • c5a.4xlarge (Windows): $1020
  • c5.4xlarge (Linux): $530
  • c5a.4xlarge (Linux): $480

Diving into the TabJolt test, the chart here shows an error initially with Intel on Linux, but then the runs look virtually identical. On Windows, the response times are much longer but trended the same between Intel and AMD:

Above: Linux AMD (top) vs. Intel (bottom)

Above: Windows Intel (top) vs. AMD (bottom)

Between these charts, note that the scales are different for the y-axis.

Читайте также:  Настроить vnc сервер linux

Starting with the TabJolt runs with 30 threads and looking at Linux vs. Windows, Windows averaged twice as long to return dashboards and started the run with 11 errors. However, none of those errors occurred after the first dashboards were returned, indicating that there is a bug in the Windows version of Tableau Server when running with TabJolt. The number of tests returned for Linux is roughly twice the number as for Windows because the server returned dashboards in half the time. The response time is about 44% slower on Windows on average. Moving to 15 threads, the same trend continues with Windows being slower on average by about 31%. With 10 threads, Windows is 45% slower for responses. Five threads puts Windows behind by 52%. One thread Windows is slower by 48%. These numbers are close to a target of about 50% slower performance on Windows:

Above: 30 Threads Linux (top) vs. Windows (bottom)

Above: 15 Threads Windows (top) vs. Linux (bottom)

Above: 10 threads Windows (top) vs. Linux (bottom)

Running these tests using Hyper workbooks vs. live connections uncovers disk-read speeds and ensures that queries back to live databases is not a bottleneck. With 10 threads, Windows was 39% slower. With 15 threads, Windows was 42% slower. With 30 threads, Windows was 37% slower:

Above: 15 threads Linux (top) vs. Windows (bottom)

Analysis and Findings

In all the tests we ran, Linux was 1.5 to 2 times faster than Windows. This might not be fully representative in real-world scenarios, but some improvements should be at least partially realized in real-world scenarios. Both instances were running with gp3 disks in AWS with the same number of IOPS and throughput configured. This means that it should come down purely to the operating system’s ability to read and write data to/from the disk.

Using Hyper vs. live connection tests allows us to determine that using Snowflake as a backend did not conflate our results with a query to a live database being the slow part of rendering the dashboard. It also allows us to test read speeds from hard disks for Linux and Windows for the initial tests before data was kept in the memory cache. There will be a point that both Snowflake and Hyper data is kept in Tableau Server’s memory, meaning that tests come down purely to the OS’s ability to serve dashboards as fast as possible. Looking at the average load times over a five-minute test will reveal this true number vs. a number that includes querying a database, loading that data and then rendering the viz.

Читайте также:  Линукс убрать пароль при входе

Refreshing extracts is slightly more contrived because the drivers for Windows vs. Linux might be more optimized for one over the other. Since the same version of the driver was used and it was pulled from the same data source, the results should be safe to compare.

Источник

Which operating system is faster — Windows or Linux?

It depends on the type of hardware you’re running. If you have at least a dual core processor and 3-4 GB of RAM, your computer should be capable of running any OS pretty fast. Then it’s just a matter of which OS would be easier for you to use and which you would prefer.

As others have said, it depends a lot on the configuration, but broadly speaking, Linux requires a less powerful processor. which by extension would suggest that for a given processor, it would run faster.

Depends on what you are doing. There’s no clear cut winner either. Linux is pretty generic. There’s hundreds of different versions that look different, run different, include different programs and bundled software. It’s hard to say for sure. A lightweight Linux distro will probably give you better performance browsing the web and playing media files than Windows (unless you optimize an XP cd with nLite and remove various features and tweak settings)

I agree with sneakily that it does depend on configuration and that Windows 7 loads very quickly. It also depends on what Linux system you are talking about. Ubuntu? Red Hat? Redora? Historically Linux has loaded much quicker and been more stable than several other operating systems, but with all the programs and interface modifications from some of the current versions, some of those advantages are debatable. I’d say Windows 7 and, let’s say, Ubuntu, go head to head on speed, but Ubuntu is more lightweight.

This completely depends on your system, the configuration, and the software you’re trying to use. If you have a modern computer (less than 2 years old) with decent memory (2gb or more) and you don’t clutter up your startup with useless programs, Windows 7 is plenty fast. Most Linux Distros boot up fast, and run fast depending on what you’re trying to accomplish. but if you don’t know how to use them properly (mainly file structure and priviledges/permissions, software install/uninstall), you can end up wasting a lot of time trying to figure things out instead of doing things. I’m actually a big fan of both Linux and win7 myself, and both have advantages, disadvantages. but as for actual speed, your OS isn’t going to make much of a difference compared to your hardware components, drivers, and software configuration.

Источник

Оцените статью
Adblock
detector