Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753289Ab2KTMVc (ORCPT ); Tue, 20 Nov 2012 07:21:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52786 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868Ab2KTMVb (ORCPT ); Tue, 20 Nov 2012 07:21:31 -0500 Date: Tue, 20 Nov 2012 13:21:15 +0100 From: Karel Zak To: Andrew Morton Cc: kerolasa@gmail.com, Sami Kerola , Al Viro , Doug Ledford , KOSAKI Motohiro , linux-kernel@vger.kernel.org Subject: Re: ipc: object information data in proc and sysfs Message-ID: <20121120122115.GA2006@x2.net.home> References: <20121119161250.ae0b25ff.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121119161250.ae0b25ff.akpm@linux-foundation.org> User-Agent: Mutt/1.5.21 (2011-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 21 On Mon, Nov 19, 2012 at 04:12:50PM -0800, Andrew Morton wrote: > Where's the benefit in switching ipcs over to using /proc? > > procfs reads are probably slower than the syscalls? 32bit userspace and 64bit kernel (RHEL ppc64), it seems more reliable read from /proc than use the syscalls. I guess that IPC_64 flag for shmctl() commands is used by libc in 64bit userspace only. Karel -- Karel Zak http://karelzak.blogspot.com -- 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/