From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760473AbZDWXEK (ORCPT ); Thu, 23 Apr 2009 19:04:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755316AbZDWXDz (ORCPT ); Thu, 23 Apr 2009 19:03:55 -0400 Received: from smtp.ultrahosting.com ([74.213.174.254]:41722 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753950AbZDWXDy (ORCPT ); Thu, 23 Apr 2009 19:03:54 -0400 Date: Thu, 23 Apr 2009 18:55:31 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@qirst.com To: David Rientjes cc: Pekka Enberg , Randy Dunlap , Nick Piggin , linux-kernel@vger.kernel.org Subject: Re: [patch 2/2] slub: add Documentation/ABI/testing/sysfs-kernel-slab In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Apr 2009, David Rientjes wrote: > I'm more concerned with the userspace API. You're comfortable with > letting userspace determine what allocator the kernel is using either by > testing for the presence of certain slub or slqb-specific files or > checking the config? Why would userspace have to test? If the fields have the same semantics then we are fine. > That should be fine since there's parity among the files that both > allocators share, but seems fragile if an allocator adds a file that was > previously only applicable to the other or the API happens to change. Right. The newly added file must not be in use by another allocator. > My thinking was that /sys/kernel/slqb would be a permanent reference point > that userspace could easily test to determine what API is available. The API is hopefully generic enought to accomodate all allocators.