Microsoft-Performance-Tools for Linux published and WSL distribution for Windows 11 started

Microsoft has released the Microsoft-Performance-Tools open package for performance analysis and diagnosing performance-related issues on the Linux and Android platforms. For work, a set of command-line utilities is offered for analyzing the performance of the entire system and profiling individual applications. The code is written in C# using the .NET Core platform and distributed under the MIT license.

The LTTng, perf, and Perfetto subsystems can be used as a source for system activity tracking and application profiling. LTTng makes it possible to evaluate the work of the task scheduler, monitor the activity of processes, analyze system calls, input / output and events in the file system. Perf is used to estimate the load on the CPU. Perfetto can be used to analyze the performance of Android and browsers based on the Chromium engine, and allows you to take into account the work of the task scheduler, evaluate the load on the CPU and GPU, apply FTrace and perform tracing of typical events.

The toolkit can also extract information from logs in dmesg, Cloud-Init and WaLinuxAgent (Azure Linux Guest Agent) formats. For visual analysis of traces using graphs, integration with the Windows Performance Analyzer GUI, available only for Windows, is supported.

Microsoft-Performance-Tools for Linux published and WSL distribution for Windows 11 started

Separately, the appearance in Windows 11 Insider Preview Build 22518 of the possibility of installing the WSL (Windows Subsystem for Linux) environment as an application distributed through the Microsoft Store catalog is noted. At the same time, from the point of view of the technologies used, the filling of WSL remained the same, only the installation and update method has changed (WSL for Windows 11 is not built into the system image). It is stated that distribution through the Microsoft Store will provide an opportunity to accelerate the delivery of updates and new features of WSL, including the ability to install new versions of WSL without being tied to the version of Windows. For example, when experimental features such as support for Linux graphics applications, GPU-side computing, and disk mounting are ready, the user will immediately be able to access them, without the need for a Windows update or the use of Windows Insider test builds.

Recall that in the modern WSL environment that runs Linux executables, instead of an emulator that translates Linux system calls to Windows system calls, an environment with a full-fledged Linux kernel is used. The proposed kernel for WSL is based on the release of the Linux 5.10 kernel, which is extended with WSL-specific patches, including optimizations to reduce kernel startup time, reduce memory consumption, return memory freed by Linux processes to Windows, and leave the minimum required set of drivers and subsystems in the kernel.

The kernel runs in a Windows environment using a virtual machine already running in Azure. The WSL environment runs in a separate disk image (VHD) with an ext4 file system and a virtual network adapter. The user-space components are installed separately and are based on builds from different distributions. For example, the Microsoft Store offers builds of Ubuntu, Debian GNU/Linux, Kali Linux, Fedora, Alpine, SUSE, and openSUSE for installation on WSL.

Source: opennet.ru

Add a comment