Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 119688
Summary: | net-snmp does not support new meminfo format | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Hrunting Johnson <hrunting> | ||||||
Component: | net-snmp | Assignee: | Radek Vokál <rvokal> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 2 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-01-13 12:54:28 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 114963, 123268, 136451 | ||||||||
Attachments: |
|
Description
Hrunting Johnson
2004-04-01 15:09:18 UTC
Created attachment 99038 [details]
patch for memory and cpu gathering
This patch affects the memory and cpu gathering stats. It also includes
support for gathering very large memory statistics. No guarantees for
accuracy.
Created attachment 99039 [details]
corrected patch
The prior patch was still dividing the memory total by 1024 even though it was
already reading a value in kB. This patch removes the 1024 line.
The patch seems to be a little buggy: You define static unsigned row[MAX_ROW + 1] and sometimes use it as a char (as expected), other times you assigne a long value to it (row[i] = 0xffffffff). I'll take a look at it over the next few days, but i general i agree that the memory reporting needs to be adapted to the latest kernel. Read ya, Phil Yeah, it's rough and dirty. It definitely works though (been using it in production for over a week now). Feel free to correct the messy parts. Any news on this? I'd love to get rid of all these lines in /var/log/messages Aug 28 06:30:05 10.0.10.3 snmpd[30425]: No page line in /proc/stat Aug 28 06:30:05 10.0.10.3 snmpd[30425]: No swap line in /proc/stat which I assume is the same problem here.. This problem was fixed in upstream and might not have appear in net-snmp-5.1.2 version. Paul, which version are you using now? |