From owner-freebsd-questions Sat Sep 21 18:31:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA24892 for questions-outgoing; Sat, 21 Sep 1996 18:31:52 -0700 (PDT) Received: (from jmb@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA24864; Sat, 21 Sep 1996 18:31:45 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199609220131.SAA24864@freefall.freebsd.org> Subject: Re: Shells shells shells? To: dyson@freebsd.org Date: Sat, 21 Sep 1996 18:31:45 -0700 (PDT) Cc: roderick@gate.net, questions@freebsd.org In-Reply-To: <199609212239.RAA01564@dyson.iquest.net> from "John S. Dyson" at Sep 21, 96 05:39:55 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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