SUSE Support

Here When You Need Us

Command "lparstat -E" is failing to open files

This document (000020656) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP4

Situation

When performing a "lparstat -E" the following error message (as it happens today) is being displayed:

$ lparstat -E
Failed to open /sys/devices/system/cpu/cpu340/idle_purr

Resolution

As a workaround for this issue, increase the maximum number of open file descriptors using "ulimit -n" as shown below:

$ nproc
480

Number of file descriptors needed is (480 * 3) + 10, which is 1450.

$ ulimit -n 1450

Alternatively, increase the limit to a higher value like 30k below

$ ulimit -n 30000

Cause

On max config system, "lparstat -E" option is failing to open a few files even though they are present. This is because the number of open file descriptors for a Linux user process is limited to 1024 by default. But, lparstat requires more than (nproc * 3) file descriptors to be able to open all the files and for "lparstat -E" to work.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020656
  • Creation Date: 13-May-2022
  • Modified Date:16-May-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.