From owner-freebsd-small Sun Jul 5 18:36:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA05802 for freebsd-small-outgoing; Sun, 5 Jul 1998 18:36:42 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA05787 for ; Sun, 5 Jul 1998 18:36:35 -0700 (PDT) (envelope-from jwang@cs.ubc.ca) Received: from mughi.cs.ubc.ca (mughi.cs.ubc.ca [142.103.4.2]) by pedigree.cs.ubc.ca (8.8.8/8.6.9) with ESMTP id SAA22829; Sun, 5 Jul 1998 18:36:27 -0700 (PDT) Received: from cascade.cs.ubc.ca (cascade.cs.ubc.ca [142.103.7.7]) by mughi.cs.ubc.ca (8.9.0/8.9.0) with SMTP id SAA28131; Sun, 5 Jul 1998 18:36:14 -0700 (PDT) Message-ID: <35A02A0D.61A5@cs.ubc.ca> Date: Sun, 05 Jul 1998 18:36:13 -0700 From: "Jasmine(Yongqi) Wang" Organization: CS//UBC X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.6 sun4u) MIME-Version: 1.0 To: Mike Smith CC: freebsd-small@FreeBSD.ORG Subject: Re: (no subject) References: <199807030536.WAA04364@antipodes.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG HI, Mike, Thanks for your answer. I want to evaluate TLB miss rate for a single process. I don't know how to deal with the interrupt. maybe just ignore them. Guess for scheduling, i will just run a single job, so it should be ok, right? > You haven't really been clear enough here. Are you trying to evaluate > TLB miss rates for a single process, or for the entire system? If for > just a single process, what do you plan to do to deal with the errors > introduced by interrupts and scheduling? > > It would be trivial to add a sysctl variable to obtain the value from > userland, should you wish to do so, as the handler runs in the kernel. > > AFAIK, you can simply modify the support functions for the other CR > registers, eg. in sys/i386/i386/support.s: > > /* rcr4() */ > ENTRY(rcr4) > movl %cr4,%eax > ret i only know i can add some system calls to get the result from usermode. so i guess this means i can read cr4 once i add this to support.s. would you please tell me what sorts of code can be added to support.s, or where i can find such info? thanks again for your help, -- Jasmine. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message