From owner-freebsd-stable@FreeBSD.ORG Wed May 4 13:26:41 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 2C180106566B; Wed, 4 May 2011 13:26:41 +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 E40008FC18; Wed, 4 May 2011 13:26:40 +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 1882A4AC1C; Wed, 4 May 2011 17:26:40 +0400 (MSD) Date: Wed, 4 May 2011 17:26:36 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <369893537.20110504172636@serebryakov.spb.ru> To: Lev Serebryakov In-Reply-To: <455293202.20110504164901@serebryakov.spb.ru> References: <455293202.20110504164901@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: 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 13:26:41 -0000 Hello, Lev. You wrote 4 =EC=E0=FF 2011 =E3., 16:49:01: > 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. When it spents, says, 75% of one core, SYSTEM is only 1-2%, not 75%/2 =3D~ 37%, what is interesting... --=20 // Black Lion AKA Lev Serebryakov