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

    Faster pfSense 2.1 NanoBSD image upgrade explained!

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    13 Posts 5 Posters 5.7k 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.
    • M
      MaxPF
      last edited by

      No such problem on my Alix box. The upgrade process doesn't take more than 5 minutes.

      1 Reply Last reply Reply Quote 0
      • Z
        zenny
        last edited by

        @jimp:

        If a NanoBSD upgrade takes that long, you must have one really, really, crappy CF or CF adapter/socket/controller.

        It only takes a few minutes on my ALIX including the download time with a normal GUI-initiated upgrade.

        Now reinstalling packages post-upgrade, that does take some time if you have a lot installed.

        Do you notice the same slowness if you download straight to the CF? (/etc/rc.conf_mount_rw; fetch -o /root/ โ€ฆ) and then run the upgrade from that file?

        yes, the same slowness even when I directly download the image to the CF card or USB stick (Kingston which supports upto 237mb/s in normal situations).

        1 Reply Last reply Reply Quote 0
        • Z
          zenny
          last edited by

          @MaxPF:

          No such problem on my Alix box. The upgrade process doesn't take more than 5 minutes.

          You are lucky then! ;-)

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

            What kind of system are you running NanoBSD on?

            If it's not an ALIX but something else with some more power to it, keep this in mind:
            http://doc.pfsense.org/index.php/Boot_Troubleshooting#NanoBSD_on_Newer_Hardware

            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
            • Z
              zenny
              last edited by

              @jimp:

              What kind of system are you running NanoBSD on?

              If it's not an ALIX but something else with some more power to it, keep this in mind:
              http://doc.pfsense.org/index.php/Boot_Troubleshooting#NanoBSD_on_Newer_Hardware

              I am running on a 64-bit dual-core P4 3.2Mhz machine with 4GB RAM, fyi.

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                Just for the record, my Alix systems typically download at the (terribly slow) line speeds we have in remote places (some 192kbps = about 20KB/second = 50 sec/MB = roughly 1 hour for the download) then it takes about 5 minutes to do the writing of the ~80MB to the CF card partition, <2 minutes offline during reboot, then however much time to dribble down the package reinstall (it pays to not use big packages in the remote places!) In places with faster internet links, it happily downloads at 1-4 Mbps without apparent delays waiting for CF card writes.
                My slowness is all due to the available internet speed - there is only 5 minutes in the process when it is writing as fast as possible to the CF card partition.

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

                  @zenny:

                  @jimp:

                  What kind of system are you running NanoBSD on?

                  If it's not an ALIX but something else with some more power to it, keep this in mind:
                  http://doc.pfsense.org/index.php/Boot_Troubleshooting#NanoBSD_on_Newer_Hardware

                  I am running on a 64-bit dual-core P4 3.2Mhz machine with 4GB RAM, fyi.

                  Then most likely you're seeing side effects of running without ACPI, DMA, and write caching on that hardware.

                  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
                  • Z
                    zenny
                    last edited by

                    @phil.davis:

                    Just for the record, my Alix systems typically download at the (terribly slow) line speeds we have in remote places (some 192kbps = about 20KB/second = 50 sec/MB = roughly 1 hour for the download) then it takes about 5 minutes to do the writing of the ~80MB to the CF card partition, <2 minutes offline during reboot, then however much time to dribble down the package reinstall (it pays to not use big packages in the remote places!) In places with faster internet links, it happily downloads at 1-4 Mbps without apparent delays waiting for CF card writes.
                    My slowness is all due to the available internet speed - there is only 5 minutes in the process when it is writing as fast as possible to the CF card partition.

                    Yes, I have 26Mbps connection. So connection is not the bottleneck.

                    Usually it takes some 1 to 2 hours to download, and obviously it takes only a few mintues to upgrade pfSense base in one slice, but it takes another hour to upgrade the addon packages.

                    Then most likely you're seeing side effects of running without ACPI, DMA, and write caching on that hardware.

                    However, like jimp stated that it may be related with ACPI (but I have ACPI enabled), DMA or most importantly writecache, I assume.

                    Thanks for your inputs.

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

                      Unless you manually enabled ACPI and friends in loader.conf.local, then you don't have them (regardless of the BIOS settings), because on NanoBSD we disable them by default. (as mentioned on my link)

                      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
                      • R
                        razzfazz
                        last edited by

                        Is this different for NanoBSD vs. NanoBSD+VGA?

                        [2.1-RC0][root@router....]/root(1): uname -a
                        FreeBSD router.... 8.3-RELEASE-p8 FreeBSD 8.3-RELEASE-p8 #0: Mon Jul 15 16:58:10 EDT 2013 ย  ย  root@snapshots-8_3-amd64.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_wrap_vga.8.amd64 ย amd64
                        [2.1-RC0][root@router....]/root(2): cat /boot/loader.conf.local
                        hw.ata.ata_dma_check_80pin="0"
                        [2.1-RC0][root@router....]/root(3): sysctl hw.ata
                        hw.ata.setmax: 0
                        hw.ata.wc: 1
                        hw.ata.atapi_dma: 1
                        hw.ata.ata_dma_check_80pin: 0
                        hw.ata.ata_dma: 1
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          Yes, NanoBSD+VGA has those enabled already.

                          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.