Netgate SG-1000 microFirewall

Author Topic: Pfsense 2.4.2  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

Offline ghkrauss

  • Full Member
  • ***
  • Posts: 144
  • Karma: +3/-1
    • View Profile
Pfsense 2.4.2
« on: December 11, 2017, 09:19:30 am »

Does Pfsense 2.4.2 have "TRIM" tuned on by default when installing the image?

Offline kejianshi

  • Hero Member
  • *****
  • Posts: 4995
  • Karma: +199/-43
  • Debugging...
    • View Profile
Re: Pfsense 2.4.2
« Reply #1 on: December 11, 2017, 09:31:45 am »
I still remember when I bought a batch of several MCCOE64G5MPP-0VA

Bought them for about $60 each...

SLC SSD SATA 3.0Gbps 2.5"

SLC drives are just indestructible.  All are still going strong. 

Anyway - To check to see if it is enabled by default after install, in Diagnostics > Command Prompt try something like:

camcontrol identify /dev/ada0

Look down and find Data Set Management (DSM/TRIM) - See if it says yes and yes. 

If so, its on by default if the drive supports trim.  Mine doesn't.  But I suspect the drive will be running strong long after the sata interface is as legacy as usb 1.0

Offline kpa

  • Hero Member
  • *****
  • Posts: 1233
  • Karma: +138/-6
    • View Profile
Re: Pfsense 2.4.2
« Reply #2 on: December 11, 2017, 10:02:29 am »
It should be on by default but you can check yourself after installation.

Depending on the filesystem used:

UFS - run this on the command prompt:

Code: [Select]
tunefs -p /dev/ufsid/<identifier>

Where <identifier> is the UFSID for the root filesystem, you can get that from /etc/fstab from the line that has "/" as the mountpoint (second column).

ZFS - run this:

Code: [Select]
sysctl vfs.zfs.trim.enabled

If it reports value of 1 then your system is using TRIM.