Libresource 2 uses Netlink sockets for faster network statistics

Oracle releases Libresource 2 with better performance, extended modules, Netlink sockets and scalable bulk API for efficient data processing.

Save to Pocket listen Print view

(Image: The Viz / Shutterstock.com)

2 min. read
This article was originally published in German and has been automatically translated.

Orcacle has announced the release of Libresource 2, a comprehensively revised version of the well-known library for recording system resource information in Linux operating systems. According to the announcement post, version 2 builds on version 1 but brings performance optimizations and new functionality.

The update extends module support and covers a wider range of modules and sub-modules, including vmstat, meminfo, cpuinfo, file systems and various network statistics such as route and arp.

RTM_ROUTE sockets for network statistics and new parsing mechanisms are intended to increase the performance of the library. Tests by the developers have shown that the time required to retrieve data has been significantly reduced.

Instead of the time-consuming parsing of /proc data, Libresource 2 uses Netlink sockets to retrieve network statistics faster and more reliably. Netlink sockets are special sockets in Linux that enable communication between the kernel and user-space applications and are often used for tasks such as network administration and system configuration.

A new testing infrastructure allows developers to check the accuracy of the data and ensure that all changes in the /proc files are handled correctly.

In addition, the bulk API can be scaled, allowing applications to process large amounts of data more efficiently. The development team sees this as a particular advantage for data-intensive applications such as databases.

A bulk API enables the processing and transfer of large amounts of data in a single API call, which reduces the number of API calls required and thus increases performance.

Interested parties can download the Libresource library via GitHub and integrate it into their projects. Further information on the release can be found in the article on the Oracle blog.

(mdo)