From owner-freebsd-stable@FreeBSD.ORG Wed May 4 12:49:06 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB9CB106564A for ; Wed, 4 May 2011 12:49:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 86CDB8FC0A for ; Wed, 4 May 2011 12:49:06 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:c9d:ce4b:69a5:29c1]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 1AE834AC2D for ; Wed, 4 May 2011 16:49:05 +0400 (MSD) Date: Wed, 4 May 2011 16:49:01 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <455293202.20110504164901@serebryakov.spb.ru> To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: How to understand, what userland program does in kernel? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 12:49:07 -0000 Hello, Freebsd-stable. I have userland program (transmission BT client), which spent 100% of one core of E4500 CPU when it has many peers. It is surprises me, as channel is only 35Mbit, and my "Linux" friends can upload much more on comparable hardware. But what surprises me even more, that 50% of this time it spends as System time. Is here any way to understand, what transmission does in kernel for so much time? It seems, that userland profiling doesn't help me, am I right? --=20 // Black Lion AKA Lev Serebryakov