From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 15 20:21:46 2011 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 3D6C21065701 for ; Wed, 15 Jun 2011 20:21:46 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 138CF8FC1A for ; Wed, 15 Jun 2011 20:21:45 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p5FKFEQ4053096 for ; Wed, 15 Jun 2011 13:15:15 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <4DF91458.8010508@rawbw.com> Date: Wed, 15 Jun 2011 13:21:44 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Why user time of the process depends on machine load? 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: Wed, 15 Jun 2011 20:21:46 -0000 When I test performance of the code, I always observe dependency of CPU user time on the presence of other CPU intense processes. Same CPU-only deterministic process that on the quiet machine completes in 220 user seconds in the presence of, for example, kde rebuild would complete in 261, 266 or even 379 user seconds. I am talking about times shown by time(1), not actual an execution time. It's the same time as getrusage(2) returns in ru_utime field. Why time that process takes in user seconds depends on what other processes are running? FreeBSD-8.2 STABLE on i7 CPU @ 9200 @ 2.67GHz. Yuri