EVOLUTION-MANAGER
Edit File: ps_memory_info.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Memory usage information</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for ps_memory_info {ps}"><tr><td>ps_memory_info {ps}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Memory usage information</h2> <h3>Description</h3> <p>A list with information about memory usage. Portable fields: </p> <ul> <li> <p><code>rss</code>: "Resident Set Size", this is the non-swapped physical memory a process has used. On UNIX it matches "top"‘s 'RES' column (see doc). On Windows this is an alias for <code>wset</code> field and it matches "Memory" column of <code>taskmgr.exe</code>. </p> </li> <li> <p><code>vmem</code>: "Virtual Memory Size", this is the total amount of virtual memory used by the process. On UNIX it matches "top"‘s 'VIRT' column (see doc). On Windows this is an alias for the <code>pagefile</code> field and it matches the "Working set (memory)" column of <code>taskmgr.exe</code>. </p> </li></ul> <h3>Usage</h3> <pre> ps_memory_info(p) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>p</code></td> <td> <p>Process handle.</p> </td></tr> </table> <h3>Details</h3> <p>Non-portable fields: </p> <ul> <li> <p><code>shared</code>: (Linux) memory that could be potentially shared with other processes. This matches "top"‘s 'SHR' column (see doc). </p> </li> <li> <p><code>text</code>: (Linux): aka 'TRS' (text resident set) the amount of memory devoted to executable code. This matches "top"‘s 'CODE' column (see doc). </p> </li> <li> <p><code>data</code>: (Linux): aka 'DRS' (data resident set) the amount of physical memory devoted to other than executable code. It matches "top"‘s 'DATA' column (see doc). </p> </li> <li> <p><code>lib</code>: (Linux): the memory used by shared libraries. </p> </li> <li> <p><code>dirty</code>: (Linux): the number of dirty pages. </p> </li> <li> <p><code>pfaults</code>: (macOS): number of page faults. </p> </li> <li> <p><code>pageins</code>: (macOS): number of actual pageins. </p> </li></ul> <p>For on explanation of Windows fields see the <a href="https://docs.microsoft.com/en-us/windows/win32/api/psapi/ns-psapi-process_memory_counters_ex">PROCESS_MEMORY_COUNTERS_EX</a> structure. </p> <p>Throws a <code>zombie_process()</code> error for zombie processes. </p> <h3>Value</h3> <p>Named real vector. </p> <h3>See Also</h3> <p>Other process handle functions: <code><a href="ps_children.html">ps_children</a>()</code>, <code><a href="ps_cmdline.html">ps_cmdline</a>()</code>, <code><a href="ps_connections.html">ps_connections</a>()</code>, <code><a href="ps_cpu_times.html">ps_cpu_times</a>()</code>, <code><a href="ps_create_time.html">ps_create_time</a>()</code>, <code><a href="ps_cwd.html">ps_cwd</a>()</code>, <code><a href="ps_environ.html">ps_environ</a>()</code>, <code><a href="ps_exe.html">ps_exe</a>()</code>, <code><a href="ps_handle.html">ps_handle</a>()</code>, <code><a href="ps_interrupt.html">ps_interrupt</a>()</code>, <code><a href="ps_is_running.html">ps_is_running</a>()</code>, <code><a href="ps_kill.html">ps_kill</a>()</code>, <code><a href="ps_name.html">ps_name</a>()</code>, <code><a href="ps_num_fds.html">ps_num_fds</a>()</code>, <code><a href="ps_num_threads.html">ps_num_threads</a>()</code>, <code><a href="ps_open_files.html">ps_open_files</a>()</code>, <code><a href="ps_pid.html">ps_pid</a>()</code>, <code><a href="ps_ppid.html">ps_ppid</a>()</code>, <code><a href="ps_resume.html">ps_resume</a>()</code>, <code><a href="ps_send_signal.html">ps_send_signal</a>()</code>, <code><a href="ps_status.html">ps_status</a>()</code>, <code><a href="ps_suspend.html">ps_suspend</a>()</code>, <code><a href="ps_terminal.html">ps_terminal</a>()</code>, <code><a href="ps_terminate.html">ps_terminate</a>()</code>, <code><a href="ps_uids.html">ps_uids</a>()</code>, <code><a href="ps_username.html">ps_username</a>()</code> </p> <h3>Examples</h3> <pre> p <- ps_handle() p ps_memory_info(p) </pre> <hr /><div style="text-align: center;">[Package <em>ps</em> version 1.3.4 <a href="00Index.html">Index</a>]</div> </body></html>