• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    PartImage faster than PartClone?

    Scheduled Pinned Locked Moved
    General
    8
    36
    16.3k
    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.
    • S
      scgsg @Wayne Workman
      last edited by

      @Wayne-Workman Ok this really is odd, as stated I’ve created 2 images with everything the same except the Image Manager setting before capture and there is a difference in deployment times. Here is what I did:

      Capture Images:

      1. Deployed the old image (created originally in partimage from fog 0.32) and set to shutdown after deployment
      2. Create a new Image in Fog with the following setting to match the old image:
        a. For the purpose of testing lets call it Image1
        b. Default Storage group
        c. Windows 7
        d. Multiple Partition Image - Single Disk (Not Resizable)
        e. Partition = Everything
        f. Level 3 compression
        g. Image Manager = PartImage
      3. Capture new image and set to shutdown after deployment
      4. Deployed old image again and shutdown after deployment
      5. Create another image in Fog with the same settings as above but call this Image2 and Image Manager set to PartClone
      6. Capture this image and set to shutdown after deployment

      NOTE: Captured images are exactly the same size on the server (35061064).

      Test Deployments:
      Each deployment is set to shutdown after deployment.

      1. Deploy Image1
      2. Deploy Image1
      3. Deploy Image2
      4. Deploy Image2
      5. Deploy Image1
      6. Deploy Image2

      Here are the results:
      Image1 Image2
      16min 29sec 18min 30sec
      16min 27sec 18min 30sec
      16min 29sec 18min 27sec

      Again still not really a large enough sample to be definitive but does seem to imply an odd pattern.

      Wayne WorkmanW Tom ElliottT 2 Replies Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @scgsg
        last edited by Wayne Workman

        @scgsg said in PartImage faster than PartClone?:

        16min 29sec 18min 30sec
        16min 27sec 18min 30sec
        16min 29sec 18min 27sec

        Which settings did these use?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        S 1 Reply Last reply Reply Quote 0
        • S
          scgsg @Wayne Workman
          last edited by

          @Wayne-Workman Not sure what you mean, I’ve given details for the settings for Image1 and Image2 so what settings are we talking about?

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @scgsg
            last edited by

            @scgsg said in PartImage faster than PartClone?:

            mage1 and Image2 so what settings are we talking about

            What times are image one, what times are image two?

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            S 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @scgsg
              last edited by

              @scgsg I’m confused what this is showing. From what you’re saying, the deploy times are the “Updated” images? What version of FOG are you running? Level 3 compression is “small” comparatively. We have “benchmarks” for a reason. Your mileage may vary. But it’s up to you to find the “goldilocks” configuration.

              You haven’t shown us any useful benchmarks.

              If you’re trying to show us variance, we need to SEE the variance.

              I’m assuming by your stuff below, the image deployment times for all three are the “averages” but what is this compared with/to? What other variables are present?

              is the network working optimally?
              Is there a single hop to the client’s receiving the images or multiple?
              Are all machines identical in specs (Maybe use a single machine to perform the tests?)
              Is your FOG 0.32 server configured and identically spec’d to your newer FOG Server?

              Like I said earlier, there are MANY reasons for speeds to vary between one another. Once you rule out ALL of those variances you can get a solid benchmark.

              If your FOG 0.32 server has 8 CPU’s and 16GB of ram, then your “newer” system should be identical in EVERY way possible. (If a VM, use one with 0.32 grab snapshot. Change out with 1.x.x and grab snapshot. Switch between the two snapshots)
              Your network should be identical during your benchmarks.
              Your machines should be identical during your benchmarks.

              When presenting, you should show the same testing from the different servers to present the information accordingly.

              For example:
              Test set 1 FOG 0.32: (I know you can’t do partclone testing here)
              Image: Configuration: Time Capture: Time Deploy: Number of times tested.

              Test set 2 FOG 1.x.x (Import your 0.32 image and also present information less the capture.
              Image: Configuration: Time Capture: Time Deploy: Number of times tested.

              1. Deploy Image 1 (What is this, one partimage, one partclone?)
              2. Deploy Image 1 (What is this, one partimage, one partclone?)

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • Q
                Quazz Moderator
                last edited by

                From my understanding of it:

                He captured the exact same image with the same image definition, except for the image manager (partimage vs partclone) and then noticed different deploy times.

                1 Reply Last reply Reply Quote 0
                • S
                  scgsg @Wayne Workman
                  last edited by scgsg

                  @Wayne-Workman Ah Ok, sorry formatting of the post didnt make it very obvious as i tried to make it like a table. Anyway hopefully this is clearer:
                  Image1 Settings before capture
                  Default Storage group
                  Windows 7
                  Multiple Partition Image - Single Disk (Not Resizable)
                  Partition = Everything
                  Level 3 compression
                  Image Manager = PartImage
                  Image1 Deployment Times
                  16min 29secs
                  16min 27secs
                  16min 29secs

                  Image2 Settings before capture
                  Default Storage group
                  Windows 7
                  Multiple Partition Image - Single Disk (Not Resizable)
                  Partition = Everything
                  Level 3 compression
                  Image Manager = PartClone
                  Image2 Deployment Times
                  18min 30secs
                  18min 30secs
                  18min 27secs

                  The Fog server is 1.4.0 and all image deployment and capture is done on this server. Everything else remains constant i.e. no changes to fog server other than changing which image client uses, same switch (no configuration changes), same client and settings as detailed above. The deployment times are pulled from the Imaging Log and are the actual times recorded.

                  I can confirm that both images capture with partclone and both deploy with partclone, with both images having the exact same size on server so both images should clock similar times but oddly enough image1 clocks 2mins faster (with the only difference being the Image Manager for Image1 set to PartImage for capture).

                  JunkhackerJ 1 Reply Last reply Reply Quote 0
                  • JunkhackerJ
                    Junkhacker Developer @scgsg
                    last edited by

                    @scgsg what are the specs of your server? have you tried capturing them in reverse order?

                    signature:
                    Junkhacker
                    We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                    1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by Wayne Workman

                      First, historical data: https://wiki.fogproject.org/wiki/index.php?title=Image_Compression_Tests

                      The below tests were performed with the FOG working branch just after the 1.4.1 release, commit b4544755284c6914fb880e4d41b45c3a6ca41d57. The image being used was a Windows 10 image, approximately 11GB in size uncompressed. All the testhosts have 3 cores, 4GB of RAM, and SSD disks. The fog server has 1 core, 1GB of RAM, and a mechanical disk. The image was always set to “Single Disk - Resizable.” There are no hops between the clients and the fog server, and there were no other loads on the fog server or clients or other physical hardware. All test results were achieved programmatically.

                      Partimage - compression 3
                      Image capture of “testHost1” completed in about “4” minutes.
                      Completed image deployment to “testHost1” in about “3” minutes.
                      Completed image deployment to “testHost2” in about “5” minutes.
                      Completed image deployment to “testHost3” in about “7” minutes.
                      All image deployments completed in about “9” minutes.

                      Partclone gzip - compression 3
                      Image capture of “testHost1” completed in about “4” minutes.
                      Completed image deployment to “testHost1” in about “3” minutes.
                      Completed image deployment to “testHost2” in about “5” minutes.
                      Completed image deployment to “testHost3” in about “7” minutes.
                      All image deployments completed in about “9” minutes.

                      Partclone zstd - compression 3
                      Image capture of “testHost1” completed in about “3” minutes.
                      Completed image deployment to “testHost1” in about “3” minutes.
                      Completed image deployment to “testHost2” in about “5” minutes.
                      Completed image deployment to “testHost3” in about “7” minutes.
                      All image deployments completed in about “9” minutes.

                      Just to point out - it’s not fair to compare zstd with gzip or pigz. This is because zstd’s compression scale goes from 1 to 22 while gzip & pigz compression scale is from 1 to 9 I think. Having gzip and pigz at 3 is much higher compression than zstd at 3. In effect, pigz and gzip were at about 30% compression while zstd was at about 15% compression. Yet zstd still outperformed. So for fun, I ran the below tests.

                      Partclone zstd - compression 12
                      Image capture of “testHost1” completed in about “5” minutes.
                      Completed image deployment to “testHost1” in about “3” minutes.
                      Completed image deployment to “testHost2” in about “4” minutes.
                      Completed image deployment to “testHost3” in about “6” minutes.
                      All image deployments completed in about “8” minutes.

                      Partclone zstd - compression 17
                      Image capture of “testHost1” completed in about “13” minutes.
                      Completed image deployment to “testHost1” in about “3” minutes.
                      Completed image deployment to “testHost2” in about “4” minutes.
                      Completed image deployment to “testHost3” in about “6” minutes.
                      All image deployments completed in about “8” minutes.

                      @scgsg I cannot replicate your findings. I don’t understand nor can I explain you’re findings having a two minute difference. My findings suggest as I expected that setting the Image Manager to “partimage” or “partclone gzip” results in the same performance because infact “partimage” gets changed to “partclone gzip” during capture.

                      Notes on my findings - an 11GB image is small for a Windows image. Typically Windows images for actual production deployment are larger, generally from 20GB to 30GB (in 2016). I’ve seen people deploy images as large as 160GB though. The larger the images are, the more ZSTD will pull ahead of the others and have a clear-cut superior performance. All research on it shows this, and big images in FOG will show it, too.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      S 1 Reply Last reply Reply Quote 1
                      • S
                        scgsg @Wayne Workman
                        last edited by

                        @Wayne-Workman Thank you for taking the time to look into this, and I’ll just chalk it up to weird things that happens to me. Thank you for all your efforts and advise.

                        1 Reply Last reply Reply Quote 2
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post

                        151

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project