Project

General

Profile

Feature #1119

getrusage() could fill ru_maxrss

Added by Rich Lowe over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
2011-06-16
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

Someone mentioned in #opensolaris that we don't fill out ru_maxrss. looking at the code, it seems like this could be done in much the same way as prgetpsinfo() does it without too much trouble:

drop the p_lock, take the a_lock of p_as, and use rm_asrss().

History

#1

Updated by Rich Lowe over 8 years ago

It's possible that locking the as with sufficient frequency to maintain an even somewhat accurate max is a bad idea overhead wise.
The also-unimplemented ru_idrss would do this per-tick, which certainly seems like a bad idea.

Also available in: Atom PDF