Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 27 Nov 2001 07:24:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 27 Nov 2001 07:23:42 -0500 Received: from mx2.elte.hu ([157.181.151.9]:47846 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Tue, 27 Nov 2001 07:23:39 -0500 Date: Tue, 27 Nov 2001 15:21:22 +0100 (CET) From: Ingo Molnar Reply-To: To: Alan Cox Cc: linux-kernel Subject: Re: [PATCH] proc-based cpu affinity user interface In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Nov 2001, Alan Cox wrote: > > fundamental limitation of your approach, and *if* we want to export the > > cpus_allowed affinity to user-space (which is up to discussion), then the > > right way (TM) to do it is via a syscall. > > HP and others have already implemented chunks of this stuff via > syscall interfaces. There is a complete pset api. the sched_set_affinity() syscall tries to be simple, and uses the existing ->cpus_allowed mechanizm. Most of the pset patches i've seen so far are IMHO overdoing this issue a bit, interface-wise, and do not provide more than this simple solution. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/