FreeBSD zfs timeout errors

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
2












I have FreeBSD 8.2 with ZFS v28. 8 cpu cores, 16Gb RAM.
Two disk drives (1.5Tb WD Green) on ZFS mirror raid.



My system strangely uses memory.
With a lot of free (wired) memory, it starts to use swap and then doesn't clean it! Swap usage keeps growing. munin-graph swap



And then I see on my kvm these messages:
kvm log



All file reads or writes seem very slow. When I use ssh and, for example, do nano /etc/rc.conf it pauses for 3-5 seconds before it works.



Will my disk drives die soon, or is the problem elsewhere?










share|improve this question



























    up vote
    4
    down vote

    favorite
    2












    I have FreeBSD 8.2 with ZFS v28. 8 cpu cores, 16Gb RAM.
    Two disk drives (1.5Tb WD Green) on ZFS mirror raid.



    My system strangely uses memory.
    With a lot of free (wired) memory, it starts to use swap and then doesn't clean it! Swap usage keeps growing. munin-graph swap



    And then I see on my kvm these messages:
    kvm log



    All file reads or writes seem very slow. When I use ssh and, for example, do nano /etc/rc.conf it pauses for 3-5 seconds before it works.



    Will my disk drives die soon, or is the problem elsewhere?










    share|improve this question

























      up vote
      4
      down vote

      favorite
      2









      up vote
      4
      down vote

      favorite
      2






      2





      I have FreeBSD 8.2 with ZFS v28. 8 cpu cores, 16Gb RAM.
      Two disk drives (1.5Tb WD Green) on ZFS mirror raid.



      My system strangely uses memory.
      With a lot of free (wired) memory, it starts to use swap and then doesn't clean it! Swap usage keeps growing. munin-graph swap



      And then I see on my kvm these messages:
      kvm log



      All file reads or writes seem very slow. When I use ssh and, for example, do nano /etc/rc.conf it pauses for 3-5 seconds before it works.



      Will my disk drives die soon, or is the problem elsewhere?










      share|improve this question















      I have FreeBSD 8.2 with ZFS v28. 8 cpu cores, 16Gb RAM.
      Two disk drives (1.5Tb WD Green) on ZFS mirror raid.



      My system strangely uses memory.
      With a lot of free (wired) memory, it starts to use swap and then doesn't clean it! Swap usage keeps growing. munin-graph swap



      And then I see on my kvm these messages:
      kvm log



      All file reads or writes seem very slow. When I use ssh and, for example, do nano /etc/rc.conf it pauses for 3-5 seconds before it works.



      Will my disk drives die soon, or is the problem elsewhere?







      freebsd zfs






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 11 at 11:01









      Jeff Schaller

      33.3k849111




      33.3k849111










      asked Jan 30 '12 at 10:46









      KonstantinKuklin

      383




      383




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote













          You have read the ZFS Tuning Guide, right?



          Early versions of ZFS had more than a few issues with memory management, especially when using the dedupe and/or compression options. For the longest time, a simple recipe for ZFS hangs was to set compression=gzip and start copying data. Later versions of ZFS are much better. If you can, you should upgrade to FreeBSD 8.4 or 9.1.



          I have a very comparable system at home (16GB RAM, 2 x 3TB SATA disks in ZFS mirror) that's been rock solid since upgrading to FreeBSD 9.1. I have compression enabled and these settings in /boot/loader.conf:



          # attempts to get ZFS more stable
          vfs.zfs.arc_max="4096M"
          kern.maxvnodes=250000
          vfs.zfs.prefetch_disable=1
          vm.kmem_size="1024M"
          vm.kmem_size_max="1024M"


          Another thing to check is your motherboard settings for the SATA ports. Initially, my motherboard had the SATA ports set to IDE mode and performance under ZFS was awful, making the memory exhaustion issues worse. After switching them to AHCI mode, the disks perform quite well.






          share|improve this answer



























            up vote
            0
            down vote













            This looks like a hardware problem - either drives or controller. Since there are errors on both ad4 and ad6, it may be the controller. I recommend backing up any important data as soon as possible.



            You might try installing sysutils/smartmontools to see if any SMART errors are reported.



            As to your RAM usage, that seems strange. Even if you're using ZFS v28's dedupe, I wouldn't expect a 1.5TB filesystem to take up that much RAM. You might try running top -S -osize to see what is using the memory.






            share|improve this answer




















            • I'd go with the controller too.
              – schaiba
              Feb 16 '13 at 14:45

















            up vote
            0
            down vote













            You can check using:



            • smartctl -s on -A /dev/adX

            Also, check to see the raw value of Current PEnding Sector (bad sectors) and UDMA CRC Error Count (cable errors).



            It might also be a problem in the legacy ATA driver ('ad') whereas the newer AHCI driver is called 'ada' and should be much better with modern code and shared CAM design. Your BIOS' controller must be set to AHCI for this to work.






            share|improve this answer






















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f30368%2ffreebsd-zfs-timeout-errors%23new-answer', 'question_page');

              );

              Post as a guest






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              3
              down vote













              You have read the ZFS Tuning Guide, right?



              Early versions of ZFS had more than a few issues with memory management, especially when using the dedupe and/or compression options. For the longest time, a simple recipe for ZFS hangs was to set compression=gzip and start copying data. Later versions of ZFS are much better. If you can, you should upgrade to FreeBSD 8.4 or 9.1.



              I have a very comparable system at home (16GB RAM, 2 x 3TB SATA disks in ZFS mirror) that's been rock solid since upgrading to FreeBSD 9.1. I have compression enabled and these settings in /boot/loader.conf:



              # attempts to get ZFS more stable
              vfs.zfs.arc_max="4096M"
              kern.maxvnodes=250000
              vfs.zfs.prefetch_disable=1
              vm.kmem_size="1024M"
              vm.kmem_size_max="1024M"


              Another thing to check is your motherboard settings for the SATA ports. Initially, my motherboard had the SATA ports set to IDE mode and performance under ZFS was awful, making the memory exhaustion issues worse. After switching them to AHCI mode, the disks perform quite well.






              share|improve this answer
























                up vote
                3
                down vote













                You have read the ZFS Tuning Guide, right?



                Early versions of ZFS had more than a few issues with memory management, especially when using the dedupe and/or compression options. For the longest time, a simple recipe for ZFS hangs was to set compression=gzip and start copying data. Later versions of ZFS are much better. If you can, you should upgrade to FreeBSD 8.4 or 9.1.



                I have a very comparable system at home (16GB RAM, 2 x 3TB SATA disks in ZFS mirror) that's been rock solid since upgrading to FreeBSD 9.1. I have compression enabled and these settings in /boot/loader.conf:



                # attempts to get ZFS more stable
                vfs.zfs.arc_max="4096M"
                kern.maxvnodes=250000
                vfs.zfs.prefetch_disable=1
                vm.kmem_size="1024M"
                vm.kmem_size_max="1024M"


                Another thing to check is your motherboard settings for the SATA ports. Initially, my motherboard had the SATA ports set to IDE mode and performance under ZFS was awful, making the memory exhaustion issues worse. After switching them to AHCI mode, the disks perform quite well.






                share|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  You have read the ZFS Tuning Guide, right?



                  Early versions of ZFS had more than a few issues with memory management, especially when using the dedupe and/or compression options. For the longest time, a simple recipe for ZFS hangs was to set compression=gzip and start copying data. Later versions of ZFS are much better. If you can, you should upgrade to FreeBSD 8.4 or 9.1.



                  I have a very comparable system at home (16GB RAM, 2 x 3TB SATA disks in ZFS mirror) that's been rock solid since upgrading to FreeBSD 9.1. I have compression enabled and these settings in /boot/loader.conf:



                  # attempts to get ZFS more stable
                  vfs.zfs.arc_max="4096M"
                  kern.maxvnodes=250000
                  vfs.zfs.prefetch_disable=1
                  vm.kmem_size="1024M"
                  vm.kmem_size_max="1024M"


                  Another thing to check is your motherboard settings for the SATA ports. Initially, my motherboard had the SATA ports set to IDE mode and performance under ZFS was awful, making the memory exhaustion issues worse. After switching them to AHCI mode, the disks perform quite well.






                  share|improve this answer












                  You have read the ZFS Tuning Guide, right?



                  Early versions of ZFS had more than a few issues with memory management, especially when using the dedupe and/or compression options. For the longest time, a simple recipe for ZFS hangs was to set compression=gzip and start copying data. Later versions of ZFS are much better. If you can, you should upgrade to FreeBSD 8.4 or 9.1.



                  I have a very comparable system at home (16GB RAM, 2 x 3TB SATA disks in ZFS mirror) that's been rock solid since upgrading to FreeBSD 9.1. I have compression enabled and these settings in /boot/loader.conf:



                  # attempts to get ZFS more stable
                  vfs.zfs.arc_max="4096M"
                  kern.maxvnodes=250000
                  vfs.zfs.prefetch_disable=1
                  vm.kmem_size="1024M"
                  vm.kmem_size_max="1024M"


                  Another thing to check is your motherboard settings for the SATA ports. Initially, my motherboard had the SATA ports set to IDE mode and performance under ZFS was awful, making the memory exhaustion issues worse. After switching them to AHCI mode, the disks perform quite well.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 17 '13 at 9:01









                  Matt Simerson

                  1736




                  1736






















                      up vote
                      0
                      down vote













                      This looks like a hardware problem - either drives or controller. Since there are errors on both ad4 and ad6, it may be the controller. I recommend backing up any important data as soon as possible.



                      You might try installing sysutils/smartmontools to see if any SMART errors are reported.



                      As to your RAM usage, that seems strange. Even if you're using ZFS v28's dedupe, I wouldn't expect a 1.5TB filesystem to take up that much RAM. You might try running top -S -osize to see what is using the memory.






                      share|improve this answer




















                      • I'd go with the controller too.
                        – schaiba
                        Feb 16 '13 at 14:45














                      up vote
                      0
                      down vote













                      This looks like a hardware problem - either drives or controller. Since there are errors on both ad4 and ad6, it may be the controller. I recommend backing up any important data as soon as possible.



                      You might try installing sysutils/smartmontools to see if any SMART errors are reported.



                      As to your RAM usage, that seems strange. Even if you're using ZFS v28's dedupe, I wouldn't expect a 1.5TB filesystem to take up that much RAM. You might try running top -S -osize to see what is using the memory.






                      share|improve this answer




















                      • I'd go with the controller too.
                        – schaiba
                        Feb 16 '13 at 14:45












                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      This looks like a hardware problem - either drives or controller. Since there are errors on both ad4 and ad6, it may be the controller. I recommend backing up any important data as soon as possible.



                      You might try installing sysutils/smartmontools to see if any SMART errors are reported.



                      As to your RAM usage, that seems strange. Even if you're using ZFS v28's dedupe, I wouldn't expect a 1.5TB filesystem to take up that much RAM. You might try running top -S -osize to see what is using the memory.






                      share|improve this answer












                      This looks like a hardware problem - either drives or controller. Since there are errors on both ad4 and ad6, it may be the controller. I recommend backing up any important data as soon as possible.



                      You might try installing sysutils/smartmontools to see if any SMART errors are reported.



                      As to your RAM usage, that seems strange. Even if you're using ZFS v28's dedupe, I wouldn't expect a 1.5TB filesystem to take up that much RAM. You might try running top -S -osize to see what is using the memory.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 22 '12 at 7:23









                      Royce Williams

                      655618




                      655618











                      • I'd go with the controller too.
                        – schaiba
                        Feb 16 '13 at 14:45
















                      • I'd go with the controller too.
                        – schaiba
                        Feb 16 '13 at 14:45















                      I'd go with the controller too.
                      – schaiba
                      Feb 16 '13 at 14:45




                      I'd go with the controller too.
                      – schaiba
                      Feb 16 '13 at 14:45










                      up vote
                      0
                      down vote













                      You can check using:



                      • smartctl -s on -A /dev/adX

                      Also, check to see the raw value of Current PEnding Sector (bad sectors) and UDMA CRC Error Count (cable errors).



                      It might also be a problem in the legacy ATA driver ('ad') whereas the newer AHCI driver is called 'ada' and should be much better with modern code and shared CAM design. Your BIOS' controller must be set to AHCI for this to work.






                      share|improve this answer


























                        up vote
                        0
                        down vote













                        You can check using:



                        • smartctl -s on -A /dev/adX

                        Also, check to see the raw value of Current PEnding Sector (bad sectors) and UDMA CRC Error Count (cable errors).



                        It might also be a problem in the legacy ATA driver ('ad') whereas the newer AHCI driver is called 'ada' and should be much better with modern code and shared CAM design. Your BIOS' controller must be set to AHCI for this to work.






                        share|improve this answer
























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          You can check using:



                          • smartctl -s on -A /dev/adX

                          Also, check to see the raw value of Current PEnding Sector (bad sectors) and UDMA CRC Error Count (cable errors).



                          It might also be a problem in the legacy ATA driver ('ad') whereas the newer AHCI driver is called 'ada' and should be much better with modern code and shared CAM design. Your BIOS' controller must be set to AHCI for this to work.






                          share|improve this answer














                          You can check using:



                          • smartctl -s on -A /dev/adX

                          Also, check to see the raw value of Current PEnding Sector (bad sectors) and UDMA CRC Error Count (cable errors).



                          It might also be a problem in the legacy ATA driver ('ad') whereas the newer AHCI driver is called 'ada' and should be much better with modern code and shared CAM design. Your BIOS' controller must be set to AHCI for this to work.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Sep 22 at 11:45









                          Goro

                          6,20152763




                          6,20152763










                          answered Sep 22 at 11:12









                          Steiner

                          344




                          344



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f30368%2ffreebsd-zfs-timeout-errors%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Displaying single band from multi-band raster using QGIS

                              How many registers does an x86_64 CPU actually have?