From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC8DE634 for ; Thu, 7 Mar 2024 03:57:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709783848; cv=none; b=YS/8bY5CXoRT6Uc+O20O0lKSoN7jRv/UBvZl2+N5mZlJCSpnYhhh5gPgCHBi1YsA/pwt6i3A3OqZ549Vjxo9PxhBEwc1tUsi/O71c9gwIzZeOkJBciu8F1ob6zovsEUS1rBGJ6URFLvwjiErcd16wPM64MhooIMPaDUd9YTYj64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709783848; c=relaxed/simple; bh=Y26aSEmErH/XB3xGI32wpwBip+1x2Rb56/F5Geiv3lI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tYiZt8Av022tzMX1YTdOcQMRyPx5buoQb8yaHGG/rTfhrH80RTP/Ot8agLcQUbsWD9eOI2XmHgtj7TaiyyOy2ldk3zcNjjZoTwBjfk0jGVt4Pbh7BorBQ0/9XISy6KVnBfSWP/if2J3UKf9xTmOzdf+AdjOtCaDWGw7UsoiDKCk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=frLLRRI7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="frLLRRI7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49EE6C433F1; Thu, 7 Mar 2024 03:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709783847; bh=Y26aSEmErH/XB3xGI32wpwBip+1x2Rb56/F5Geiv3lI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=frLLRRI7xH4ottelCbgbKdXai/IfVdGdfICxGjwRliJ5dAVwpBROvfVEUWVjXzW+S dfMuBkyG9bKeoui3hSyHVKJ+UzjUBzRWVliJ5Ry7Qz0tHK3c8u6K9tY+23Wjni8aTx VRcx5o+bc4LIuCzZTT4Xoij06Ulk6yohPDfM5bd8y01Ry+NYkWj721vvGrhXtHMMtW /FHvUtbQPXeomccIXpz+Rmj9Yk2hMAVkO6qvoXGYiAAnIpK7UEQVmfv51wYfAp2nde JDI7T6V+y7X71CXOalGp09GCKHSBfFHR9IYASyDkAYPWMpejAVuSN2qlBBEBmx/xu9 t+glcDZmUIdUA== Date: Wed, 6 Mar 2024 19:57:26 -0800 From: Jakub Kicinski To: Ben Greear Cc: netdev Subject: Re: Process level networking stats. Message-ID: <20240306195726.11a981cb@kernel.org> In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 6 Mar 2024 14:57:55 -0800 Ben Greear wrote: > I am interested in a relatively straight-forward way to know the tx/rx bytes > sent/received by a process. What is "relatively straight-forward"? :) You could out the process in a cgroup and use cgroup hooks