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

    Solved Extremely Slow Deploy to NVME drives

    FOG Problems
    9
    35
    2956
    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.
    • R
      robbit last edited by

      Hi,

      Brand new here, we’ve recently decided to find a new imaging solution and went with Fog.

      I’ve been running into a strange issue. I’ve captured an image on one of our new HP Elitebook 840 G6, which has a 256GB Western Digital PC SN520 NVMe SSD. It captures it just fine, around 7.5GB/min according to the screen. However, when I try to deploy the image to another G6 laptop, it starts up fine around 2.5GB/min then drops to a mere 20MB/min which says will take about 80hours. I had it run for few hours, and it just slowly progresses so at least it is moving forward but never let it run the full duration.

      This is what it shows on screen when trying to deploy
      Starting to resolve image (-) to drive (/dev/nvm0nep1)

      I decided to play with few different NVME drives and all with same results, just goes to a crawl. The only way I got it to work was to install a m.2 SSD Sata, like SanDisk SD8SN8U-256G-1106. I slapped this m2 drive into a G6, and it deploys with speeds of around 7.5GB/min which is great! However, all these laptops we have are nvme.

      I was wondering if I missed a step to properly capture a NVMe image or if there is another way to deploy. I’ve went through each thread about “slow deploy” but couldn’t find a solution. Thank you for your time. If you need any more information from me, let me know.

      Image Configs:
      Image Type: Single Disk - Resizable
      Partition: Everything
      Compresssion: Partclone Gzip 7
      Image Size: 35.19GB

      We’ve installed the following into our machine on an isolated network
      Fog Version: 1.5.7
      OS: CentOS 7
      Fog Machine: Dell OptiPlex 7050
      Fog RAM: 8GB
      Fog CPU: i5-7500

      1 Reply Last reply Reply Quote 0
      • R
        robbit @DeRo93 last edited by

        @DeRo93

        I’m curious, what drives are inside your HP 840 G6s? We currently have the same laptop at my company, but our drives included in our G6 are Western Digital PC SN520 NVMe SSD. I know there is a configuration with OPAL drives (so they are already encrypted by default)

        1 Reply Last reply Reply Quote 0
        • D
          DeRo93 @Quazz last edited by

          @Quazz said in Extremely Slow Deploy to NVME drives:

          @DeRo93 If available, install firmware updates, BIOS updates and such.

          Already done. Nothing helped :/. I hope there will be a Solution in future. We only work with HP. And i think the new one will all get NVME SSD´s… Anyway thank your for your Help.

          R 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @Tom Elliott last edited by

            @Tom-Elliott Was just wondering, since I came across someone who needed to specifiy 4k sector size to get full speed out of their drive; though admittedly their speeds were far greater than users who are having the issue of this thread it seems! So unrelated indeed. Thanks for the info.

            1 Reply Last reply Reply Quote 0
            • Tom Elliott
              Tom Elliott @Quazz last edited by

              @Quazz Sector sizes are calculated based on 512 byte sectors, but this wouldn’t necessarily be a miss-alignment. The sector is still 4k and 4096 is divisible into 8 chunks of 512 bytes. The alignment should happen on this disk. This is a logical allowance. There are some 4k drives that only allow 4096 byte sectors, but most drives allow logical 512 byte break outs.

              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

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

                @DeRo93 If available, install firmware updates, BIOS updates and such.

                @Developers Looking over FOS, it seems that sector size is always assumed to be 512. Could this be involved in the slow speeds? (as it would cause missalignment, potentially)

                Additionally, it seems sector size isn’t always correctly reported by tools such as fdisk (possibly hardware manufacturers fault; dont know). So even if software is generally clever enough to handle it on its own, if it assumes the wrong value, we can assume worse performance (even after deployment)

                Tom Elliott D 2 Replies Last reply Reply Quote 0
                • D
                  DeRo93 @Sebastian Roth last edited by

                  @Sebastian-Roth

                  ah okay. Unfortunately this does not helped and im not able to deploy images on the HP Elitebook 840 G6.

                  Do you have any other suggestions :/?

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

                    @DeRo93 said in Extremely Slow Deploy to NVME drives:

                    Same here with the “nvme_core.default_ps_max_latency_us=5500 not a valid identifier” problem…

                    The message is more a warning that the variable couldn’t be used in the FOS environment but it’s still properly setting the kernel parameter. So it should make a difference if that option is of any help in your case.

                    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
                      DeRo93 @Quazz last edited by

                      @Quazz

                      Same here with the “nvme_core.default_ps_max_latency_us=5500 not a valid identifier” problem…

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

                        @Middle Unfortunately, aside from the latency kernel argument there isn’t anything else we can do from our side as far as I’m aware.

                        Unfortunately manufacturers don’t always check how their stuff works on linux…

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

                          @Quazz No change I’m afraid with the pcie_aspm args (slow transfer rate). I didn’t spot any errors like we get with the latency one, however I do receive ‘is an unknown key’ when trying to add in debug mode. I’ve tired with both the 5.1.16 and 4.19.64 kernels.

                          Incidentally, if I have a kernel args set and I use debug mode, it always seems to stop at the ‘Restoring Partition Tables (GPT)’ section. Running a normal deploy at least moves onto the Partclone screen and eventually to a slow transfer rate.

                          I’ve also installed the Sept 27th HP BIOS and Firmware pack. I’m still looking for a firmware update specifically for the disk.

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

                            @Middle Try setting the kernel argument as a global setting instead of on the host page. (FOG Configuration -> FOG Settings -> General -> Kernel args)

                            This problem may also be resolved with SSD firmware updates if available.

                            I’d also be interested in the results of kernel args pcie_aspm=off and pcie_aspm=force (do not set the latter as global)

                            Only set one of the 3 kernel arguments.

                            This problem is caused by ASPM and how certain devices interact with it. The reason it’s a problem specifically for NVME devices is because of their PCIE connection. A lot of these drives have buggy implementations (sometimes fixed in firmware updates)

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

                              @george1421 Back in the office and just tried this. We get unknown key for the latency parameter.

                              2019-10-04 12_05_38-Untitled - Message (HTML).jpg

                              grep nvme doesn’t return the value either and running fog gets stuck at the ‘Restoring Partition Tables (GPT)’ section, so didn’t get as far as Partclone. Note we’re using Kernel 5.1.16.

                              Thanks for helping out.

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

                                @Middle OK so sysctl exists lets try this.

                                1. Setup a debug deploy (tick the debug checkbox when you go to schedule the task)
                                2. PXE boot the target computer.
                                3. After several screens of text you need to clear by pressing the enter key you will be dropped to the FOS Linux command prompt.
                                4. At the FOS Linux command prompt key in sysctll -w nvme_core.default_ps_max_latency_us=5500 and press enter
                                5. Confirm the setting is in place with sysctl -a | grep nvme
                                6. If everything checks out OK then start the FOG master script with fog

                                In debug mode you will need to press enter after every step but imaging should proceed. Lets see if by manually entering the kernel parameter it images correctly. If it works we can do an automated process later. Right now I want to see if there is a change.

                                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!

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

                                  @george1421 sysctl exists and returns results. Using sysctl -a | more we still don’t see anything that’s setting the latency parameter.

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

                                    @Middle make sure that sysctl exists on the FOS Linux system. Just run sysctl -a and that will print out all kernel parameters. You can pipe that to more if you want to see it a page at a time.

                                    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!

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

                                      @george1421 entered debug and the nvme_core parameter doesn’t appear to be set.

                                      2019-10-03 13_28_23.jpg

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

                                        @Middle That error message (while its a valid error message) isn’t important in this case. After testing the dot after nvme_core is at issue with the bash shell for variables to be used during image deployment. What IS important is that the linux kernel see that parameter and understand it. To test this you can create a debug deployment (capture or deploy) by ticking the debug checkbox just before scheduling the task. PXE boot the target computer and after a few screens of text you will be dropped to the FOS Linux command prompt. Key in sysctl -a | grep nvme If that nvme_core parameter is set then its job is done.

                                        Now with that said, in another thread (I need to locate and link here) the developers are testing a new init (FOS Linux virtual hard drive) with updated version of partclone. The updated version of partclone along with the nvme_core kernel parameter seemed to fix the slow speeds with these specific nvme drives.

                                        Edit: here is the link in @Quazz post. Understand this is an experimental init that hasn’t been fully tested, but has shown promise on these nvme drives. https://forums.fogproject.org/topic/13620/very-slow-cloning-speed-on-specific-model/10

                                        Edit2: Wait, I see from your picture you are already using the new inits because you have partclone 3.12. Hmmmm there must be something else going on here.

                                        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!

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

                                          We’re getting the same slow deployment speeds when deploying images to HP Elitebook 840 Gen 6 laptops. All other laptops are fine. Before the deploy starts (at very slow speeds), it will hang at the initial Partclone screen for 10 - 15 mins.

                                          2019-10-03 12_11_02.jpg

                                          @Sebastian-Roth & @george1421 - Below is a photo of the the ‘not a valid identifier’ error we see. It will also hang at this stage from time-to-time.

                                          2019-10-03 11_59_33-Untitled - Message (HTML).jpg

                                          Below is the setting applied to the host in Fog.

                                          2019-10-03 12_01_16-VMware Remote Console.jpg

                                          We’re running CentOS 7.6 with Fog v1.5.7.4 and Kernel 5.1.16. I’ve tried with and without nvme_core.default_ps_max_latency_us=5500 set as the Host Kernel Arguments and Partclone 0.3.12 which @Quazz provided in another post.

                                          The disks appear to be Toshiba NVMe kbg30zmv256g.

                                          All suggestions welcome and happy to provide anymore info that might help troubleshoot.

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

                                            @KSiig said in Extremely Slow Deploy to NVME drives:

                                            however it just says ‘not a valid indentifier’

                                            Please take a picture of the error 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

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

                                            149
                                            Online

                                            10.4k
                                            Users

                                            16.4k
                                            Topics

                                            150.6k
                                            Posts

                                            Copyright © 2012-2023 FOG Project