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

    Very slow cloning speed on specific model

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    18
    145
    57.0k
    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
      Sebastian Roth Moderator
      last edited by Sebastian Roth

      @Duncan Can you schedule debug deploy task on both machines. When you get to the shell run lspci -nn and hdparm -i /dev/sda. Take pictures and post here.

      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

      D 1 Reply Last reply Reply Quote 0
      • D
        Duncan @Sebastian Roth
        last edited by Duncan

        @Sebastian-Roth

        alt text
        alt text

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

          For some reason this reminded me of some of the earliest (and most explored) reports on slow deployments on certain system drive combinations.

          https://github.com/Thomas-Tsai/partclone/issues/112

          That user notes that if a partition is formatted and mounted on the target disk just prior to restore that it runs at expected speeds (but in FOS only if it’s not NTFS for whatever reason). Next attempt to restore will be slow again unless the same step is taken.

          They then went on to try a different drive (different brand) and that one worked normally.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth

            @Duncan Thanks for the pictures. Though I think it was such a great idea because comparing the two listings as pictures is very much error prone. I reckon both listings are identical but can’t say for sure absolutely. And even then we still don’t know if one model might have just a slightly different revision of some component.

            Is it only writing to disk or also reading from disk? Even if it doesn’t make sense for you to capture from the “slow” model, can you still give it a try to see!?

            Also I wonder if you could live boot some Linux CD/DVD distro and do write/read tests as well.

            dd if=/dev/zero of=/dev/nvme...
            dd if=/dev/nvme... of=/dev/null
            

            NOTICE: Be aware the first command will completely destroy the data on your drive!! Only do this on machines you don't have valuable data on and can re-image again.

            Did you get to talk to HP about this issue? What do they say?

            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

            george1421G D 2 Replies Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Sebastian Roth
              last edited by

              @Sebastian-Roth I realize we are discussion nvme drives here and only for a point of reference, but in 2017 I created a benchmark post to compare the differences in different technologies (one being disk subsystem) and its impact on imaging. https://forums.fogproject.org/topic/10459/can-you-make-fog-imaging-go-fast/6

              From there I had these two commands:

              … the simple disk baseline I’m using the following linux command to create a sequential 1GB file on disk and then to read it back. This process is designed to simulate the single unicast workload. The command used to write the 1GB file is this:
              dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=direct
              The command to read it back is:
              echo 3 | tee /proc/sys/vm/drop_caches && time dd if=/tmp/test1.img of=/dev/null bs=8k
              The echo command is intended to disable the read cache so we get a true read back value.

              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!

              1 Reply Last reply Reply Quote 1
              • D
                Duncan @Sebastian Roth
                last edited by Duncan

                @Sebastian-Roth

                root@ubuntu:/home/ubuntu# dd if=/dev/nvme0n1 of=/dev/null
                500118192+0 records in
                500118192+0 records out
                256060514304 bytes (256 GB, 238 GiB) copied, 231.216 s, 1.1 GB/s
                root@ubuntu:/home/ubuntu# dd if=/dev/zero of=/dev/nvme0n1
                dd: writing to '/dev/nvme0n1': No space left on device
                500118193+0 records in
                500118192+0 records out
                256060514304 bytes (256 GB, 238 GiB) copied, 2204.34 s, 116 MB/s
                

                I’ve emailed my guy at HP and will see what they say.

                Going to upload from “slow” laptop now and see what speeds i get.

                Q george1421G 2 Replies Last reply Reply Quote 0
                • Q
                  Quazz Moderator @Duncan
                  last edited by

                  @Duncan Please replace the dots with the appropriate ending for the drive. (eg 0n1) and try again.

                  1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @Duncan
                    last edited by george1421

                    @Duncan Unless the "no space on device’ is causing this number disparity you have 1GB/s read and 116MB/s write speeds. The 116MB/s write speeds is just faster than a fast rotating disk speed. Those numbers are using a commercial linux distribution. (Please state the version number of ubuntu live you used)

                    I’m wondering now 2 things.

                    1. If you booted into FOS Linux in debug mode and ran the same commands would you see similar results?
                    2. I know there is no correlation with this, but if you booted into windows and then ran a tool like Crystal Disk Mark or ATTO to see if we have this wide differences between read and write speeds? Now this will be using the windows kernel and windows driver. This way we can see if its a windows/linux driver issue or if the hardware just performs this way.

                    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!

                    Q D 2 Replies Last reply Reply Quote 0
                    • Q
                      Quazz Moderator @george1421
                      last edited by

                      @george1421 Regardless, partclone is much slower for him than even this dd test. In the github issue thread I linked, they hypothesize that dd uses O_DIRECT and partclone does not, hence the difference.

                      It’s also worth noting that they had better speeds when the target was mounted, which live Ubuntu does automatically when it can.

                      Of course this is working under the assumption that it’s the exact same issue.

                      1 Reply Last reply Reply Quote 1
                      • D
                        Duncan @george1421
                        last edited by

                        @george1421

                        “no space on device” will i try to format the ssd and run tests again?

                        I will quickly build windows off usb and test.

                        The Linux was just Ubuntu 18.04.3 LTS, used Rufus to put it onto a USB and live booted.

                        Will i try the same test with a “working” laptop and see if we get the same speeds.

                        george1421G 1 Reply Last reply Reply Quote 1
                        • george1421G
                          george1421 Moderator @Duncan
                          last edited by

                          @Duncan said in Very slow cloning speed on specific model:

                          “no space on device” will i try to format the ssd and run tests again?

                          I’m suspecting the no space on device is because you are writing to the raw disk and not to a partition. The space is all consumed because the partition tables are in place that occupy the entire disk. Linux is a bit strange in that you can write to the raw disk as you could a partition on that disk. Of course when you do that you destroy the partition table and the files in the partition.

                          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!

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @Quazz Good point!!!

                            @Duncan So we better do partclone tests then. I’ll look up the syntax later on.

                            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
                            • S
                              Sebastian Roth Moderator
                              last edited by Sebastian Roth

                              @Duncan Try using https://gparted.org/livecd.php or https://clonezilla.org/clonezilla-live.php - I have not tried any of those lately but I am fairly sure you can boot up to a command shell with those.

                              mkdir -p /mnt/ramdisk
                              mount -t tmpfs -o size=2048m tmpfs /mnt/ramdisk
                              partclone.dd -d3 -C -s /dev/nvme0n1 -O /mnt/ramdisk/test.img
                              partclone.dd -d3 -C -s /mnt/ramdisk/test.img -O /dev/sda
                              

                              Note that the first partclone command will also kind of error out when the ramdisk drive is full. But test.img still seems to be ok - from what I tested. Then reply it back to disk.

                              Do this same test on both devices, the one that is showing the issue and the one that seems ok.

                              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

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                Duncan @Sebastian Roth
                                last edited by

                                @Sebastian-Roth

                                alt text

                                going so slow!

                                will upload pic of the “working” one soon

                                D 1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by

                                  @Duncan Ok, nice! Well not nice that’s it’s going slow but we know it’s not specific to the FOS kernel/initrd.

                                  As well we know it’s not a general problem with Linux, right?!? dd speed is fine. The interesting thing seems that in the topic Quazz posted we read:

                                  I could trick it into being fast by having the disk mounted: dd to an unmounted drive wrote slow, and dd to a mounted drive or using O_DIRECT wrote fast.

                                  As far as I understand you dded to an unmounted drive and it went fast as well. So maybe this is a different issue?!

                                  Maybe we should get in touch with Thomas Tsai…?

                                  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
                                  • D
                                    Duncan @Duncan
                                    last edited by

                                    @Duncan

                                    In the meantime i have started to image with Acronis, imaging disk to disk in about 7 minutes. This will do until a fix is found. Many thanks to everyone for all the help

                                    Q 1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      @Duncan Good to know you have a workaround for now. But we will need you to keep on testing things as we don’t have the hardware to test and work on this.

                                      I will read through all of this over the weekend and see what steps we could take next.

                                      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

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

                                        @Duncan As I understand it, Acronis uses WinPE, supporting the idea that this some kind of Linux problem, but it appears to be hard to track down exactly how and why it happens.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          Middle @DeRo93
                                          last edited by

                                          @DeRo93 We didn’t get the issue fixed but ran out of G6 laptops to test with. We’re expecting the next batch of 50 on Tuesday so I expect to be more active on here next week.

                                          1 Reply Last reply Reply Quote 1
                                          • S
                                            Sebastian Roth Moderator
                                            last edited by

                                            @Quazz said in Very slow cloning speed on specific model:

                                            As I understand it, Acronis uses WinPE, supporting the idea that this some kind of Linux problem, but it appears to be hard to track down exactly how and why it happens.

                                            When you first mentioned Acronis I didn’t think much further. But now that you say WinPE I had to look this up. Not sure if newer versions are WinPE based but the older ones all were Linux based: https://kb.acronis.com/content/1537

                                            @Duncan Which version of Acronis do you have? Any chance you can get to a console and run uname -a to get the kernel version for us?

                                            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

                                            D 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 3 / 8
                                            • First post
                                              Last post

                                            190

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project