📜 ⬆️ ⬇️

Experience using a dedicated server on the Intel Atom 330

Recently I tried to draw attention to servers on Intel Atom processors. Many met them with skepticism: “Can a processor for cheap laptops be in a server?”. Now the colocation nettop service on Atom has already become common, and I’m ready to share with you a month’s experience with using the server on the Intel Atom.

Server configuration - Acer Aspire Revo 3600 nettop on nVidia Ion platform, Intel Atom 330 (2 physical cores, 64 bit), 4GB DDR2-800 memory (Ubuntu 64-bit saw only 3.2GB, you need to turn the BIOS), SSD OCZ Vertex 30Gb. From the SSD optimizations - the partition is mounted with noatime, access logs are disabled, swap is disabled (this is necessary to increase the service life - fewer records - it will last longer, about all this in a separate article. Less than 0.5% of the SSD resource was spent a month) .

The server was placed in the company Agave - they have it already the official tariff plan.
For 1000 rubles per month, we have unlimited traffic based on ratios (it is a bit annoying, especially foreign traffic), free KVM 1 hour per day (used - all without problems), restarting for 15-30 minutes.
')

Performance: UnixBench


To start with UnixBench 4.1 WHT:
                      INDEX VALUES
 TEST BASELINE RESULT INDEX
 
 Dhrystone 2 using register variables 376783.7 4769578.3 126.6
 Double-Precision Whetstone 83.1 343.6 41.3
 Execl Throughput 188.3 2114.9 112.3
 File Copy 1024 bufsize 2000 maxblocks 2672.0 59159.0 221.4
 File Copy 256 bufsize 500 maxblocks 1077.0 15846.0 147.1
 File Read 4096 bufsize 8000 maxblocks 15382.0 657318.0 427.3
 Pipe-based Context Switching 15448.6 137070.2 88.7
 Pipe Throughput 111814.6 504798.0 45.1
 Process Creation 569.3 7158.0 125.7
 Shell Scripts (8 concurrent) 44.8 446.9 99.8
 System Call Overhead 114433.5 1731146.5 151.3
                                                                  =========
      FINAL SCORE 118.1


Before comparing with the performance of VDS-ok , you need to consider that there is 4GB of memory, and there - 64-256MB. Unixbench does not depend on the amount of memory. Also, you need to carefully compare with VDS-kami with unguaranteed CPU - they can give you almost the entire server in quiet times. The double precision real numbers turned out to be very slow - fortunately, they are rarely used in Web servers. Perhaps for the sake of saving the area of ​​the crystal, double precision is “emulated”, and therefore it slows down terribly?

Performance: Web Applications


Apache2 + MySQL5 + PHP 5.3 + APC, nginx was installed on the server. Apache2 was configured in prefork mode with 4 processes: less than 4 processes - the system is not loaded by 100% and the speed of work decreases. More is also a slow drop in speed. (Ie, the optimal number of children - by the number of virtual cores with hyper-threading). The queue of requests thus "hangs" in nginx, which copes with this task perfectly. MySQL has been configured to consume ~ 0.7GB of memory. PHP sessions are stored in memcached.

Thus, it turned out that at any load Apache + MySQL + PHP will not take more than ~ 1 GB of memory.

NB: During data filling in a MyISAM table with 400'000 rows and 2 indexes, 1000 inserts per second were made with separate queries from PHP.

Load tests were conducted on my home page (http://3.14.by/ru/ - 6 SQL queries, easy PHP), as well as on the PhpBB 3.0.6 forum, with caching in APC. PHP / MySQL / Apache2 / nginx is hand-optimized. Requests were sent from another server in Moscow, 45 parallel requests.

For comparison - unloaded shared hosting at night (load about 0, eu107.activeby.net), with MySQL in a cluster on separate servers. 12GB of memory, processor - Xeon E5410 (4 cores), 2.33Ghz. Apache2, PHP5.2, eAccelerator, nginx.
Atom 330Shared Xeon E5410
3.14.by/ru
6 SQL queries, easy PHP
240 RPS198 RPS
3.14.by/forum
PhpBB 3
30 RPS21 RPS

* RPS - requests per second

Why has Atom overtaken? Local MySQL + big caches for a couple of sites, not for hundreds. Setting up software for specific tasks.

Conclusion


You can argue about the results, but the fact remains: everything works perfectly, well, very quickly, a lot of free memory for growth, no even hints of brakes with a disk or a network (at any moment you can start sending 10 MB / s sharply, ping Moscow 0.5 -4ms, 20 ms to Belarus).

But, as they say, “Memento mori” - its server will ever break. Although only one fan of the mechanics, you need to be ready for this. If this does not suit you, then you will have to be content with more modest VPS capabilities. On the other hand, if something happens - you always fully control the situation, no one will “feed you breakfast.”

This is an excellent example of slowing down technical progress - even a low-end solution can be an ideal solution for many tasks: a lightweight web server, a file server (even 1 Gbit / s), static distribution (1 Gbit / s), streaming video (1 Gbit / s) . Tasks for the "fat" servers certainly remain, but they will have to move a little: crazy:

Personally, I am more than pleased with the “Atomic” server: crazy:

About future


Next year (2010), the next generation Atom will be released: Pineview (32nm). The main difference is the integrated single-channel memory controller (+ only 2GB of memory will be possible). I do not know if this is better for server applications than dual-channel in the chipset, but the power consumption will definitely be much less.

What would really be cool is the mass production of small ARM servers. For example, the Cortex-A9 MPCore already now looks very, very tasty in terms of performance, heat generation, and price. Servers usually run on Linux, so there will be no problems with another command system - even now there is Ubuntu for ARM processors. It will probably make sense to make such a processor without SIMD and with emulated FPU.

Also in ARM one would see many memory slots, 2GB modules will be the cheapest for a long time. The paradoxical situation is that you can buy memory for $ 300, but there is no place to insert it :-) 8-16 slots in mid-end servers would be very tasty. Why so much? Cache does not happen much, and again, the memory is now cheap. In x86 many slots will not be in the mid-end sector, so as not to create extra competition for expensive solutions, with ARM hands are untied: crazy:

You can also read in Russian , in English .

Update: Dell is not sleeping . Walk by walking, comrades! The truth is a little expensive, $ 400 if you take a handful.

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


All Articles