Home >Operation and Maintenance >Nginx >Not to follow Windows 11, Linux will not only continue to support AMD Zen 2, but also optimize its performance

Not to follow Windows 11, Linux will not only continue to support AMD Zen 2, but also optimize its performance

WBOY
WBOYforward
2023-06-08 23:09:311436browse

不效仿 Windows 11,Linux 不仅继续支持 AMD Zen 2,还要优化其性能

According to news on June 3, according to foreign technology media NeoWin, the Linux distribution will not follow Win11 and will not only continue to provide support for AMD Ryzen processors based on Zen 2, And further improve performance by optimizing L3 cache (LLC).

The operating system will assign tasks to processor threads marked as "idle", but the current Linux kernel can only identify idle threads in the local L3 cache; and the select_idle_sibling() patch recently released Consider calling an outside LLC.

IT Home attaches two pictures here, showing the structural diagrams of AMD Zen 2 CCX and CCD. You can see the difference in cache structure between single CCD and dual CCD:

不效仿 Windows 11,Linux 不仅继续支持 AMD Zen 2,还要优化其性能

Single CCD

不效仿 Windows 11,Linux 不仅继续支持 AMD Zen 2,还要优化其性能

##Dual CCD

Red Hat developer Tejun Heo said that on Zen 2 devices, the Linux system is processing certain When queuing LLC work, there are a total of 3 cores/LLCs and a total of 4 LLCs, and most of the cores will be idle.

This is mainly because select_idle_sibling() does not consider anything outside the local LLC, and since all these tasks are run in a short period of time, periodic idle load balancers are ineffective.

While it is good to keep the work cache local, it is best not to have a lot of idle time. Therefore, when the local node is idle, let select_idle_sibling() try other LLCs within the same node.

The above is the detailed content of Not to follow Windows 11, Linux will not only continue to support AMD Zen 2, but also optimize its performance. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:51cto.com. If there is any infringement, please contact admin@php.cn delete