Lines Matching +full:shared +full:- +full:memory
8 pmap \- display information about the address space of a process
12 \fB/usr/bin/pmap\fR [\fB-rslF\fR] [\fB-A\fR \fIaddress_range\fR] [\fIpid\fR | \fIcore\fR]...
17 \fB/usr/bin/pmap\fR \fB-L\fR [\fB-rslF\fR] [\fB-A\fR \fIaddress_range\fR] [\fIpid\fR] ...
22 \fB/usr/bin/pmap\fR \fB-x\fR [\fB-aslF\fR] [\fB-A\fR \fIaddress_range\fR] [\fIpid\fR | \fIcore\fR].…
27 \fB/usr/bin/pmap\fR \fB-S\fR [\fB-alF\fR] [\fB-A\fR \fIaddress_range\fR] [\fIpid\fR | \fIcore\fR]...
41 \fB\fB-a\fR\fR
44 Prints anonymous and swap reservations for shared mappings.
50 \fB\fB-A\fR \fIaddress_range\fR\fR
62 A single address limits the output to the segment (or the page if the \fB-L\fR
65 the whole segment even when the \fB-L\fR option is specified.
76 segments (or pages if the \fB-L\fR option is present) starting from the one
88 output to all segments (or pages if the \fB-L\fR option is present) starting
101 to all segments (or pages if the \fB-L\fR option is present) starting from the
102 first one present until the segment (or page if the \fB-L\fR option is present)
111 \fB\fB-F\fR\fR
122 \fB\fB-l\fR\fR
131 \fB\fB-L\fR\fR
134 Prints lgroup containing physical memory that backs virtual memory.
140 \fB\fB-r\fR\fR
149 \fB\fB-s\fR\fR
158 \fB\fB-S\fR\fR
168 \fB\fB-x\fR\fR
188 /usr/bin/pmap [ -rslF ] [-A \fIaddress_range\fR] [ \fIpid\fR | \fIcore\fR ] ...
197 The \fB-A\fR option can be used to limit the output to a specified address
212 /usr/bin/pmap -L [ -rslF ] [-A \fIaddress_range\fR] \fIpid\fR ...
217 The \fB-L\fR option can be used to determine the lgroup containing the physical
218 memory backing the specified virtual memory. When used with the \fB-A\fR
223 home lgroup of a thread of interest is the same as where the memory is located
224 and whether there should be memory locality for the thread. The
227 information about the lgroups that the memory is distributed across and their
230 In addition, the thread and memory placement can be changed by using
244 /usr/bin/pmap -x [ -aslF ] [-A \fIaddress_range\fR] [ \fIpid\fR | \fIcore\fR ] ...
249 The \fB-x\fR option displays additional information per mapping. The size of
250 each mapping, the amount of resident physical memory (RSS), the amount of
251 anonymous memory, and the amount of memory locked is shown with this option.
252 This does not include anonymous memory taken by kernel address space due to
266 /usr/bin/pmap -S [ -alF ] [-A \fIaddress_range\fR] [ \fIpid\fR | \fIcore\fR ] ...
271 The \fB-S\fR option displays swap reservation information per mapping.
276 Caution should be exercised when using the \fB-F\fR flag. Imposing two
285 -\fB-s\fR or -\fB-L\fR option is specified. With \fB-s\fR option, one line is
287 \fB-L\fR option one line is printed for a contiguous mapping belonging to the
288 same lgroup. With both \fB-L\fR and \fB-s\fR options, one line is printed for a
315 \fBResident Physical Memory (\fBRSS\fR)\fR
319 The amount of physical memory in kilobytes that is resident for each mapping,
320 including that which is shared with other address spaces.
326 \fBAnonymous Memory (\fBAnon\fR)\fR
330 The number of pages, counted by using the system page size, of anonymous memory
331 associated with the specified mapping. Anonymous memory shared with other
332 address spaces is not included, unless the \fB-a\fR option is specified.
334 Anonymous memory is reported for the process heap, stack, for 'copy on write'
345 The number of pages locked within the mapping. Typical examples are memory
346 locked with \fBmlock()\fR and System V shared memory created with
357 The virtual memory permissions are shown for each mapping. Valid permissions
393 The mapping is shared such that changes made in the observed address space are
405 \fBMAP_NORESERVE\fR and System V \fBISM\fR shared memory mappings do not
429 The lgroup containing the physical memory that backs the specified mapping.
454 \fBAnonymous memory:\fR Memory not relating to any named object or file within
457 The \fBpmap\fR command displays common names for certain known anonymous memory
506 \fBSystem V Shared Memory:\fR Mappings created using System V shared memory
516 The mapping is a System V shared memory mapping. The shared memory identifier
526 The mapping is an "Intimate Shared Memory" variant of System V shared memory.
574 swap space that is displayed with the command \fBswap\fR \fB-s\fR. See
592 00010000 192K r-x-- /usr/bin/ksh
593 00040000 8K rwx-- /usr/bin/ksh
594 00042000 40K rwx-- [ heap ]
595 FF180000 664K r-x-- /usr/lib/libc.so.1
596 FF236000 24K rwx-- /usr/lib/libc.so.1
597 FF23C000 8K rwx-- /usr/lib/libc.so.1
598 FF250000 8K rwx-- [ anon ]
599 FF260000 16K r-x-- /usr/lib/en_US.ISO8859-1.so.2
600 FF272000 16K rwx-- /usr/lib/en_US.ISO8859-1.so.2
601 FF280000 560K r-x-- /usr/lib/libnsl.so.1
602 FF31C000 32K rwx-- /usr/lib/libnsl.so.1
603 FF324000 32K rwx-- /usr/lib/libnsl.so.1
604 FF340000 16K r-x-- /usr/lib/libc_psr.so.1
605 FF350000 16K r-x-- /usr/lib/libmp.so.2
606 FF364000 8K rwx-- /usr/lib/libmp.so.2
607 FF380000 40K r-x-- /usr/lib/libsocket.so.1
608 FF39A000 8K rwx-- /usr/lib/libsocket.so.1
609 FF3A0000 8K r-x-- /usr/lib/libdl.so.1
610 FF3B0000 8K rwx-- [ anon ]
611 FF3C0000 152K r-x-- /usr/lib/ld.so.1
612 FF3F6000 8K rwx-- /usr/lib/ld.so.1
613 FFBFC000 16K rw--- [ stack ]
620 \fBExample 2 \fRDisplaying Memory Allocation and Mapping Types
623 The \fB-x\fR option can be used to provide information about the memory
624 allocation and mapping types per mapping. The amount of resident, non-shared
625 anonymous, and locked memory is shown for each mapping:
630 example$ pmap -x 102908
633 00010000 88 88 - - r-x-- sh
634 00036000 8 8 8 - rwx-- sh
635 00038000 16 16 16 - rwx-- [ heap ]
636 FF260000 16 16 - - r-x-- en_US.ISO8859-1.so.2
637 FF272000 16 16 - - rwx-- en_US.ISO8859-1.so.2
638 FF280000 664 624 - - r-x-- libc.so.1
639 FF336000 32 32 8 - rwx-- libc.so.1
640 FF360000 16 16 - - r-x-- libc_psr.so.1
641 FF380000 24 24 - - r-x-- libgen.so.1
642 FF396000 8 8 - - rwx-- libgen.so.1
643 FF3A0000 8 8 - - r-x-- libdl.so.1
644 FF3B0000 8 8 8 - rwx-- [ anon ]
645 FF3C0000 152 152 - - r-x-- ld.so.1
646 FF3F6000 8 8 8 - rwx-- ld.so.1
647 FFBFE000 8 8 8 - rw--- [ stack ]
648 -------- ----- ----- ----- ------
649 total Kb 1072 1032 56 -
656 The amount of incremental memory used by each additional instance of a process
657 can be estimated by using the resident and anonymous memory counts of each
662 In the above example, the bourne shell has a resident memory size of
663 1032Kbytes. However, a large amount of the physical memory used by the shell is
664 shared with other instances of shell. Another identical instance of the shell
665 shares physical memory with the other shell where possible, and allocate
666 anonymous memory for any non-shared portion. In the above example, each
668 memory.
690 0600000: Anonymous memory, created by mapping /dev/zero
692 0700000: Anonymous memory, created by mapping /dev/zero
695 0800000: A DISM shared memory mapping, created with SHM_PAGEABLE
698 0900000: A DISM shared memory mapping, created with SHM_PAGEABLE,
701 0A00000: A DISM shared memory mapping, created with SHM_PAGEABLE,
704 0B00000: An ISM shared memory mapping, created with SHM_SHARE_MMU
712 example$ pmap -x 15492
715 00010000 8 8 - - r-x-- maps
716 00020000 8 8 8 - rwx-- maps
717 00022000 20344 16248 16248 - rwx-- [ heap ]
718 03000000 1024 1024 - - rw-s- dev:0,2 ino:4628487
719 04000000 1024 1024 512 - rw--- dev:0,2 ino:4628487
720 05000000 1024 1024 512 - rw--R dev:0,2 ino:4628487
721 06000000 1024 1024 1024 - rw--- [ anon ]
722 07000000 512 512 512 - rw--R [ anon ]
723 08000000 8192 8192 - 8192 rwxs- [ dism shmid=0x5]
724 09000000 8192 4096 - - rwxs- [ dism shmid=0x4]
725 0A000000 8192 8192 - 8192 rwxsR [ ism shmid=0x2 ]
726 0B000000 8192 8192 - 8192 rwxsR [ ism shmid=0x3 ]
727 FF280000 680 672 - - r-x-- libc.so.1
728 FF33A000 32 32 32 - rwx-- libc.so.1
729 FF390000 8 8 - - r-x-- libc_psr.so.1
730 FF3A0000 8 8 - - r-x-- libdl.so.1
731 FF3B0000 8 8 8 - rwx-- [ anon ]
732 FF3C0000 152 152 - - r-x-- ld.so.1
733 FF3F6000 8 8 8 - rwx-- ld.so.1
734 FFBFA000 24 24 24 - rwx-- [ stack ]
735 -------- ------- ------- ------- -------
745 The \fB-s\fR option can be used to display the hardware translation page sizes
752 8K-Byte page size, while the heap is using a 4M-Byte page size.
756 Notice that non-contiguous regions of resident pages of the same page size are
764 example$ pmap -xs 15492
767 00010000 8 8 - - 8K r-x-- maps
768 00020000 8 8 8 - 8K rwx-- maps
769 00022000 3960 3960 3960 - 8K rwx-- [ heap ]
770 00400000 8192 8192 8192 - 4M rwx-- [ heap ]
771 00C00000 4096 - - - - rwx-- [ heap ]
772 01000000 4096 4096 4096 - 4M rwx-- [ heap ]
773 03000000 1024 1024 - - 8K rw-s- dev:0,2 ino:4628487
774 04000000 512 512 512 - 8K rw--- dev:0,2 ino:4628487
775 04080000 512 512 - - - rw--- dev:0,2 ino:4628487
776 05000000 512 512 512 - 8K rw--R dev:0,2 ino:4628487
777 05080000 512 512 - - - rw--R dev:0,2 ino:4628487
778 06000000 1024 1024 1024 - 8K rw--- [ anon ]
779 07000000 512 512 512 - 8K rw--R [ anon ]
780 08000000 8192 8192 - 8192 - rwxs- [ dism shmid=0x5 ]
781 09000000 4096 4096 - - 8K rwxs- [ dism shmid=0x4 ]
782 0A000000 4096 - - - - rwxs- [ dism shmid=0x2 ]
783 0B000000 8192 8192 - 8192 4M rwxsR [ ism shmid=0x3 ]
784 FF280000 136 136 - - 8K r-x-- libc.so.1
785 FF2A2000 120 120 - - - r-x-- libc.so.1
786 FF2C0000 128 128 - - 8K r-x-- libc.so.1
787 FF2E0000 200 200 - - - r-x-- libc.so.1
788 FF312000 48 48 - - 8K r-x-- libc.so.1
789 FF31E000 48 40 - - - r-x-- libc.so.1
790 FF33A000 32 32 32 - 8K rwx-- libc.so.1
791 FF390000 8 8 - - 8K r-x-- libc_psr.so.1
792 FF3A0000 8 8 - - 8K r-x-- libdl.so.1
793 FF3B0000 8 8 8 - 8K rwx-- [ anon ]
794 FF3C0000 152 152 - - 8K r-x-- ld.so.1
795 FF3F6000 8 8 8 - 8K rwx-- ld.so.1
796 FFBFA000 24 24 24 - 8K rwx-- [ stack ]
797 -------- ------- ------- ------- -------
807 The \fB-S\fR option can be used to describe the swap reservations for a
809 the process. Swap reservations are reported as zero for shared mappings, since
815 example$ pmap -S 15492
818 00010000 8 - r-x-- maps
819 00020000 8 8 rwx-- maps
820 00022000 20344 20344 rwx-- [ heap ]
821 03000000 1024 - rw-s- dev:0,2 ino:4628487
822 04000000 1024 1024 rw--- dev:0,2 ino:4628487
823 05000000 1024 512 rw--R dev:0,2 ino:4628487
824 06000000 1024 1024 rw--- [ anon ]
825 07000000 512 512 rw--R [ anon ]
826 08000000 8192 - rwxs- [ dism shmid=0x5]
827 09000000 8192 - rwxs- [ dism shmid=0x4]
828 0A000000 8192 - rwxs- [ dism shmid=0x2]
829 0B000000 8192 - rwxsR [ ism shmid=0x3]
830 FF280000 680 - r-x-- libc.so.1
831 FF33A000 32 32 rwx-- libc.so.1
832 FF390000 8 - r-x-- libc_psr.so.1
833 FF3A0000 8 - r-x-- libdl.so.1
834 FF3B0000 8 8 rwx-- [ anon ]
835 FF3C0000 152 - r-x-- ld.so.1
836 FF3F6000 8 8 rwx-- ld.so.1
837 FFBFA000 24 24 rwx-- [ stack ]
838 -------- ------- -------
852 \fBExample 5 \fRLabeling Stacks in a Multi-threaded Process
858 00010000 8K r-x-- /tmp/stacks
859 00020000 8K rwx-- /tmp/stacks
860 FE8FA000 8K rwx-R [ stack tid=11 ]
861 FE9FA000 8K rwx-R [ stack tid=10 ]
862 FEAFA000 8K rwx-R [ stack tid=9 ]
863 FEBFA000 8K rwx-R [ stack tid=8 ]
864 FECFA000 8K rwx-R [ stack tid=7 ]
865 FEDFA000 8K rwx-R [ stack tid=6 ]
866 FEEFA000 8K rwx-R [ stack tid=5 ]
867 FEFFA000 8K rwx-R [ stack tid=4 ]
868 FF0FA000 8K rwx-R [ stack tid=3 ]
869 FF1FA000 8K rwx-R [ stack tid=2 ]
870 FF200000 64K rw--- [ altstack tid=8 ]
871 FF220000 64K rw--- [ altstack tid=4 ]
872 FF240000 112K rw--- [ anon ]
873 FF260000 16K rw--- [ anon ]
874 FF270000 16K r-x-- /usr/platform/sun4u/lib/libc_psr.so.1
875 FF280000 672K r-x-- /usr/lib/libc.so.1
876 FF338000 24K rwx-- /usr/lib/libc.so.1
877 FF33E000 8K rwx-- /usr/lib/libc.so.1
878 FF35A000 8K rwxs- [ anon ]
879 FF360000 104K r-x-- /usr/lib/libthread.so.1
880 FF38A000 8K rwx-- /usr/lib/libthread.so.1
881 FF38C000 8K rwx-- /usr/lib/libthread.so.1
882 FF3A0000 8K r-x-- /usr/lib/libdl.so.1
883 FF3B0000 8K rwx-- [ anon ]
884 FF3C0000 152K r-x-- /usr/lib/ld.so.1
885 FF3F6000 8K rwx-- /usr/lib/ld.so.1
886 FFBFA000 24K rwx-- [ stack ]
893 \fBExample 6 \fRDisplaying lgroup Memory Allocation
896 The following example displays lgroup memory allocation by mapping:
901 example$ pmap -L `pgrep nscd`
903 00010000 8K r-x-- 2 /usr/sbin/nscd
904 00012000 48K r-x-- 1 /usr/sbin/nscd
905 0002E000 8K rwx-- 2 /usr/sbin/nscd
906 00030000 16K rwx-- 2 [ heap ]
907 00034000 8K rwx-- 1 [ heap ]
911 FD80A000 24K rwx-- 2 [ anon ]
912 FD820000 8K r-x-- 2 /lib/libmd5.so.1
913 FD840000 16K r-x-- 1 /lib/libmp.so.2
914 FD860000 8K r-x-- 2 /usr/lib/straddr.so.2
915 FD872000 8K rwx-- 1 /usr/lib/straddr.so.2
916 FD97A000 8K rw--R 1 [ stack tid=24 ]
917 FD990000 8K r-x-- 2 /lib/nss_nis.so.1
918 FD992000 16K r-x-- 1 /lib/nss_nis.so.1
919 FD9A6000 8K rwx-- 1 /lib/nss_nis.so.1
920 FD9C0000 8K rwx-- 2 [ anon ]
921 FD9D0000 8K r-x-- 2 /lib/nss_files.so.1
922 FD9D2000 16K r-x-- 1 /lib/nss_files.so.1
923 FD9E6000 8K rwx-- 2 /lib/nss_files.so.1
924 FDAFA000 8K rw--R 2 [ stack tid=23 ]
925 FDBFA000 8K rw--R 1 [ stack tid=22 ]
926 FDCFA000 8K rw--R 1 [ stack tid=21 ]
927 FDDFA000 8K rw--R 1 [ stack tid=20 ]
931 FEFFA000 8K rw--R 1 [ stack tid=2 ]
932 FF000000 8K rwx-- 2 [ anon ]
933 FF004000 16K rwx-- 1 [ anon ]
934 FF00A000 16K rwx-- 1 [ anon ]
938 FF3EE000 8K rwx-- 2 /lib/ld.so.1
939 FFBFE000 8K rw--- 2 [ stack ]
961 \fBnon-zero\fR
1004 The command syntax is Evolving. The \fB-L\fR option and the output formats are