The first execution of the crash built-in command "ps -r" heavily consumes memory and time.

Solution In Progress - Updated -

Issue

  • The first execution of the crash built-in command ps -r heavily consumes memory and time.
# echo "exit" | time -v crash -s
        Command being timed: "crash -s"
        User time (seconds): 24.55
        System time (seconds): 0.73
        Percent of CPU this job got: 100%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:25.16
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 410240
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 40395
        Voluntary context switches: 546
        Involuntary context switches: 31
        Swaps: 0
        File system inputs: 0
        File system outputs: 280
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0

# echo "ps -r" | time -v crash -s
----------8<----------8<----------8<---
Command exited with non-zero status 1
        Command being timed: "crash -s"
        User time (seconds): 48.66                             <<<---
        System time (seconds): 2.03
        Percent of CPU this job got: 99%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:50.92   <<<---
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 1839252            <<<---
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 416190
        Voluntary context switches: 548
        Involuntary context switches: 244
        Swaps: 0
        File system inputs: 0
        File system outputs: 288
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 1

Environment

  • Red Hat Enterprise Linux release 9.0 (Plow)
  • crash

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content