Date: Sat, 21 Sep 1996 18:31:45 -0700 (PDT) From: "Jonathan M. Bresler" <jmb> To: dyson@freebsd.org Cc: roderick@gate.net, questions@freebsd.org Subject: Re: Shells shells shells? Message-ID: <199609220131.SAA24864@freefall.freebsd.org> In-Reply-To: <199609212239.RAA01564@dyson.iquest.net> from "John S. Dyson" at Sep 21, 96 05:39:55 pm
next in thread | previous in thread | raw e-mail | index | archive | help
John S. Dyson wrote: > you are likely only going to need a small part of that page. For some > interesting info, look at the /proc/XXX/map file in -current. > Aspen:[34] ps PID TT STAT TIME COMMAND 176 p1 Is+ 0:00.15 -sh (csh) 180 p2 Ss 0:00.28 -sh (csh) 322 p2 R+ 0:00.02 ps Aspen:[35] more /proc/176/map 0x1000 0x40000 24 0 r-x COW vnode 0x40000 0x43000 0 3 rwx COW vnode 0x43000 0x59000 0 17 rwx COW swap 0x8040000 0x8041000 0 1 rw- COW swap 0xefbde000 0xefbfe000 0 2 rwx COW default YOWZA! lot at that data. john you gotta update the procfs(5) man page! what are we looking at here? 1st col: virtual memory starting address 2nd col: virtual memory ending address 3rd col: shared and resident in physical memory 4th col: private and resident, only one reference 5th col: "permissions" on the virtual memory page ?? 6th col: copy on write or not 7th col: virtual memory pager for this region 1st line: text 2nd line: 3rd line: 4th line: 5th line: (okay, i cheated and looked at source /sys/miscfs/procfs/procfs_map.c) but i dont see how to tell what is mapped by each line ;( be it text data bss stack or what have you. jmb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609220131.SAA24864>