From owner-freebsd-smp Sun Dec 15 02:14:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA14248 for smp-outgoing; Sun, 15 Dec 1996 02:14:25 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id CAA14243; Sun, 15 Dec 1996 02:14:18 -0800 (PST) Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0vZDZq-0003vuC; Sun, 15 Dec 96 02:13 PST Received: from critter.tfs.com (localhost.phk.dk [127.0.0.1]) by critter.tfs.com (8.8.2/8.8.2) with ESMTP id LAA09321; Sun, 15 Dec 1996 11:17:14 +0100 (MET) To: Peter Wemm cc: dyson@freebsd.org, smp@freebsd.org, haertel@ichips.intel.com Subject: Re: some questions concerning TLB shootdowns in FreeBSD In-reply-to: Your message of "Sun, 15 Dec 1996 18:03:16 +0800." <199612151003.SAA14741@spinner.DIALix.COM> Date: Sun, 15 Dec 1996 11:17:14 +0100 Message-ID: <9319.850645034@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-smp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199612151003.SAA14741@spinner.DIALix.COM>, Peter Wemm writes: >Poul-Henning Kamp wrote: >> In message <199612150121.JAA12763@spinner.DIALix.COM>, Peter Wemm writes: >> >> >However, the shared address space code that I was working on in >> >-current (for kernel assisted threading in the smp kernel) means >> >that a single vmspace/pmap/etc can be shared among multiple processes >> >and this changes the above picture since two cpu's can be using >> >the user mode parts of the same page tables at once, one in executing >> >in user mode, one in the kernel. >> >> But we could still have a per-cpu flags: >> "I'm not in a shared address-space" >> >> Ie, this would only be set if the CPU was in userland in a non-threaded >> process. > >eg, something like: >if (is_userland && curproc->p_vmspace->vm_refcnt > 1) > send_tlb_invalidate(); Well more like: for (i=0;ip_vmspace->vm_refcnt > 1) send_tlb_invalidate(i); -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. Power and ignorance is a disgusting cocktail.