Processes and Daemons

Warren Block wblock at wonkity.com
Sun Mar 2 17:40:28 UTC 2014


On Sun, 2 Mar 2014, Warren Block wrote:

> On Sun, 2 Mar 2014, Thomas Hoffmann wrote:
>
>> On Sat, Mar 1, 2014 at 4:10 PM, daniel dallmann 
>> <djdallmann at gmail.com>wrote:
>> 
>>> I was wondering if the output from top was displayed with two headers on
>>> purpose?
>>> 
>>> http://www.za.freebsd.org/doc/handbook/basics-processes.html
>> 
>> 
>> I'm guessing yes. The first is without ZFS stats (5 lines), the second with
>> ZFS stats (6 lines). The text describes the 'top' heading as being 5 or 6
>> lines. So these two header formats are the two users will encounter,
>> depending on their use or non-use of ZFS.
>
> If intentional, it's a bit misleading.  Better to show just one more 
> realistically and note that the output will vary depending on the individual 
> system.  It does not seem necessary mention ZFS specifically.

And now I see that it does mention ZFS conditionally.  The second header 
has more detail, but the uptime has been moved more to the right than 
would show in a standard 80-column console.

This patch provides a minimal change:

Index: basics/chapter.xml
===================================================================
--- basics/chapter.xml	(revision 44101)
+++ basics/chapter.xml	(working copy)
@@ -3034,13 +3034,7 @@
        <para>The output from &man.top.1; is similar:</para>

        <screen>&prompt.user; <userinput>top</userinput>
-last pid: 72257;  load averages:  0.13,  0.09,  0.03    up 0+13:38:33  22:39:10
-47 processes:  1 running, 46 sleeping
-CPU states: 12.6% user,  0.0% nice,  7.8% system,  0.0% interrupt, 79.7% idle
-Mem: 36M Active, 5256K Inact, 13M Wired, 6312K Cache, 15M Buf, 408K Free
-Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
-
-last pid:  9609;  load averages:  0.56,  0.45,  0.36              up 0+00:20:03  10:21:46
+last pid:  9609;  load averages:  0.56,  0.45,  0.36    up 0+00:20:03  10:21:46
  107 processes: 2 running, 104 sleeping, 1 zombie
  CPU:  6.2% user,  0.1% nice,  8.2% system,  0.4% interrupt, 85.1% idle
  Mem: 541M Active, 450M Inact, 1333M Wired, 4064K Cache, 1498M Free
@@ -3068,9 +3062,9 @@
  	figures in the header relate to how many processes are
  	running, how much memory and swap space has been used, and how
  	much time the system is spending in different CPU states.  If
-	the system has been formatted with the <acronym>ZFS</acronym>
-	file system, the <literal>ARC</literal> line provides an
-	indication of how much data was read from the memory cache
+	the <acronym>ZFS</acronym>
+	file system module has been loaded, an <literal>ARC</literal> line indicates
+	how much data was read from the memory cache
  	instead of from disk.</para>

        <para>Below the header is a series of columns containing similar
-------------- next part --------------
Index: basics/chapter.xml
===================================================================
--- basics/chapter.xml	(revision 44101)
+++ basics/chapter.xml	(working copy)
@@ -3034,13 +3034,7 @@
       <para>The output from &man.top.1; is similar:</para>
 
       <screen>&prompt.user; <userinput>top</userinput>
-last pid: 72257;  load averages:  0.13,  0.09,  0.03    up 0+13:38:33  22:39:10
-47 processes:  1 running, 46 sleeping
-CPU states: 12.6% user,  0.0% nice,  7.8% system,  0.0% interrupt, 79.7% idle
-Mem: 36M Active, 5256K Inact, 13M Wired, 6312K Cache, 15M Buf, 408K Free
-Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
-
-last pid:  9609;  load averages:  0.56,  0.45,  0.36              up 0+00:20:03  10:21:46
+last pid:  9609;  load averages:  0.56,  0.45,  0.36    up 0+00:20:03  10:21:46
 107 processes: 2 running, 104 sleeping, 1 zombie
 CPU:  6.2% user,  0.1% nice,  8.2% system,  0.4% interrupt, 85.1% idle
 Mem: 541M Active, 450M Inact, 1333M Wired, 4064K Cache, 1498M Free
@@ -3068,9 +3062,9 @@
 	figures in the header relate to how many processes are
 	running, how much memory and swap space has been used, and how
 	much time the system is spending in different CPU states.  If
-	the system has been formatted with the <acronym>ZFS</acronym>
-	file system, the <literal>ARC</literal> line provides an
-	indication of how much data was read from the memory cache
+	the <acronym>ZFS</acronym>
+	file system module has been loaded, an <literal>ARC</literal> line indicates
+	how much data was read from the memory cache
 	instead of from disk.</para>
 
       <para>Below the header is a series of columns containing similar


More information about the freebsd-doc mailing list