From owner-freebsd-smp@FreeBSD.ORG Mon Jun 1 12:02:59 2009 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F24C1065827 for ; Mon, 1 Jun 2009 12:02:59 +0000 (UTC) (envelope-from brampton@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 928958FC16 for ; Mon, 1 Jun 2009 12:02:53 +0000 (UTC) (envelope-from brampton@gmail.com) Received: by ewy8 with SMTP id 8so4293782ewy.43 for ; Mon, 01 Jun 2009 05:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=bzx0+fkw/5naZmX0j2AucffpsUom5CKPd5bpuuT/f+I=; b=a46ZhpVWIL7lJhfsTDl3HMezg//01RTUd2riF3xu9iRSXW5cDPwsCb3K4jztL/7bZ2 iiLe0Uk3eci6WB6PyEG8yhoQPPIXamCnC3om8B3sEq/V4etl4vw0jkOluO43OX8FiVBd p2i1YvEtzZXxg+hGZ1eRQAwQOJaTRuwg0dRRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=xDCNITfLgH/SKi9px7bterxKL99gwkN6XN1Xf3k1aGyUqu6BKOBC8OeQCys6SarsbY JB5i55fExC6Sr/rBQ874qZlyYkM178nTQ1Add80gVObUbQrrBRqIJ5vQ3yvGRl7Eqprp hoXUhw7+RqStfYh27OQ/RhkuqqTqVJW1yPdxE= MIME-Version: 1.0 Sender: brampton@gmail.com Received: by 10.216.2.207 with SMTP id 57mr1846952wef.174.1243856152252; Mon, 01 Jun 2009 04:35:52 -0700 (PDT) In-Reply-To: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com> References: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com> Date: Mon, 1 Jun 2009 12:35:50 +0100 X-Google-Sender-Auth: b27b02df85d07784 Message-ID: From: Andrew Brampton To: nocturnal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-smp@freebsd.org Subject: Re: Show which CPU is executing a thread? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 12:03:23 -0000 2009/6/1 nocturnal : > I've been searching the web, all i want is to show which CPU is currently > executing a certain thread. Is this info available to me in user space? > Which manuals should i read to do this? > > I know Solaris has something about lwp that can show the last CPU used, i > think. I would be happy if FreeBSD had something similar so it doesn't have > to be very live or accurate. > > Thank you in advance for any info or hints. > Does top and the -H flag not do what you want? There is also ps -H Hope this helps Andrew