Announcement

Collapse
No announcement yet.

V-Ray resetting affinity on each render

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • V-Ray resetting affinity on each render

    Hi,

    I just noticed that V-Ray resets 3dsmax.exe process affinity on start of each render. Is this expected behavior? And if so, is there any way to prevent it?

    Thanks.

  • #2
    yeah its set to utilize the threads on systems with more then 64. I think there is a env setting called VRAY_USE_THREAD_AFFINITY=0 that will disable this option.
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      Yes, it is expected. You can disable this behavior with the environment variable VRAY_USE_THREAD_AFFINITY=0 but you will lose the ability to use more that 64 threads.

      Best regards,
      Vlado
      I only act like I know everything, Rogers.

      Comment


      • #4
        Thank you very much. I am too poor to ever even see 64thread machine from the distance out of the window of quickly passing train, so this won't bother me much

        Comment


        • #5
          Well I have a 48 thread machine, but i prefere to reserve 1 or 2 threads for other tasks, or else vray aggressively consumes machine's cpu and I'm unable to do anything else.
          Dmitry Vinnik
          Silhouette Images Inc.
          ShowReel:
          https://www.youtube.com/watch?v=qxSJlvSwAhA
          https://www.linkedin.com/in/dmitry-v...-identity-name

          Comment


          • #6
            The correct way to do it is to limit the number of threads that V-Ray uses, f.e. using the VRAY_NUM_THREADS environment variable, instead of dabbling with processor and thread affinity.

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              Originally posted by vlado View Post
              Yes, it is expected. You can disable this behavior with the environment variable VRAY_USE_THREAD_AFFINITY=0 but you will lose the ability to use more that 64 threads.

              Best regards,
              Vlado
              I've been looking and looking on how to actually do this, but I can't for the life of me find any information. Is this done thru windows, or maxscipt for example? Would love some guidance
              James Burrell www.objektiv-j.com
              Visit my Patreon patreon.com/JamesBurrell

              Comment


              • #8
                System environment variables.

                https://www.google.it/search?q=windo...hrome&ie=UTF-8
                Lele
                Trouble Stirrer in RnD @ Chaos
                ----------------------
                emanuele.lecchi@chaos.com

                Disclaimer:
                The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

                Comment


                • #9
                  With progressive, even if you change the affinity, it doesn't really change, cause if you check it again, it's been reset to all cores.
                  A.

                  ---------------------
                  www.digitaltwins.be

                  Comment


                  • #10
                    Originally posted by Vizioen View Post
                    With progressive, even if you change the affinity, it doesn't really change, cause if you check it again, it's been reset to all cores.
                    Even with the affinity env variable set?
                    James Burrell www.objektiv-j.com
                    Visit my Patreon patreon.com/JamesBurrell

                    Comment


                    • #11
                      Originally posted by Pixelcon View Post

                      Even with the affinity env variable set?
                      That, I haven't tried yet, I tried it the "old-fashioned" way.
                      A.

                      ---------------------
                      www.digitaltwins.be

                      Comment


                      • #12
                        Originally posted by vlado View Post
                        Yes, it is expected. You can disable this behavior with the environment variable VRAY_USE_THREAD_AFFINITY=0 but you will lose the ability to use more that 64 threads.

                        Best regards,
                        Vlado
                        Vizoen, can confirm this works for me.
                        James Burrell www.objektiv-j.com
                        Visit my Patreon patreon.com/JamesBurrell

                        Comment

                        Working...
                        X