After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654344 - Add buffercache statistics and various tweaks for OpenBSD
Add buffercache statistics and various tweaks for OpenBSD
Status: RESOLVED FIXED
Product: libgtop
Classification: Core
Component: bsd
2.28.x
Other OpenBSD
: Normal normal
: ---
Assigned To: libgtop maintainers
libgtop maintainers
Depends on:
Blocks:
 
 
Reported: 2011-07-10 15:32 UTC by Jasper Lievisse Adriaanse
Modified: 2011-07-11 13:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sync with openbsd ports (4.77 KB, patch)
2011-07-10 15:32 UTC, Jasper Lievisse Adriaanse
none Details | Review

Description Jasper Lievisse Adriaanse 2011-07-10 15:32:33 UTC
Created attachment 191631 [details] [review]
sync with openbsd ports

The attached diff syncs the libgtop code with the OpenBSD port:

- implement GLIBTOP_MEM_CACHED on OpenBSD by retrieving buffercache stats
- decrease stack usage when retrieving memory stats
- use consistent warnings when failing sysctl(3) calls
- rename a few variables for clarity

Would these be allright to push?
Comment 1 Antoine Jacoutot 2011-07-11 05:07:14 UTC
FWIW I can vouch for that diff. Our packages are shipping with it and all reported values now correct. Also this adds support for cached memory stats which we didn't have before.
Comment 2 Jasper Lievisse Adriaanse 2011-07-11 13:04:18 UTC
Thanks, it's been committed.