---
name: "perf_3.2-kmem"
section: "1"
platform: "linux"
package: "linux-tools-3.2"
version: "3.2.17-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/perf_3.2-kmem"
---

# perf\_3.2-kmem(1)

Tool to trace/measure kernel memory(slab) properties

## NAME

perf-kmem - Tool to trace/measure kernel memory(slab) properties

## SYNOPSIS

```
perf kmem {record|stat} [<options>]
```

## DESCRIPTION

There are two variants of perf kmem:

```
'perf kmem record <command>' to record the kmem events
of an arbitrary workload.
```

```
'perf kmem stat' to report kernel memory statistics.
```

## OPTIONS

- \-i \<file\>, --input=\<file\>

  Select the input file (default: perf.data)

- \--caller

  Show per-callsite statistics

- \--alloc

  Show per-allocation statistics

- \-s \<key\[,key2...\]\>, --sort=\<key\[,key2...\]\>

  Sort the output (default: frag,hit,bytes)

- \-l \<num\>, --line=\<num\>

  Print n lines only

- \--raw-ip

  Print raw ip instead of symbol

## SEE ALSO

[**perf\_3.2-record**(1)](/perf_3.2-record/1.md)
