XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    rngd high cpu usage

    Scheduled Pinned Locked Moved Solved Compute
    10 Posts 4 Posters 3.3k Views 1 Watching
    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.
    • J Offline
      jarmo-fi
      last edited by

      We moved one of our Oracle database servers from bare bones hardware to Xcp-Ng 8.1 and now the rngd service in VM eats constantly 50-100% of cpu. The VM is Oracle Linux 8.3

      Doesn't Xcp-ng support virtualized hardware entropy?

      Any ideas what I could do to solve this? It seems to slow down the Oracle inserts quite a lot (using guid as primary key in some tables).

      1 Reply Last reply Reply Quote 0
      • DanpD Offline
        Danp Pro Support Team
        last edited by

        I'm not familiar with this product. Can you tell us more about the mgd service?

        Also, how was the VM created? Did you start from scratch using a template? If so, which one?

        Are the guest tools installed?

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jarmo-fi @Danp
          last edited by

          @danp RNGD service (not mgd) is strandard linux service to provice random number entropy.

          It was created from scratch - but I am not sure now which template I did choose. It could have been other install media. Not sure now, sorry. Is there a way to see which template was used?

          And yes, guest tools are installed.

          DanpD 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team @jarmo-fi
            last edited by

            @jarmo-fi Oops... sorry about the misread on the service name. 🙄

            If you have XO installed, you can view information on the original template under the VM's Advanced tab.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jarmo-fi @Danp
              last edited by

              @danp Looks like the template is indeed "Other install media". Thanks for pointing a way to see this.

              I just noticed that there is also template for Oracle Linux. Do you know what's the difference between those two templates?

              I do not see any settings in XO advanced tab which could affect this random number generation.

              DanpD 1 Reply Last reply Reply Quote 0
              • DanpD Offline
                Danp Pro Support Team @jarmo-fi
                last edited by

                @jarmo-fi Since Oracle Linux is based on RHEL, you may want to check out these discussions.

                Not sure on the differences in the templates. If I was in your position, I would spin up a new VM using the correct template and then try booting with the disk from the prior VM.

                J 1 Reply Last reply Reply Quote 0
                • apzA Offline
                  apz
                  last edited by apz

                  This is just a shot in the dark, but have you by any chance replaced /dev/random with a device that's actually urandom? Because long ago I observed something similar happening afterwards.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jarmo-fi @Danp
                    last edited by

                    @danp Thanks for the idea. Tested this, but did not help.

                    olivierlambertO 1 Reply Last reply Reply Quote 0
                    • olivierlambertO Offline
                      olivierlambert Vates 🪐 Co-Founder CEO @jarmo-fi
                      last edited by

                      @jarmo-fi Try with TSC clock.

                      See https://aws.amazon.com/premiumsupport/knowledge-center/manage-ec2-linux-clock-source/?nc1=h_ls

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jarmo-fi @olivierlambert
                        last edited by

                        @apz No, I have not done any such customizations.

                        @olivierlambert Tried with tsc clock, same result. rngd started to eat 50-100% of cpu right after started it,

                        However I just tested how Oracle runs if the rngd service is stopped....and looks like no problems.

                        So the solution seems to be just stop and disable the rngd service and everything works the same they did in bare bone hardware!

                        Thanks to everyone who helped with this!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post