Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_process_ppid() and other should cache the status file #281

Closed
giampaolo opened this issue May 23, 2014 · 3 comments
Closed

get_process_ppid() and other should cache the status file #281

giampaolo opened this issue May 23, 2014 · 3 comments

Comments

@giampaolo
Copy link
Owner

From [email protected] on June 12, 2012 21:25:17

opening the process status file on *every* API call makes psutil very slow on 
high loads -- e.g. we use it to stream CPU usage statistics.

The Process class should cache the value of the file, at least to get the ppid, 
uid gid, since those don't change much during the process life.

Original issue: http://code.google.com/p/psutil/issues/detail?id=281

@giampaolo
Copy link
Owner Author

From g.rodola on June 12, 2012 21:28:41

Good idea.
Done in r1343 for ppid, name, exe, cmdline and create_time properties.
Prorcess uids and gids may be subject to change hence we can't cache them.

Status: FixedInSVN
Labels: Milestone-0.5.0 Performance Compatibility

@giampaolo
Copy link
Owner Author

From g.rodola on June 27, 2012 11:54:03

0.5.0 is finally out. Closing out as fixed.

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:08:59

Updated csets after the SVN -> Mercurial migration: r1343 == revision ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant