<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/cmd/arcstat, branch zfs-0.6.3</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>sighandler() should take 2 arguments</title>
<updated>2014-03-20T18:03:46+00:00</updated>
<author>
<name>Isaac Huang</name>
<email>he.huang@intel.com</email>
</author>
<published>2014-03-11T23:05:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=312f82ce65f37ed60f440194623fe38cdb1f601d'/>
<id>312f82ce65f37ed60f440194623fe38cdb1f601d</id>
<content type='text'>
Stopping arcstat.py with ^C always ends up with error:
TypeError: sighandler() takes no arguments (2 given)

Since no special signal handling was done in sighandler(),
it's simpler to just set SIGINT handler to SIG_DFL, which
terminates the script.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Closes #2179
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stopping arcstat.py with ^C always ends up with error:
TypeError: sighandler() takes no arguments (2 given)

Since no special signal handling was done in sighandler(),
it's simpler to just set SIGINT handler to SIG_DFL, which
terminates the script.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Closes #2179
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "sighandler() should take 2 arguments"</title>
<updated>2014-03-20T18:03:21+00:00</updated>
<author>
<name>Brian Behlendorf</name>
<email>behlendorf1@llnl.gov</email>
</author>
<published>2014-03-20T18:02:26+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d9119bd66df789cbd43d0f6aef4cd43b6baba58c'/>
<id>d9119bd66df789cbd43d0f6aef4cd43b6baba58c</id>
<content type='text'>
This reverts commit 0bb89b6c594259829556f6dea5a89e722f214fd3 in
favor of a cleaner implementation.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #2182
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 0bb89b6c594259829556f6dea5a89e722f214fd3 in
favor of a cleaner implementation.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #2182
</pre>
</div>
</content>
</entry>
<entry>
<title>sighandler() should take 2 arguments</title>
<updated>2014-03-12T16:00:18+00:00</updated>
<author>
<name>Isaac Huang</name>
<email>he.huang@intel.com</email>
</author>
<published>2014-03-11T05:16:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0bb89b6c594259829556f6dea5a89e722f214fd3'/>
<id>0bb89b6c594259829556f6dea5a89e722f214fd3</id>
<content type='text'>
Stopping arcstat.py with ^C always ends up with error:

  TypeError: sighandler() takes no arguments (2 given)

This patch corrects the error by updating the signal handler
to take the correct number of arguments.

Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2182
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stopping arcstat.py with ^C always ends up with error:

  TypeError: sighandler() takes no arguments (2 given)

This patch corrects the error by updating the signal handler
to take the correct number of arguments.

Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2182
</pre>
</div>
</content>
</entry>
<entry>
<title>Make arcstat.py default to one header per screen</title>
<updated>2014-03-12T15:56:12+00:00</updated>
<author>
<name>Isaac Huang</name>
<email>he.huang@intel.com</email>
</author>
<published>2014-03-11T05:27:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4e1c9f9c48186f61b5fbe1dd8bc150d48a9b9431'/>
<id>4e1c9f9c48186f61b5fbe1dd8bc150d48a9b9431</id>
<content type='text'>
Today arcstat.py prints one header every hdr_intr (20 by default)
lines. It would be more consistent with out utilities like vmstat
if hdr_intr defaulted to terminal window size, i.e.  one header
per screenful of outputs.

Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2183
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Today arcstat.py prints one header every hdr_intr (20 by default)
lines. It would be more consistent with out utilities like vmstat
if hdr_intr defaulted to terminal window size, i.e.  one header
per screenful of outputs.

Signed-off-by: Isaac Huang &lt;he.huang@intel.com&gt;
Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2183
</pre>
</div>
</content>
</entry>
<entry>
<title>Include l2asize in arcstat</title>
<updated>2014-03-04T19:25:58+00:00</updated>
<author>
<name>cburroughs</name>
<email>chris.burroughs@gmail.com</email>
</author>
<published>2014-02-12T20:44:07+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e78b6da3d06d754e70a02580481275ee8558cd29'/>
<id>e78b6da3d06d754e70a02580481275ee8558cd29</id>
<content type='text'>
For consistency with upstream pull in the l2asize update after
reworking it from Perl to Python.

References:
  https://github.com/mharsch/arcstat/pull/11
  https://github.com/mharsch/arcstat/pull/12

Signed-off-by: cburroughs &lt;chris.burroughs@gmail.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2122
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For consistency with upstream pull in the l2asize update after
reworking it from Perl to Python.

References:
  https://github.com/mharsch/arcstat/pull/11
  https://github.com/mharsch/arcstat/pull/12

Signed-off-by: cburroughs &lt;chris.burroughs@gmail.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #2122
</pre>
</div>
</content>
</entry>
<entry>
<title>Python 3 fixes</title>
<updated>2013-11-08T22:30:29+00:00</updated>
<author>
<name>Matthew Thode</name>
<email>mthode@mthode.org</email>
</author>
<published>2013-11-08T21:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=09d672d331377e5764bc94b3362c35481ae96a52'/>
<id>09d672d331377e5764bc94b3362c35481ae96a52</id>
<content type='text'>
Future proofing for compatibility with newer versions of Python.

Signed-off-by: Matthew Thode &lt;prometheanfire@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1838
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Future proofing for compatibility with newer versions of Python.

Signed-off-by: Matthew Thode &lt;prometheanfire@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1838
</pre>
</div>
</content>
</entry>
<entry>
<title>pep8 code readability changes</title>
<updated>2013-11-08T22:30:22+00:00</updated>
<author>
<name>Matthew Thode</name>
<email>mthode@mthode.org</email>
</author>
<published>2013-11-08T21:52:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=23bc1f91fc5694699750be6343070e0d16fbe4ea'/>
<id>23bc1f91fc5694699750be6343070e0d16fbe4ea</id>
<content type='text'>
Update the code to follow the pep8 style guide.

References:
  http://www.python.org/dev/peps/pep-0008/

Signed-off-by: Matthew Thode &lt;prometheanfire@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1838
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update the code to follow the pep8 style guide.

References:
  http://www.python.org/dev/peps/pep-0008/

Signed-off-by: Matthew Thode &lt;prometheanfire@gentoo.org&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1838
</pre>
</div>
</content>
</entry>
<entry>
<title>Add dbufstat.py command</title>
<updated>2013-10-25T21:52:45+00:00</updated>
<author>
<name>Brian Behlendorf</name>
<email>behlendorf1@llnl.gov</email>
</author>
<published>2013-10-25T20:58:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d738d34da5b25b5e5daef966c29386468fd16263'/>
<id>d738d34da5b25b5e5daef966c29386468fd16263</id>
<content type='text'>
The dbufstat.py command was added to provide a conveniant way to
easily determine what ZFS is caching.  The script consumes the
raw /proc/spl/kstat/zfs/dbufs kstat data can consolidates it in
to a more human readable form.  This was designed primarily as
a tool to aid developers but it may also be useful for advanced
users who want more visibility in to what the ARC is caching.

When run without options dbufstat.py will default to showing a
list of all objects with at least one buffer present in the
cache.  The total cache space consumed by that object will be
printed on the right along with the object type.  Similar to the
arcstats.py command the -x option may used to display additional
fields.

Two other modes of operation are also supported by dbufstat.py
and the expectation is additional display modes may be added as
needed.  The -t option will summerize the total number of bytes
cached for each object type, and the -b option will show every
dbuf currently cached.

The script was designed to be consistent with arcstat.py and
includes most of the same options and funcationality.

Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dbufstat.py command was added to provide a conveniant way to
easily determine what ZFS is caching.  The script consumes the
raw /proc/spl/kstat/zfs/dbufs kstat data can consolidates it in
to a more human readable form.  This was designed primarily as
a tool to aid developers but it may also be useful for advanced
users who want more visibility in to what the ARC is caching.

When run without options dbufstat.py will default to showing a
list of all objects with at least one buffer present in the
cache.  The total cache space consumed by that object will be
printed on the right along with the object type.  Similar to the
arcstats.py command the -x option may used to display additional
fields.

Two other modes of operation are also supported by dbufstat.py
and the expectation is additional display modes may be added as
needed.  The -t option will summerize the total number of bytes
cached for each object type, and the -b option will show every
dbuf currently cached.

The script was designed to be consistent with arcstat.py and
includes most of the same options and funcationality.

Signed-off-by: Prakash Surya &lt;surya1@llnl.gov&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Modified arcstat.py to run on linux</title>
<updated>2013-06-18T22:43:15+00:00</updated>
<author>
<name>Christ Schlacta</name>
<email>aarcane@aarcane.info</email>
</author>
<published>2013-06-07T04:33:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fb02fabf9b8045d6a1ddedf3f79171f69633162d'/>
<id>fb02fabf9b8045d6a1ddedf3f79171f69633162d</id>
<content type='text'>
* Modified kstat_update() to read arcstats from proc.
* Fix shebang.
* Added Makefile.am entries for arcstat.py

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1506
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Modified kstat_update() to read arcstats from proc.
* Fix shebang.
* Added Makefile.am entries for arcstat.py

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #1506
</pre>
</div>
</content>
</entry>
<entry>
<title>Added arcstat.py from FreeNAS</title>
<updated>2013-06-18T22:30:08+00:00</updated>
<author>
<name>Christ Schlacta</name>
<email>aarcane@aarcane.info</email>
</author>
<published>2013-06-07T04:31:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7634cd54db25a69e00aaab6448ad710441bd8e7d'/>
<id>7634cd54db25a69e00aaab6448ad710441bd8e7d</id>
<content type='text'>
Original source:
  http://support.freenas.org/browser/nanobsd/Files/usr/local/bin/arcstat.py

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1506
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Original source:
  http://support.freenas.org/browser/nanobsd/Files/usr/local/bin/arcstat.py

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Issue #1506
</pre>
</div>
</content>
</entry>
</feed>
