Skip to content

tokarevart/threads-mem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Let's see how much memory threads stacks actually use.

Unlock unlimited number of threads (on my machine)

# do this first
sudo HOME="$HOME" PATH="$PATH" bash
# then inside the new shell
echo max > /sys/fs/cgroup/init.scope/pids.max
sysctl -w vm.max_map_count=3000000

How much memory is used

sudo cat /proc/$(pgrep threads-mem)/smaps_rollup
ps -o pid,vsz,rss,comm -p $(pgrep threads-mem)

About

Let's see how much memory threads stacks actually use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages