From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262568AbVHDPA5 (ORCPT ); Thu, 4 Aug 2005 11:00:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262561AbVHDOMz (ORCPT ); Thu, 4 Aug 2005 10:12:55 -0400 Received: from graphe.net ([209.204.138.32]:21652 "EHLO graphe.net") by vger.kernel.org with ESMTP id S262557AbVHDOLk (ORCPT ); Thu, 4 Aug 2005 10:11:40 -0400 Date: Thu, 4 Aug 2005 07:11:36 -0700 (PDT) From: Christoph Lameter X-X-Sender: christoph@graphe.net To: Andi Kleen cc: Paul Jackson , linux-kernel@vger.kernel.org, akpm@osdl.org Subject: Re: [PATCH] String conversions for memory policy In-Reply-To: <20050803084849.GB10895@wotan.suse.de> Message-ID: References: <20050729152049.4b172d78.pj@sgi.com> <20050729230026.1aa27e14.pj@sgi.com> <20050730181418.65caed1f.pj@sgi.com> <20050730190126.6bec9186.pj@sgi.com> <20050730191228.15b71533.pj@sgi.com> <20050803084849.GB10895@wotan.suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -5.8 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Aug 2005, Andi Kleen wrote: > I really hate this whole /proc//numa_policy thing. /proc//maps > was imho always a desaster (hard to parse, slow etc.). Also external > access of NUMA policies has interesting locking issues. I intentionally > didn't add something like that when I designed the original > NUMA API. Please don't add it. You designed a NUMA API to control a process memory access patterns without the ability to view or modify the policies in use? The locking issues for the policy information in the task_struct could be solved by having a thread execute a function that either sets or gets the memory policy. The vma policies already have a locking mechanism. This piece here only does conversion to a string representation so it should not be affected by locking issues. Processes need to do proper locking when using the conversion functions.