Tizen Native API  10.0
process_memory_info_s Struct Reference

Public Attributes

int vsz
int rss
int pss
int shared_clean
int shared_dirty
int private_clean
int private_dirty

Detailed Description

Structure for memory information per process.

Since :
2.4

This structure provides detailed memory usage information for specific processes. The information is collected from /proc/[pid]/stat and /proc/[pid]/smaps files. All values are reported in kibibytes (KiB).

Memory metrics:

  • vsz (Virtual Memory Size): Total virtual memory used by process, collected from /proc/[pid]/stat field 23 (virtual memory size in bytes) and converted to KiB
  • rss (Resident Set Size): Non-swapped physical memory used by process, collected from /proc/[pid]/smaps RSS sum
  • pss (Proportional Set Size): RSS adjusted for shared pages (each shared page's size is divided by the number of processes sharing it), collected from /proc/[pid]/smaps PSS sum
  • shared_clean: Memory mapped to files that hasn't been modified and shared with other processes (e.g., shared libraries), collected from /proc/[pid]/smaps Shared_Clean sum
  • shared_dirty: Memory mapped to files that has been modified and shared with other processes, collected from /proc/[pid]/smaps Shared_Dirty sum
  • private_clean: Process-private memory mapped to files that hasn't been modified, collected from /proc/[pid]/smaps Private_Clean sum
  • private_dirty: Process-private anonymous memory that has been modified (heap, stack, dynamically allocated memory), collected from /proc/[pid]/smaps Private_Dirty sum

Member Data Documentation

Not modified and available only to that process (KiB)

Modified and available only to that process (KiB)

Proportional set size (KiB)

Resident set size (KiB)

Not modified and mapped by other processes (KiB)

Modified and mapped by other processes (KiB)

Virtual memory size (KiB)