diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-09-05 08:27:04 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-09-05 08:27:04 +0000 |
commit | b6924c9309d989706d99db6b29cef66a86e7ed14 (patch) | |
tree | 6319b1f3d3d960eed64c3b5bc6c28a95c344f37d /contrib/top/machine.h | |
parent | 031986c4f39f3baf381baa5fa02add0c2b9c5124 (diff) | |
download | src-b6924c9309d989706d99db6b29cef66a86e7ed14.tar.gz src-b6924c9309d989706d99db6b29cef66a86e7ed14.zip |
Add a toggle to display the approximate amount of swap used by each
process. We don't *quite* pull that number out of our backside, as
the actual number is difficult to determine without modifying the VM
system to report it, but it's still useful to get an idea of what's
going on when a machine unexpectedly starts swapping.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=305414
Diffstat (limited to 'contrib/top/machine.h')
-rw-r--r-- | contrib/top/machine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/top/machine.h b/contrib/top/machine.h index 3aad75886b45..6f2844d387b1 100644 --- a/contrib/top/machine.h +++ b/contrib/top/machine.h @@ -72,6 +72,7 @@ struct process_select int wcpu; /* show weighted cpu */ int jid; /* only this jid (unless jid == -1) */ int jail; /* show jail ID */ + int swap; /* show swap usage */ int kidle; /* show per-CPU idle threads */ char *command; /* only this command (unless == NULL) */ }; @@ -82,8 +83,8 @@ char *format_header(); char *format_next_process(); void toggle_pcpustats(void); void get_system_info(struct system_info *si); -int machine_init(struct statics *statics, char do_unames); -int proc_owner(int pid); +int machine_init(struct statics *statics, char do_unames); +int proc_owner(int pid); /* non-int routines typically used by the machine dependent module */ char *printable(); |