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

    Tag-Based Automation: Manage VM CPU Priority via assigned tag.

    Scheduled Pinned Locked Moved Management
    37 Posts 6 Posters 2.0k Views 4 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
      john.c @johnnezero
      last edited by john.c

      @johnnezero said:

      @john.c Great ideas (especially if Vates decides to bake something similar into XO someday) but may be getting too far into the weeds for now...

      That’s okay. Just putting it out there - no rush! Any way to maintain Linux good practice relocate the conf file to /usr/local/etc/ (or /etc) then keep script in /usr/local/bin.

      johnnezeroJ 1 Reply Last reply Reply Quote 0
      • J Offline
        john.c
        last edited by john.c

        @johnnezero Also there’s shortcut directories including one called cron.hourly, you can place a symlink (or hard link) to the script there. Cron will then execute the script without you needing to alter the crontab file.

        Just drop .sh for using the shortcut directory as it will not run there otherwise.

        johnnezeroJ 2 Replies Last reply Reply Quote 0
        • johnnezeroJ Offline
          johnnezero @john.c
          last edited by

          @john.c Yet another awesome idea - adding it to the "ToDo List", thanks!

          1 Reply Last reply Reply Quote 0
          • johnnezeroJ Offline
            johnnezero @john.c
            last edited by johnnezero

            @john.c Wandered off through the weeds (with Claude/AI that us), and got it done. 🙂

            1 Reply Last reply Reply Quote 0
            • johnnezeroJ Offline
              johnnezero @john.c
              last edited by

              @john.c Also done! Thanks for all the great input, keep em' coming...

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                Pilow @johnnezero
                last edited by

                @johnnezero this could be a plugin in XOA !

                johnnezeroJ 1 Reply Last reply Reply Quote 0
                • johnnezeroJ Offline
                  johnnezero @Pilow
                  last edited by

                  @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                  Adding to the ToDo list - Thanks!

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    john.c @johnnezero
                    last edited by john.c

                    @johnnezero said:

                    @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                    Adding to the ToDo list - Thanks!

                    @johnnezero said:

                    @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                    Adding to the ToDo list - Thanks!

                    Looks like I can help out again just tracked down this past thread on the forums.

                    https://xcp-ng.org/forum/topic/7202/how-do-i-create-a-new-plugin

                    How’s your JavaScript (Typescript), JSON etc? These are the languages needed to develop plugins for Xen Orchestra.

                    johnnezeroJ 2 Replies Last reply Reply Quote 0
                    • johnnezeroJ Offline
                      johnnezero @john.c
                      last edited by

                      @john.c Thanks much, looking into it.
                      "Open-Source for the Win!" 🙂

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        john.c @johnnezero
                        last edited by

                        @johnnezero said:

                        @john.c Thanks much, looking into it.
                        "Open-Source for the Win!" 🙂

                        Your welcome!

                        1 Reply Last reply Reply Quote 0
                        • tjkreidlT Offline
                          tjkreidl Ambassador @johnnezero
                          last edited by

                          @johnnezero It would be also interesting to take UMA/NUMA into account as VMs -- in particular, VMs with vGPUS -- can run much more efficiently if they do not cross memory bank boundaries that span more than one CPU instance. On some Linux systems -- not sure about the one hosting XCP-ng -- you can even disable NUMA. Just an additional thought here. I published a number of years ago a three-part series "A Tale of Two Servers" discussing a number of related optimizations but alas, the Citrix blogs were eliminated and I'm snot sure where copies of these articles exist anymore. But there are plenty of articles on this, in particular by Frank Denneman, and also ones like the following;
                          https://indico.cern.ch/event/304944/contributions/1672535/attachments/578723/796898/numa.pdf
                          https://docs.xenserver.com/en-us/xenserver/9/numa.html

                          J johnnezeroJ 2 Replies Last reply Reply Quote 0
                          • J Offline
                            john.c @tjkreidl
                            last edited by john.c

                            @tjkreidl said:

                            @johnnezero It would be also interesting to take UMA/NUMA into account as VMs -- in particular, VMs with vGPUS -- can run much more efficiently if they do not cross memory bank boundaries that span more than one CPU instance. On some Linux systems -- not sure about the one hosting XCP-ng -- you can even disable NUMA. Just an additional thought here. I published a number of years ago a three-part series "A Tale of Two Servers" discussing a number of related optimizations but alas, the Citrix blogs were eliminated and I'm snot sure where copies of these articles exist anymore. But there are plenty of articles on this, in particular by Frank Denneman, and also ones like the following;
                            https://indico.cern.ch/event/304944/contributions/1672535/attachments/578723/796898/numa.pdf
                            https://docs.xenserver.com/en-us/xenserver/9/numa.html

                            If you remember the URL and date maybe try the wayback machine of Internet Archive. They’re known to archive sites and articles wherever they can, may hold a copy that’s accessible.

                            tjkreidlT 1 Reply Last reply Reply Quote 0
                            • johnnezeroJ Offline
                              johnnezero @tjkreidl
                              last edited by johnnezero

                              @tjkreidl Wow that all sounds pretty intense - will keep it in mind. Thanks much!

                              1 Reply Last reply Reply Quote 0
                              • tjkreidlT Offline
                                tjkreidl Ambassador @john.c
                                last edited by

                                @john.c Not found with the Wayback Machine, alas. Still not finding it anywhere else, but will keep looking!
                                It's a crying shame Citrix didn't preserve the treasure trove of old community blogs.

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  john.c @tjkreidl
                                  last edited by john.c

                                  @tjkreidl said:

                                  @john.c Not found with the Wayback Machine, alas. Still not finding it anywhere else, but will keep looking!
                                  It's a crying shame Citrix didn't preserve the treasure trove of old community blogs.

                                  I did a bit of digging with the aid of AI and I’ve managed to uncover the original three blog posts of NUMA and references to UMA. If you do some more digging you may be able to uncover the rest, so it can be rewritten and/or updated, then be hosted somewhere that won’t go down so easily, or be lost as easily. If you do an update or write etc, may I suggest switching the images used to WebP or AVIF format, will seriously help file size while maintaining their quality (or even giving room for higher quality). Consider switching to SVG for diagrams rather than raster (or as the default). I’d suggest checking out to consider using Mermaid for diagrams (https://mermaid.ai/open-source/?utm_medium=hero&utm_campaign=variant_a&utm_source=mermaid_js). Maybe if you do a rewrite use markdown and something like Hugo, to generate it from the files to host on GitHub or some other pages providing repository (e.g. GitLab Pages or Codeberg Pages).

                                  https://web.archive.org/web/20220527221535/https://www.mycugc.org/blogs/tobias-kreidl/2019/03/07/tale-of-two-servers-bios-settings-affect-apps-gpu

                                  https://web.archive.org/web/20220527213026/https://www.mycugc.org/blogs/tobias-kreidl/2019/04/30/a-tale-of-two-servers-part-2

                                  https://web.archive.org/web/20220527215004/https://www.mycugc.org/blogs/tobias-kreidl/2019/04/30/a-tale-of-two-servers-part-3

                                  https://community.citrix.com/forums/topic/235895-xenserver-vm-citrix-worker-sizing-question/

                                  https://xcp-ng.org/forum/topic/9359/cpu-provisioning

                                  https://community.citrix.com/forums/topic/237493-memory-and-cpus-assigning-to-vms-in-order-to-obtain-maximum-performance-according-to-numa-topology/

                                  https://community.citrix.com/forums/topic/241553-bios-power-performance-settings/

                                  https://community.citrix.com/forums/topic/243640-citrix-hypervisor-performance-tips/

                                  tjkreidlT 1 Reply Last reply Reply Quote 1
                                  • johnnezeroJ Offline
                                    johnnezero @john.c
                                    last edited by johnnezero

                                    @john.c FYI: Bundling/done (Plugin/To come...)

                                    1 Reply Last reply Reply Quote 1
                                    • tjkreidlT Offline
                                      tjkreidl Ambassador @john.c
                                      last edited by tjkreidl

                                      @john.c Wow, that was amazing -- not sure why my searches were unsuccessful, but many thanks! I think Github might be a good option for putting these on-line as a more reliable spot. And, yes, preserving images is always a challenge.
                                      I do hope some of that information may be useful to you and thanks much again for all your efforts, John!

                                      P.S. Seems the easiest way to get the full content is to save the Web page as a PDF file, which I have since done. You can, of course, also download the whole package to an HTML folder but that output looks a bit messy, though it does split things out nicely. I'll consider one or the other or both for putting up somewhere, like on Github, but at least I have them now!

                                      J 1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        john.c @tjkreidl
                                        last edited by john.c

                                        @tjkreidl said:

                                        @john.c Wow, that was amazing -- not sure why my searches were unsuccessful, but many thanks! I think Github might be a good option for putting these on-line as a more reliable spot. And, yes, preserving images is always a challenge.
                                        I do hope some of that information may be useful to you and thanks much again for all your efforts, John!

                                        A bit of AI archeology combined with Internet Archive Wayback Machine helped. The AI helped to surface the exact URL of the blog posts and these were fed into Wayback Machine. Used the snapshot from 2022 anything newer and they weren’t there anymore. By the way it may be worth sending a donation Internet Archive’s way (if not done so already), as without this your blog posts would be truly gone for good!!

                                        Oh forgot to add GitHub and GitLab follows digital wills, so you can pass this off to another in a will, or generally be made read only while being kept up, when the time comes. So this hard work will be preserved even in the face of the end.

                                        Just please let me and the rest of us know where it’s at when done!

                                        johnnezeroJ tjkreidlT 2 Replies Last reply Reply Quote 1
                                        • johnnezeroJ Offline
                                          johnnezero @john.c
                                          last edited by

                                          @john.c Will do - and kudos to you on some phenomenal sleuthing work (and to @tjkreidl for sparking ithis contents recall from an early "bit-bucket" grave)! Happy Day All!

                                          1 Reply Last reply Reply Quote 1
                                          • tjkreidlT Offline
                                            tjkreidl Ambassador @john.c
                                            last edited by

                                            @john.c @johnnezero Well, the Github reporsitory is in place already! Access it at:
                                            https://github.com/tobiaskreidl/Citrix-Tobias-Kreidl-Collection
                                            Feel free to find more material to add, as will I, and thank you kindly for the suggestions and support.

                                            J johnnezeroJ 2 Replies Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post