From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cae92f92d6a1d4b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Execution_Time Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4d05e737$0$6980$9b4e6d93@newsspool4.arcor-online.net> <1wmsukf0wglz3$.odnzonrpayly.dlg@40tude.net> <6n1c5myuf2uz$.10jl3ln7il3aq.dlg@40tude.net> <8n0mgnFv2sU1@mid.individual.net> Date: Fri, 17 Dec 2010 10:32:27 +0100 Message-ID: <1n3o55xjdjr9t.1u33kb75y2jfl$.dlg@40tude.net> NNTP-Posting-Date: 17 Dec 2010 10:32:28 CET NNTP-Posting-Host: 9232017b.newsspool2.arcor-online.net X-Trace: DXC=jgS6WY[6LHn;2LCV>7enW;^6ZC`4\`mfM[68DC3_7X7W`A==c; X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:16978 Date: 2010-12-17T10:32:28+01:00 List-Id: On Fri, 17 Dec 2010 10:49:26 +0200, Niklas Holsti wrote: > Dmitry A. Kazakov wrote: >> CPU_Time has no physical meaning. 2s might be 2.5s >> real time or 1 year real time. > > CPU_Time values have physical meaning after being summed over all tasks. > The sum should be the real time, as closely as possible. 1. Not tasks, but threads + kernel services + kernel drivers + CPU frequency slowdowns => a) wrong; b) out of Ada scope => cannot be mandated 2. Not so anyway under many OSes => again, cannot be mandated 3. The intended purpose of CPU_Time has nothing to do with this constraint. Nobody is interested in knowing if the actual sum is close or not to the real time duration. It is a simulation time, which *could* be projected to the real time in order to estimate potential CPU load. And the result depends on the premises made. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de