Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755247AbaDGR0N (ORCPT ); Mon, 7 Apr 2014 13:26:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25286 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754025AbaDGRZv (ORCPT ); Mon, 7 Apr 2014 13:25:51 -0400 Message-ID: <5342DF98.6070000@redhat.com> Date: Mon, 07 Apr 2014 19:25:44 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Cong Wang CC: "Ken O'Brien" , Network Development , "linux-kernel@vger.kernel.org" Subject: Re: proc net statistics References: <1396867174.6220.4.camel@laptop.site> <1396890659.3063.4.camel@mjolnir.site> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/07/2014 07:19 PM, Cong Wang wrote: > On Mon, Apr 7, 2014 at 10:10 AM, Ken O'Brien wrote: >> >> Ok, so then, is there a way to read per process network statistics in the proc filesystem? > > AFAIK, we only have per-socket and per-netdev statistics, there is no > per-process one, you probably want to try cgroup, or put these processes > into a namespace. You can do that with cgroups, e.g. xt_cgroup. Samsung/Tizen OS seems to make use of this ... https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=a00e76349f3564bb8129fc0510dfd93248c3084d -- 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/