<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libmemstat/memstat.h, branch release/8.2.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2011-02-16T16:18:46Z</updated>
<entry>
<title>Copy releng/8.2 to release/8.2.0 for 8.2-RELEASE.</title>
<updated>2011-02-16T16:18:46Z</updated>
<author>
<name>Ken Smith</name>
<email>kensmith@FreeBSD.org</email>
</author>
<published>2011-02-16T16:18:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dec99dafe5763ba1db6950342aa80a634169c083'/>
<id>urn:sha1:dec99dafe5763ba1db6950342aa80a634169c083</id>
<content type='text'>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 8.2-RELEASE image.
</content>
</entry>
<entry>
<title>Fix a comment in memstat.h: errors are associated with memory type lists,</title>
<updated>2007-03-15T10:44:18Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2007-03-15T10:44:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e6a464153235f358c488e3cda721a0ae9e9f94a2'/>
<id>urn:sha1:e6a464153235f358c488e3cda721a0ae9e9f94a2</id>
<content type='text'>
not individual types.

Submitted by:	Bryan Venteicher &lt;bryanv at daemoninthecloset dot org&gt;
MFC after:	3 days
</content>
</entry>
<entry>
<title>Increase the number of CPUs to 32 to suit sun4v.</title>
<updated>2006-07-26T07:46:32Z</updated>
<author>
<name>John Birrell</name>
<email>jb@FreeBSD.org</email>
</author>
<published>2006-07-26T07:46:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6358aecacd929d348ff9b1adeecc904ddaa590fb'/>
<id>urn:sha1:6358aecacd929d348ff9b1adeecc904ddaa590fb</id>
<content type='text'>
Reviewed by: rwatson@
</content>
</entry>
<entry>
<title>Teach libmemstat(3) how to extract malloc(9) statistics using kvm(3),</title>
<updated>2005-08-06T13:54:03Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-08-06T13:54:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ba23fa9bd8ca73840dab82f6c9225a9b0bed3598'/>
<id>urn:sha1:ba23fa9bd8ca73840dab82f6c9225a9b0bed3598</id>
<content type='text'>
so that libmemstat can be used to view full memory statistics from
kernel core dumps and /dev/mem.  This is provided via a new query
function, memstat_kvm_malloc(), which is also automatically invoked
by memstat_kvm_all().  A kvm handle must be passed in.

This will allow malloc(9)-specific code to be removed from vmstat(8).
</content>
</entry>
<entry>
<title>Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine</title>
<updated>2005-08-01T19:07:39Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-08-01T19:07:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=33c20d188c95e286882b488f032c4d08bd52aca0'/>
<id>urn:sha1:33c20d188c95e286882b488f032c4d08bd52aca0</id>
<content type='text'>
that knows how to extract UMA(9) allocator statistics from a core dump or
live memory image using kvm(3).  The caller is expected to provide the
necessary kvm_t handle, which is then used by libmemstat(3).

With these changes, it is trivially straight forward to re-introduce
vmstat -z support on core dumps, which was lost when UMA was introduced.

In the short term, this requires including vm/ include files that are not
intended for extra-kernel use, requiring in turn some ugliness.
</content>
</entry>
<entry>
<title>Having decided not to provide a libmemstat(3) error number to text</title>
<updated>2005-07-24T01:41:47Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-07-24T01:41:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e754c6bbb73872f3a2613db6105728622a267cb6'/>
<id>urn:sha1:e754c6bbb73872f3a2613db6105728622a267cb6</id>
<content type='text'>
conversion routine, now change my mind and add one, memstat_strerror(3),
which returns a const char * pointer to a string describing the error,
to be used on the results of memstat_mtl_geterror().

While here, also correct a minor typo in the HISTORY man page.

Pointers on improving ease of internationalization would be
appreciated.

MFC after:	1 day
</content>
</entry>
<entry>
<title>Introduce more formal error handling for libmemstat(3):</title>
<updated>2005-07-24T01:28:54Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-07-24T01:28:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=345628080df9217ac3a2c45b779d482b54b26383'/>
<id>urn:sha1:345628080df9217ac3a2c45b779d482b54b26383</id>
<content type='text'>
- Define a set of libmemstat(3) error constants, which are used by all
  libmemstat(3) methods except for memstat_mtl_alloc(), which allocates
  a memory type list and may return ENOMEM via errno.

- Define a per-memory_type_list current error value, which is set when a
  call associated with a memory list fails.  This requires wrapping a
  structure around the queue(9) list head data structure, but this change
  is not visible to libmemstat(3) consumers due to using access methods.

- Add a new accessor method, memstat_mtl_geterror() to retrieve the error
  number.

- Consistently set the error number in a number of failure modes where
  previously some combination of setting errno and printf'ing error
  descriptions was used.  libmemstat(3) will now no longer print to stdio
  under any circumstances.  Returns of NULL/-1 for errors remain the
  same.

This avoids use of stdio, misuse of error numbers, and should make it
easier to program a libmemstat(3) consumer able to print useful error
messages.  Currently, no error-to-string function is provided, as I'm
unsure how to address internationalization concerns.

MFC after:	1 day
</content>
</entry>
<entry>
<title>UMA supports "secondary" zones, in which a second zone can be layered</title>
<updated>2005-07-20T09:17:40Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-07-20T09:17:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ca108fe268b738a363dde8e3cba5be3bbc2d9cc9'/>
<id>urn:sha1:ca108fe268b738a363dde8e3cba5be3bbc2d9cc9</id>
<content type='text'>
on top of a primary zone, sharing the same allocation "keg".  When
reporting statistics for zones, do not report the free items in the
keg as part of the free items in the zone, or those free items will
be reported more than once: for the primary zone, and then any
secondary zones off the primary zone.  Separately record and maintain
a kegfree statistic, and export via memstat_get_kegfree(), which is
available for use if needed.  Since items free'd back to the keg are
not fully initialized, and hence may not actually be available (since
secondary zone ctor-time initialization can fail), this makes some
amount of sense.

This change corrects a bug made visible in the libmemstat(3)
modifications to netstat: mbufs freed back to the keg from the
packet zone would be counted twice, resulting in negative values
being printed in the mbuf free count.

Some further refinement of reporting relating to secondary zones may
still be required.

Reported by:	ssouhlal
MFC after:	3 days
</content>
</entry>
<entry>
<title>Bump MEMSTAT_MAXCALLER to 16.  memtop(8) seems to be able to happily</title>
<updated>2005-07-18T14:14:17Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-07-18T14:14:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=919bddddb66d69e6906e3a3e2691a7d38b83c02a'/>
<id>urn:sha1:919bddddb66d69e6906e3a3e2691a7d38b83c02a</id>
<content type='text'>
consume that many slots to track snapshot-to-snapshot changes and
running totals.  And 16 is a nice round number.

MFC after:	1 week
</content>
</entry>
<entry>
<title>Add __BEGIN_DECLS and __END_DECLS to make libmemstat(3) more C++-friendly.</title>
<updated>2005-07-17T13:54:46Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2005-07-17T13:54:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=449ce0e42f55699799135f6fdb040c261dc76a3a'/>
<id>urn:sha1:449ce0e42f55699799135f6fdb040c261dc76a3a</id>
<content type='text'>
MFC after:	1 week
</content>
</entry>
</feed>
