Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2002 10:34:37 -0700
From:      David Greenman-Lawrence <dg@dglawrence.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern uipc_socket2.c
Message-ID:  <20020816103437.J42978@nexus.root.com>
In-Reply-To: <20020816101613.I42978@nexus.root.com>; from dg@dglawrence.com on Fri, Aug 16, 2002 at 10:16:13AM -0700
References:  <20020815221609.E42978@nexus.root.com> <20020816212205.N6756-100000@gamplex.bde.org> <20020816101613.I42978@nexus.root.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>    I'm looking at calcru() as well, since is does four 64bit divides and
>>> was as expensive as sbreserve() in my profiles. The __qdivrem function
>>> that does the 64bit divide appears to consume several thousand instructions
>>> in the common case. Something to avoid if at all possible.
>>
>>calcru() didn't seem to be so bad in my profiles.  I think its efficiency
>>only matters if you have a lot of very short lived processes, or if you
>>have processes that call getrusage() too much.
>
>   In my particular tests, processes had a lifetime of less than 10us (i.e.
                                                                 ^^^
						Oops, should be 100us.

>were forking + exiting at a rate of > 10000/second). This was an app that
>creates a process, does a TCP network connect, receives and processes a
>packet of data, and sends a response - a typical transaction oriented network
>application.
>
>-DG
>
>D.G.Lawrence
>Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
>TeraSolutions, Inc. - http://www.terasolutions.com - (503) 288 9544
>The FreeBSD Project - http://www.freebsd.org
>Pave the road of life with opportunities.
>

-DG

D.G.Lawrence
Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
TeraSolutions, Inc. - http://www.terasolutions.com - (503) 288 9544
The FreeBSD Project - http://www.freebsd.org
Pave the road of life with opportunities.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020816103437.J42978>