How to handle TRIM on hfsplus /boot/efi partition on a Mac (F21)?

asked 2014-12-16 08:03:58 -0500

gsomlo gravatar image

I'm setting up a MacPro6,1 as a dedicated Fedora 21 workstation, and would like to properly configure the SSD for TRIM. After some googling I figured out how to reduce swappiness and cache pressure via sysctl, and that I need to use "elevator=noop" on the kernel command line.

What I'm not sure about yet is whether mounting all partitions with "-o discard" is preferable over running "fstrim -a" from cron on a weekly basis (there's some conflicting recommendations out there).

This is further complicated by the fact that my /boot/efi partition is formatted as hfsplus, and currently F21 can't mount it with "-o discard".

So, for consistency, I can use the "fstrim -a" cron-based version, but would like to get an idea about why it's better or worse than using the discard mount option. The alternative would be using discard on everything but the hfsplus /boot/efi partition, and running an "fstrim" from cron on the hfsplus partition, but do I really have to make it that complicated ? :)

Any ideas, pointers, etc. much appreciated !

edit retag flag offensive close merge delete

Comments

I don't have a direct answer, but want to point out that the EFI partition has mostly static content. It only gets touched when grub.cfg - on my system, a ~150 line plain text file - is updated for new kernels, or when you install a new operating system. I wouldn't worry too much if you don't find an answer.

Also - does this actually work? I thought that a fundamental part of the EFI spec was a FAT-type filesystem for the EFI system partition.

randomuser gravatar imagerandomuser ( 2014-12-16 11:52:12 -0500 )edit