---
name: "function::proc_mem_rss"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::proc_mem_rss"
---

# function::proc\_mem\_rss(3stap)

Program resident set size in pages

## NAME

function::proc\_mem\_rss - Program resident set size in pages

## SYNOPSIS

```
1) proc_mem_rss:long()
```

```
2) proc_mem_rss:long(pid:long)
```

## ARGUMENTS

*pid*

The pid of process to examine

## DESCRIPTION

1\) Returns the resident set size in pages of the current process, or zero when there is no current process or the number of pages couldn't be retrieved.

2\) Returns the resident set size in pages of the given process, or zero when the process doesn't exist or the number of pages couldn't be retrieved.

## SEE ALSO0

[*tapset::proc\_mem*(3stap)](/tapset::proc_mem/3stap.md)
