From owner-freebsd-current@FreeBSD.ORG Fri Feb 11 16:25:44 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E00F16A4CE for ; Fri, 11 Feb 2005 16:25:44 +0000 (GMT) Received: from www.portaone.com (support.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6302C43D5A for ; Fri, 11 Feb 2005 16:25:43 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.1.26] (SIRIUS-ats227-UTC.ukrtel.net [195.5.25.154]) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j1BGPdCN013679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Feb 2005 17:25:41 +0100 (CET) (envelope-from sobomax@portaone.com) Message-ID: <420CDC7F.4020208@portaone.com> Date: Fri, 11 Feb 2005 18:25:35 +0200 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Nottebrock References: <420CC9F7.40802@portaone.com> <200502111651.25162.michaelnottebrock@gmx.net> In-Reply-To: <200502111651.25162.michaelnottebrock@gmx.net> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/685/Wed Jan 26 10:08:24 2005 clamav-milter version 0.80j on www.portaone.com X-Virus-Status: Clean cc: freebsd-current@freebsd.org Subject: Re: Pthreads performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 16:25:44 -0000 Michael Nottebrock wrote: > On Friday, 11. February 2005 16:06, Maxim Sobolev wrote: > > >>Following is result of the run on my 5.3-STABLE/UP. > > >>-bash-2.05b$ time ./aqueue_kse -n 10000000 >>pusher started >>poper started >> >>real 0m15.477s >>user 0m15.432s >>sys 0m0.009s >>-bash-2.05b$ time ./aqueue_linuxthreads -n 10000000 >>pusher started >>poper started >> >>real 0m6.118s >>user 0m2.217s >>sys 0m0.932s > > > Here's what I get on a my UP 5.3-STABLE with ULE and PREEMPTION (thr & lc_r > not installed, hence not tested): Looks very much like either ULE or PREEMPTION pessimize LT without any positive effect on KSE. Neither option should have any effect on user time, while user times in your tests compare to user times in mine as 2:1 for both LT and KSE, while real time for KSE is also 2:1 but real time for LT is 3:1. Unfortunately I've tested on production machine, so that I can't recompile kernel with ULE & PREEMPTION to verify that. -Maxim > > [lofi@kiste]:~ > time ./aqueue_linuxthreads -n 10000000 > pusher started > poper started > > real 0m19.157s > user 0m4.639s > sys 0m5.545s > [lofi@kiste]:~ > time ./aqueue_kse -n 10000000 > pusher started > poper started > > real 0m32.619s > user 0m31.858s > sys 0m0.532s > > Still slower, but already lower than factor 2. >