From owner-freebsd-arch@FreeBSD.ORG Tue Jul 15 18:25:37 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E83151065670 for ; Tue, 15 Jul 2008 18:25:37 +0000 (UTC) (envelope-from sson@freebsd.org) Received: from www.son.org (son.org [199.239.233.23]) by mx1.freebsd.org (Postfix) with ESMTP id AE8448FC0C for ; Tue, 15 Jul 2008 18:25:37 +0000 (UTC) (envelope-from sson@freebsd.org) Received: from mactel.local (ppp-68-90-8-92.dsl.rcsntx.swbell.net [68.90.8.92]) (authenticated bits=0) by www.son.org (8.13.6.20060614/8.13.6) with ESMTP id m6FIPahY009060; Tue, 15 Jul 2008 13:25:36 -0500 (CDT) Message-ID: <487CEC3E.3060204@freebsd.org> Date: Tue, 15 Jul 2008 13:28:14 -0500 From: Stacey Son User-Agent: Thunderbird/3.0a2pre (Macintosh; 2008070703) MIME-Version: 1.0 To: Andrew Gallatin References: <4875A5D2.8030902@freebsd.org> <20080711155232.A96384@grasshopper.cs.duke.edu> <48780661.5050002@freebsd.org> <20080712045837.GD17123@deviant.kiev.zoral.com.ua> <487AD49F.6040304@freebsd.org> <20080715093402.GO17123@deviant.kiev.zoral.com.ua> <487CA2B4.7070604@freebsd.org> <487CC7EC.5060100@cs.duke.edu> In-Reply-To: <487CC7EC.5060100@cs.duke.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , freebsd-arch@freebsd.org Subject: Re: ksyms pseudo driver X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2008 18:25:38 -0000 Andrew Gallatin wrote: > Ah, now everything is perfectly clear to me. Your method is > very clever indeed. > > Just out of curiosity, how much memory will the entire symbol > + strings table require? How often do typical consumers (like dtrace) > request them? On an AMD64 "Generic" kernel with only the ksyms module loaded it is 1523847 bytes. lockstat(1M) will open and read /dev/ksyms once each time it is invoked. For dtrace, it depends on the script but there shouldn't be any reason why it reads it more than once as well. -stacey.