Jump to content
  • Unlike Windows 11, older AMD Ryzen will be supported and get performance boost on Linux


    Karlston

    • 814 views
    • 3 minutes
     Share


    • 814 views
    • 3 minutes

    AMD Ryzen processors are set to receive another performance boost on Linux. A Linux Red Hat developer, Tejun Heo, observed that the Last Level Cache (LLC), which is the Level 3 (L3) cache in the case of Zen 2 processors can be further optimized.

     

    The operating system assigns a particular task to a processor thread which is identified as "idle" by the OS. However, at the moment, the Linux kernel only identifies idle threads within the local LLC. However, with the latest proposed patch, this is set to change as "select_idle_sibling()" will now be able to consider external LLC as well. This means the OS will be able to schedule and queue tasks quicker in case there are idle threads on another CCX (CPU Complex) or CCD (Core Compute Die).

     

    Linux kernel engineer Peter Zijlstra sent the following patch titled "sched/fair: Multi-LLC select_idle_sibling()" recently. It reads:

     

    Tejun reported that when he targets workqueues towards a specific LLC on his Zen2 machine with 3 cores / LLC and 4 LLCs in total, he gets significant idle time.

     

    This is, of course, because of how select_idle_sibling() will not consider anything outside of the local LLC, and since all these tasks are short running the periodic idle load balancer is ineffective.

     

    And while it is good to keep work cache local, it is better to not have significant idle time. Therefore, have select_idle_sibling() try other LLCs inside the same node when the local one comes up empty.

     

    The images below show AMD's Zen 2 CCX, CCD, and the cache hierarchy in the case of a single CCD (left) and dual CCDs (right):

     

    1685738653_zen_2_ccx_ccd_cache_details_s

    1685738647_zen_2_dual_ccx_ccd_cache_deta

     

    The change talks about Zen 2 or Ryzen 3000 series CPUs in particular, but its predecessors like Zen+ and the original Zen architecture also used a similar approach where each CCX has its own L3 cache or LLC, and they inter-communicate via the Infinity Fabric.

     

    The images below are the original Zen core architecture and its L1, L2, and L3 caches:

     

    1685738078_zen_1_core_cache_details_stor

    1685738072_zen_1_l3_cache_hot_chips_2016

     

    AMD continues to use this with Zen 3 (Ryzen 5000) and Zen 4 (Ryzen 7000) series CPUs as well. Hence, the upcoming optimizations will be applicable throughout the stack. This is actually something older Zen CPU users will appreciate as Microsoft has deemed the Zen-based Ryzen 1000 series chips unsupported for Windows 11.

     

    The company moved to a 32MB Shared LLC (SLLC) L3 design on Zen 3 from a 16MB one on Zen 2:

     

    1685736793_amd_zen_2_vs_zen_3_story.jpg

     

    While we are on the topic of LLC, AMD's main x86 rival Intel is also working on a new Level 4 (L4) cache for its 14th Gen Meteor Lake CPUs that could enable faster boot times.

     

     

    Unlike Windows 11, older AMD Ryzen will be supported and get performance boost on Linux


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...