From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 1 10:26:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EBBC16A41A; Fri, 1 Feb 2008 10:26:34 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 77E2D13C468; Fri, 1 Feb 2008 10:26:33 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <47A2F3D7.1020307@FreeBSD.org> Date: Fri, 01 Feb 2008 11:26:31 +0100 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Alexander Motin References: <47A25412.3010301@FreeBSD.org> <47A255BB.3020708@FreeBSD.org> <47A25A3A.80700@FreeBSD.org> <47A2C142.9030306@FreeBSD.org> In-Reply-To: <47A2C142.9030306@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org, freebsd-performance@freebsd.org Subject: Re: Memory allocation performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 10:26:34 -0000 Alexander Motin wrote: > Kris Kennaway пишет: >> Alexander Motin wrote: >>> Alexander Motin пишет: >>>> While profiling netgraph operation on UP HEAD router I have found >>>> that huge amount of time it spent on memory allocation/deallocation: >>> >>> I have forgotten to tell that it was mostly GENERIC kernel just built >>> without INVARIANTS, WITNESS and SMP but with 'profile 2'. >> >> What is 'profile 2'? > > I have thought it is high resolution profiling support. Isn't it? > OK. This is not commonly used so I don't know if it works. Try using hwpmc if possible to compare. When you say that your own allocation routines show less time use under profiling, how do they affect the actual system performance? Kris