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.
![](https://heise.cloudimg.io/width/610/q85.png-lossy-85.webp-lossy-85.foil1/_www-heise-de_/imgs/18/4/6/6/5/3/9/9/shutterstock_1783890377-30107ffae3ed80ee.jpeg)
(Image: The Viz / Shutterstock.com)
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.
Performance optimization
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.
Test infrastructure and scalable bulk API
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)