Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Parameterized bpm limits #112

Merged
merged 9 commits into from
Feb 25, 2020
Merged

Parameterized bpm limits #112

merged 9 commits into from
Feb 25, 2020

Conversation

aegershman
Copy link
Owner

@aegershman aegershman commented Feb 25, 2020

part of #64

Continuation of #111 with specific focus on bpm limits, sysctl config set aside for separate PR

@github-actions github-actions bot added job/yb-master code changes affecting yb-master job job/yb-tserver code changes affecting yb-tserver job labels Feb 25, 2020
@aegershman aegershman merged commit 79cb988 into master Feb 25, 2020
@aegershman aegershman deleted the parameterized-bpm-limits branch February 25, 2020 21:33
@aegershman
Copy link
Owner Author

aegershman commented Feb 25, 2020

after enabling bpm limits for processes and open files:

ulimit -n
1024

bpm pid yb-tserver
6955

tserver/1bf9fedf-147b-4353-b49e-02d57d065d3a:~# cat /proc/6955/limits 
Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             30605                30605                processes 
Max open files            64000                64000                files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       30605                30605                signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0                    
Max realtime priority     0                    0                    
Max realtime timeout      unlimited            unlimited            us   

notice how when running as root user (or performing su - vcap -c 'ulimit -n'), it still shows limits of 1024, but when querying the specific process under /proc/PROCPID/limits, it shows different (presumably correct) details

EDIT: okay so it's expected that these have different values for bpm from /proc/... vs. running ulimits as a user: https://serverfault.com/questions/788233/procs-limit-and-ulimit-f-dont-match

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
job/yb-master code changes affecting yb-master job job/yb-tserver code changes affecting yb-tserver job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants