Get the most out of your Centmin Mod LEMP stack
Become a Member

Performance disadvantage to storing PHP files on HDD?

Discussion in 'Dedicated server hosting' started by deltahf, Apr 30, 2015.

Tags:
  1. deltahf

    deltahf Premium Member Premium Member

    581
    264
    63
    Jun 8, 2014
    Ratings:
    +482
    Local Time:
    7:06 AM
    I just got a shiny new dedicated server, which has two SSD and HDD RAID1 arrays. Obviously, I plan on using the SSD to host the OS and DBs, and then stick all my forum attachments onto the big HDDs.

    However, I noticed that when configuring the server, the tech has already mounted the entire /home directory onto the HDDs. At first I was going to change it, because I'd like all my PHP files which will be stored in /home to be kept on the SSD for performance, but then I got to thinking: does it really matter? With Zend Opcache and Linux's file caching files in memory, will there be any noticeable difference in performance?

    Keeping everything on /home would make it slightly easier for me to maintain, as I wouldn't have to create application-specific symlinks to store things like XenForo attachments on the HDDs.

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    9:06 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    There is a difference still. So worth changing and if you don't want symlinks and only have one forum/site attachments, you can just mount the HDD raid 1 array with a name like /home/nginx/domains/domain.com/public/data or something and use addon like [bd] Attachment Store | XenForo Community to move attachments to data directory HDD raid 1 array mount. Haven't tried this mount for data only but that's one thought I'd have. But this forum here uses bd Attachment Store though :)
     
    Last edited: Apr 30, 2015