Learn about Centmin Mod LEMP Stack today
Register Now

Performance disadvantage to storing PHP files on HDD?

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

  1. deltahf

    deltahf Premium Member Premium Member

    Jun 8, 2014
    Local Time:
    12:53 PM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    2:53 AM
    Nginx 1.25.x
    MariaDB 10.x
    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