From owner-freebsd-smp@FreeBSD.ORG Mon Jun 1 12:07:11 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 6B2891065942 for ; Mon, 1 Jun 2009 12:07:11 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 99A128FC14 for ; Mon, 1 Jun 2009 12:07:04 +0000 (UTC) (envelope-from xxjack12xx@gmail.com) Received: by qyk3 with SMTP id 3so10851920qyk.3 for ; Mon, 01 Jun 2009 05:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KQKtIVwMmoWqg3M31N43hcY6ismR0MJvgoWRDIGCK30=; b=tc8ygvaAmSawdU0E5FnUrWT7rOPoQMIX69Rl3syRikXzeLGbW3lNBtg3mZsCai4wpN z+ibPglN5726+wHUAPEjQBTvM/g7jiI2+07sMkic+1WoIfE13x9UHxb29gADmPIt8Niw 9yTJnsSsNJTon+HjADyCaCIrrcI42peNBERb8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=GbSFgHal/TLT1HuY5lxz37PbOd+ONtWOkrpsr6xHzkeXx9qJLQje+sOKuDQiehyYn/ W1/9N9EiSJx8rd8W/0Iq4/UysLJ75Vo3bJt6a4RCqw2pxxFF8Uhmq57amwkg5F2k6p43 hMqCi/G3uomlsIomhqU3DUtz4hLU/BjSqpmgM= MIME-Version: 1.0 Received: by 10.229.100.81 with SMTP id x17mr1612052qcn.15.1243856127852; Mon, 01 Jun 2009 04:35:27 -0700 (PDT) In-Reply-To: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com> References: <9aed80930906010357w2bf642abk50bbadb6cdf34196@mail.gmail.com> Date: Mon, 1 Jun 2009 04:34:48 -0700 Message-ID: From: "Jack L." 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:07:22 -0000 On Mon, Jun 1, 2009 at 3:57 AM, nocturnal wrote: > 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. > You can use top and look at the C column for currently used cpu for process.