The interface to use is thread_affinity_set (used by squeues and soft rings, amongst others). However, this must be called from the kernel, so unless you are writing kernel code yourself, there is nothing which can be done from userland.

Brian


rick weisner wrote:
No, pbind is for userland.
Do you have access to source ?
There should be an API, I can research it is you want to do it
in source.
rick

On Wed, Feb 17, 2010 at 06:40:09PM -0600, Hongbo Zou wrote:
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from
        :user-agent:mime-version:to:subject:content-type
        :content-transfer-encoding;
        bh=rCn6GU80MoYdNI5EIEuvM7iM31FdKYLMUy96U0q6TX4=;
        b=lEDzMLTlUJ5esdsPGMRKrb+yUTmGiK+a+byaD8Zlv5hQ4QaqW22poZ2hxI6kclOMuJ
        lcXdXWqperViUFYA1jFTdxfIrogxeM2hqCL7mGg6PLE5pupz+4To9K0DmYGNof86xC1c
        y8GeAVLrhWKlxQqZjK07l32C7WTGrnPzOtMDI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:subject
        :content-type:content-transfer-encoding;
        b=ACr5veJd64MtyR6He+mvrDnuMi04DCJvci1PNBejYhuFekQxG+3q6P8g0CrHfb4PgY
        BGehv8XAvEzT+BxTC2O1e7jflqTdwDGSd6ENoVf+W/XSRX8ZzuThQUqNbzhV5vsKCEIy
        afGeqbKJGhUwOkXO245+mlX0TMRTkSQk6bnB0=
Date: Wed, 17 Feb 2010 18:40:09 -0600
From: Hongbo Zou <[email protected]>
Subject: [networking-discuss] Could I use 'pbind' command to bind system
        thread on a specified CPU
To: [email protected]
Errors-to: [email protected]
Precedence: list
X-BeenThere: [email protected]
Delivered-to: [email protected]
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on
        oss-mail1.opensolaris.org
X-Original-To: [email protected]
X-Mailman-Approved-At: Thu, 18 Feb 2010 12:05:58 -0800
X-Antispam: No, score=0.0/5.0, scanned in 0.053sec at (localhost [127.0.0.1])
        by smf-spamd v1.3.1 - http://smfs.sf.net/
X-Mailman-Version: 2.1.13
List-Post: <mailto:[email protected]>
List-Subscribe:
        <http://mail.opensolaris.org/mailman/listinfo/networking-discuss>,
        <mailto:[email protected]?subject=subscribe>
List-Unsubscribe:
        <http://mail.opensolaris.org/mailman/options/networking-discuss>,
        <mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://mail.opensolaris.org/pipermail/networking-discuss>
List-Help: <mailto:[email protected]?subject=help>
List-Id: Networking General Discussion <networking-discuss.opensolaris.org>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,
        RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.0
X-Spam-Level:

Hi everyone:

I want to use 'pbind' to bind some system thread (not application thread) on a specified CPU. Can I do it? If then, how to get the lwpid of the system thread in Solaris? thanks

Hongbo
_______________________________________________
networking-discuss mailing list
[email protected]


--
Brian Ruthven
Solaris Revenue Product Engineering
Sun Microsystems UK
Sparc House, Guillemont Park, Camberley, GU17 9QG

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to