Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hard disk write cache enabled safe for a router system?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      blackb1rd
      last edited by

      Hi,

      I was wondering why the hard disk write cache is enabled by default, write performance shouldn't be really important on a router system? So how reliable is it on a sudden power outage or other crash with this enabled, wouldn't that (possibly/probably) corrupt the filesystem?

      I saw that in the end of 2007 a patch was applied to disable the hdd write cache by default (hw.ata.wc=0 in /boot/loader.conf), but that has apparently been removed later, as it's no longer there. What is the reason for that? Are there any downsides disabling the cache other than somewhat slower rule savings?

      Thanks.

      Joost

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        In the git repo, the hw.ata.wc=0 line is still there. Somehow, that isn't staying on a live system.

        It should have:

        $ cat loader.conf
        hw.ata.atapi_dma="0"
        hw.ata.ata_dma="0"
        loader_color="YES"
        hw.ata.wc="0"
        kern.ipc.nmbclusters="0"
        beastie_disable="NO"
        vm.kmem_size="435544320"
        vm.kmem_size_max="535544320"
        

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.