Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #839

Re: g++ spent lots of user time

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.os.linux.development.apps
Subject Re: g++ spent lots of user time
Followup-To comp.os.linux.development.apps
Date Wed, 01 Mar 2017 09:50:11 -0500
Organization The Pitcher Digital Freehold
Lines 38
Message-ID <o96mvg$3sm$1@dont-email.me> (permalink)
References <9e7e5a19-9122-4b1a-9532-d938bb192a4d@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="US-ASCII"
Content-Transfer-Encoding 7Bit
Injection-Date Wed, 1 Mar 2017 14:48:16 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="ad1c4adb0bc3a1609633e83218d10941"; logging-data="3990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EonnHyrHAC/V749ezfZRmqAvAPrKIBVc="
Cancel-Lock sha1:w7zYTErC7QFkL2P3IILFATbOwFk=
Xref csiph.com comp.os.linux.development.apps:839

Followups directed to: comp.os.linux.development.apps

Show key headers only | View raw


On Wednesday March 1 2017 09:05, in comp.os.linux.development.apps, 
"wij@totalbb.net.tw" <wij@totalbb.net.tw> wrote:

[Text order altered]

> -----------------
> $g++ --version
> g++ (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)
> ...
> 
> $time g++ -c -Wall -pthread -fPIC dsmain.cpp
> 
> real	6m10.623s
> user	6m8.142s
> sys	0m0.099s

> Why did the compilation took so long in user time?

You have not provided enough information to allow anyone to give you a 
comprehensive answer to your question.

I can give you a generic answer to your question, though.

Your compilation tool a long time because the compiler was doing lots of 
complicated things that didn't require any system calls.

Process time is split into "the length of time the process waited while the OS 
serviced a process-initiated system call, such as open() or read()" and "the 
rest of the time that the process took to execute". Your "system call time" 
(or "sys") is 0 minutes, 0.099 seconds, while your "everything else time" (or  
"user") is 6 minutes, 8.142 seconds. That's all we can tell from the 
information you supplied.
 
-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

g++ spent lots of user time wij@totalbb.net.tw - 2017-03-01 06:05 -0800
  Re: g++ spent lots of user time Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-03-01 09:50 -0500
    Re: g++ spent lots of user time wij@totalbb.net.tw - 2017-03-01 17:12 -0800
      Re: g++ spent lots of user time Rainer Weikusat <rweikusat@talktalk.net> - 2017-03-02 15:33 +0000
  Re: g++ spent lots of user time Johann Klammer <klammerj@NOSPAM.a1.net> - 2017-03-01 17:18 +0100
    Re: g++ spent lots of user time wij@totalbb.net.tw - 2017-03-01 17:29 -0800

csiph-web