Portable Linux Processor Affinity 1.1 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Portable Linux Processor Affinity 1.1 (Default branch)
# 1  
Old 02-22-2008
Portable Linux Processor Affinity 1.1 (Default branch)

PLPA is an attempt to solve the problem ofmultiple API's for processor affinity withinLinux. Specifically, the functionssched_setaffinity() and sched_getaffinity() havenumbers and types of parameters depending on yourLinux vendor and/or version of GLibc. This isquite problematic for applications attempting touse processor affinity in Linux for compile-time,link-time, and run-time reasons. The PLPA providesa single processor affinity API that developerscan write to in order to get both consistentbehavior and binary compatibility across differentLinux installations (assuming that you have anexecutable that is otherwise binary Linux portable).License: BSD License (revised)Changes:
The ability to understand (socket,core) tuples forspecific process placement was added, as opposedto just specifying Linux virtual processor IDs.The plpa-taskset executable was also added, whichunderstands the same command line syntax as the"taskset" command, but also understands(core@socket) nomenclature.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

Set Processor Affinity to group of cores

Hi on multi-core system - I know I can set each process to run on specific core (Processor Affinity). If I want to set process (which contains several threads) to run on group of core, how can I do it ? For example: If we have 8 core, and two process each process contain 4 threads. And I... (2 Replies)
Discussion started by: laro1983
2 Replies

2. UNIX for Dummies Questions & Answers

Processor Affinity on Redhat AS3

Does anyone know how to setup processor affinity on Redhat AS3.0. I know how to do this on Solaris and Windows.. Thanks (2 Replies)
Discussion started by: sssow
2 Replies
Login or Register to Ask a Question
pset_assign_cpu(1)					      General Commands Manual						pset_assign_cpu(1)

NAME
pset_assign_cpu - Assigns a processor to a processor set SYNOPSIS
/usr/sbin/pset_assign_cpu pset_id processor [processor...] /usr/sbin/pset_assign_cpu -a pset_id number OPTIONS
Adds the specified number of processors (number) to the specified processor set (pset_id) from the default processor set. DESCRIPTION
The pset_assign_cpu command assigns one or more processors to an existing processor set. The pset_id variable is a unique integer that identifies the processor set and is returned by the pset_create command. The processor variable is a unique integer that identifies the processor. Each processor that is assigned to an existing processor set is removed from its current processor set. The boot processor cannot be assigned. Processor assignments are logged in the /var/adm/wtmp file. FILES
SEE ALSO
Commands: pset_destroy(1), pset_create(1), pset_assign_pid(1), pset_info(1) Files: processor_sets(4) pset_assign_cpu(1)