Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752625AbbLNIF5 (ORCPT ); Mon, 14 Dec 2015 03:05:57 -0500 Received: from mx2.parallels.com ([199.115.105.18]:56256 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751931AbbLNIF4 (ORCPT ); Mon, 14 Dec 2015 03:05:56 -0500 Date: Mon, 14 Dec 2015 11:05:39 +0300 From: Andrew Vagin To: Arnd Bergmann CC: Andy Lutomirski , Andrey Vagin , David Ahern , "linux-kernel@vger.kernel.org" , Linux API , "Oleg Nesterov" , Andrew Morton , "Cyrill Gorcunov" , Pavel Emelyanov , "Roger Luethi" , Arnaldo Carvalho de Melo , "Pavel Odintsov" Subject: Re: [PATCH 0/24] kernel: add a netlink interface to get information about processes (v2) Message-ID: <20151214080538.GC4112@odin.com> References: <1436172445-6979-1-git-send-email-avagin@openvz.org> <20151124151811.GA16393@odin.com> <1583220.Fp5vNj67Du@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Disposition: inline In-Reply-To: <1583220.Fp5vNj67Du@wuerfel> User-Agent: Mutt/1.5.24 (2015-08-30) X-ClientProxiedBy: US-EXCH.sw.swsoft.com (10.255.249.47) To US-EXCH.sw.swsoft.com (10.255.249.47) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1852 Lines: 40 On Fri, Dec 04, 2015 at 12:43:29AM +0100, Arnd Bergmann wrote: > On Thursday 03 December 2015 15:20:30 Andy Lutomirski wrote: > > > * Netlink is designed for such type of workloads. It allows to expand > > > the interface and save backward compatibility. It allows to generates > > > packets with a different set of parameters. > > > * If we use a file descriptor, we can create it and decrease > > > capabilities of the current process. It's a good feature which will be > > > unavailable if we decide to create a system call. > > > > If this is actually a real goal and it matters, then I'd suggest doing > > it right. Make a way to create an fd that represents a pidns and, > > specifically, the right to query non-secret properties of the > > processes in the pidns. > > My first thought about doing an interface here was to create a virtual > file system that can be queried rather than using netlink, but then I > realized that the idea was to avoid procfs ;-) No, we doesn't have an idea to avoid using of procfs. The idea is to create a new interace to get information about tasks, which will work faster and will be more convenient for using from applications. > > More seriously, maybe the answer is to have a transaction file in > procfs itself. Procfs already knows about namespaces, so adding > a /proc/task-diag file as the entry point into the kernel could > get that out of the way. > > The simple_transaction infrastructure that we have is limited to > a little under a page for the total data size, but something similar > could be used. Thank you for the idea. > > Arnd -- 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/