From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 12:11:00 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0EEE16A41C for ; Mon, 30 May 2005 12:11:00 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDD9943D4C for ; Mon, 30 May 2005 12:10:59 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j4UCApVd019752; Mon, 30 May 2005 15:10:51 +0300 Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j4UC8lWn023221; Mon, 30 May 2005 15:08:48 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.3/8.13.3) with ESMTP id j4UCAoMJ036691; Mon, 30 May 2005 15:10:50 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.3/8.13.3/Submit) id j4UCAlYg036661; Mon, 30 May 2005 15:10:47 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 30 May 2005 15:10:47 +0300 From: Giorgos Keramidas To: littlegege@263.net Message-ID: <20050530121047.GA29209@orion.daedalusnetworks.priv> References: <20050530032647.CE08F4359F@smtp.263.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050530032647.CE08F4359F@smtp.263.net> Cc: freebsd-hackers@freebsd.org Subject: Re: how can I get the meminfo of each kernel process? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 12:11:00 -0000 On 2005-05-30 11:26, littlegege@263.net wrote: > I want to get the meminfo of each kernel process,such as how much > memory size is allocated to a process.How can i do? I will do this > in kernel space,so which data structure can i used to achieve this. AFAIK, the kernel threads run in the same address space as the kernel. It doesn't make sense to ask for their "resident size", because they share the same address space that all the other kernel threads use.