diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-10-17 15:49:08 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-10-17 15:50:43 +0000 |
commit | 3e8f2de8060a6dc6b5940f6a15c3b444fd288b58 (patch) | |
tree | 5f0fe7991b9f5b84c0c7b4236617258cc7e999d4 /usr/src/cmd/prstat/prstat.c | |
parent | e12051ebbcf41716ad84629dd04d5c04b40dd22f (diff) | |
download | illumos-joyent-3e8f2de8060a6dc6b5940f6a15c3b444fd288b58.tar.gz |
OS-3709 vm_getusage when there is a process with a large (10s of GB) amount of mapped space will cause latency issues
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/prstat/prstat.c')
-rw-r--r-- | usr/src/cmd/prstat/prstat.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/usr/src/cmd/prstat/prstat.c b/usr/src/cmd/prstat/prstat.c index 982c860d0d..99fc9ecb28 100644 --- a/usr/src/cmd/prstat/prstat.c +++ b/usr/src/cmd/prstat/prstat.c @@ -26,7 +26,7 @@ * Use is subject to license terms. * * Portions Copyright 2009 Chad Mynhier - * Copyright 2012 Joyent, Inc. All rights reserved. + * Copyright 2017 Joyent, Inc. All rights reserved. */ #include <sys/types.h> @@ -264,12 +264,7 @@ list_getsize(list_t *list) size_t i; uint_t flags = 0; int ret; - size_t physmem; - - if (!(opts.o_outpmode & OPT_VMUSAGE)) - return; - - physmem = sysconf(_SC_PHYS_PAGES) * pagesize; + size_t physmem = sysconf(_SC_PHYS_PAGES) * pagesize; /* * Determine what swap/rss results to calculate. getvmusage() will @@ -1501,7 +1496,7 @@ main(int argc, char **argv) add_uid(&ruid_tbl, p); break; case 'V': - opts.o_outpmode |= OPT_VMUSAGE; + /* obsolete argument - accepted for compatability */ break; case 'p': fill_table(&pid_tbl, optarg, 'p'); |