As you may know, SysTutorials is hosted by DreamHost and we are quite satisfied with DreamHost. Now, DreamHost turns to be the first big player that enables solid state drives (SSD) for its Linux-based shared hosting plan in the shared hosting market and we are happy to enjoy the improvement.
SSD is common for VPS and PaaS virtual machines for higher I/O performance. Now, it is coming to shared hosting too.
DreamHost claims that “Now with solid state drives (SSDs), our standard web hosting loads pages 200% faster”.
We ourselves are happy to know this performance improvement with the price kept the same. Good work, DreamHost.
Simple I/O performance measurement on DreamHost shared hosting account ∞
To see how does the new SSD-based storage performs, we did simple tests in one account on one server of DreamHost’s shared hosting. The test is simple: moving files from the home (mounted XFS filesystem which stores the site content) and
/dev/shm/ which is a in-memory file system or using
dd go generate files. The results will reflect how the reads and write perform.
Note that we do not have the root access to flush buffers and invalidate caches, and there are many concurrent users. Hence, the server should be considered relatively busy, and the result here should only be viewed as a general “feeling” of the performance.
Moving small files ∞
The commands and results are shown as follows.
test@seginus:~$ ls -lha 49MBfile.pdf -rwxr-xr-x 1 test pg000000 49M Mar 5 23:23 49MBfile.pdf test@seginus:~$ time mv ./49MBfile.pdf /dev/shm/ real 0m0.602s user 0m0.012s sys 0m0.176s test@seginus:~$ time mv /dev/shm/49MBfile.pdf ./ real 0m0.307s user 0m0.008s sys 0m0.216s test@seginus:~$ time mv ./49MBfile.pdf /dev/shm/ real 0m0.291s user 0m0.016s sys 0m0.172s test@seginus:~$ time mv /dev/shm/49MBfile.pdf ./ real 0m0.225s user 0m0.000s sys 0m0.208s test@seginus:~$ time mv ./49MBfile.pdf /dev/shm/ real 0m0.331s user 0m0.000s sys 0m0.188s test@seginus:~$ time mv /dev/shm/49MBfile.pdf ./ real 0m0.262s user 0m0.000s sys 0m0.216s
If we consider the largest 0.602s as the worst time for accessing the 49MB file, the throughput is still around 81.4 MB/s.
dd and moving large files ∞
The commands and results are as follows.
test@seginus:~$ dd if=/dev/zero of=./testfile bs=512M count=1 oflag=direct 1+0 records in 1+0 records out 536870912 bytes (537 MB) copied, 9.26255 s, 58.0 MB/s test@seginus:~$ time mv testfile /dev/shm/ real 0m4.802s user 0m0.052s sys 0m2.148s
The write and read throughput are 58.0 MB/s and 106.6 MB/s.
Although these numbers may not represent the exact actual I/O throughput for your site as the server may be busier or freer depending on the load, these results do reflect that the performance is good regarding the low price of the shared hosting plan.
If you would like to host your sites on DreamHost as we do and have read up to this part, we have a bonus for you: register with this affiliation link and you will enjoy the $2.45/month fee plus a free domain name.
Latest posts by Eric Zhiqiang Ma (see all)
- Vim Tutorial for Beginners: vimtutor - Dec 31, 2016
- Essential Gnome Shell Extensions for Gnome 3 Users - Oct 22, 2016
- How to Install 32-bit Wine 1.8 on CentOS 7 - Oct 16, 2016