Why is in the output of 'top' the value for RES higher than CODE + DATA, while the manpage RES = CODE + DATA?

Solution Verified - Updated -

Issue

The manpage of top states:

q: RES  --  Resident size (kb)
          The non-swapped physical memory a task has used.
          RES = CODE + DATA.

Example output of top:

  PID USER      VIRT  RES  SHR S    TIME+  CODE DATA COMMAND                        
 1515 root     95740 3864 2928 S   0:00.03  504  792 sshd
21239 root     15028 1204  944 R   0:00.02   56  496 top
    1 root     19352 1568 1252 S   0:00.65  140  416 init

Why is CODE + DATA smaller than RES, while the manpage states differently?

Environment

  • Red Hat Enterprise Linux (RHEL) 6.0-6.4
  • Red Hat Enterprise Linux (RHEL) 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.