Closed Bug 1333613 Opened 9 years ago Closed 1 year ago

hgweb and hgssh machines have / mounted with atime enabled

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gps, Unassigned)

Details

hgweb and hgssh have / mounted with the "defaults" mount options, which include "relatime." Unless there is an arcane requirement to have it, recording access times is unnecessary and just adds overhead. We should add "noatime" to the mount options to disable it.
You could probably convince me that's useful on hgweb, where all of the repos are actually under /, but on hgssh they're aren't so what do we actually gain by deviating from default CentOS behavior?
We gain performance and extend the lifetime of the underlying SSDs. Servicing a clone or pull will potentially access thousands of files. While I suspect the corresponding atime updates will be buffered, that's still a lot of avoidable I/O writes. And IIRC the SSDs in the hgweb machines are optimized for reads and don't have as many write cycles. So atimes will reduce their lifetime.
FWIW the default mount option of "relatime" isn't as evil as "atime." So this is not as urgent as I thought it was. It is somewhat annoying though.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.