Elapsed time is cpu time as opposed to real time?

Message boards : Questions and problems : Elapsed time is cpu time as opposed to real time?
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 89201 - Posted: 14 Dec 2018, 11:24:44 UTC

Can someone confirm this please? If it is not true, something very strange is going on. Three tasks from the same batch of the testing branch of my main project, two on a desktop that is older and slower than the laptop that has the other. The two on the desktop started seven minutes earlier than the one on the laptop yet the one on the laptop is currently showing 45 minutes elapsed time against 31 minutes elapsed time for the two on the desktop, which has been getting light use (browsing and word processing) throughout. May or may not be relevant that the laptop is using WINE for BOINC and the desktop native Linux.

Not a biggie in the grand scheme of things but interesting to know.
ID: 89201 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 89202 - Posted: 14 Dec 2018, 11:39:52 UTC - in response to Message 89201.  

No, CPU time is CPU time, Elapsed time is system clock time.
ID: 89202 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 89205 - Posted: 14 Dec 2018, 12:54:25 UTC - in response to Message 89202.  
Last modified: 14 Dec 2018, 13:44:18 UTC

No, CPU time is CPU time, Elapsed time is system clock time.


Thanks for that.

Which makes me wonder why does the elapsed time on the two tasks running under Linux show an elapsed time of about one and a half hours when there has been almost two and a half hours since the task started, machine running continuously since tasks started. Will check to see if the same happens under WINE on this machine but that will have to wait till the two tasks running are finished.

Edit: The logical conclusion is that the two tasks on the desktop machine aren't computing all the time. I just need to think of a way to check this out. - whenever I run top the processes show as using nearly all the cpu time so I guess I need to get more inventive about how I look.
ID: 89205 · Report as offensive
Profile Dave
Help desk expert

Send message
Joined: 28 Jun 10
Posts: 2533
United Kingdom
Message 89364 - Posted: 27 Dec 2018, 12:02:16 UTC

As a post script to this question I have learned that there are some of the CPDN tasks that seem to reset the CPU time and cause massive discrepancies between CPU time and elapsed time. Seems I must have had one of these tasks. (Most of the tasks that have this large discrepancy are ones that fail.)
ID: 89364 · Report as offensive

Message boards : Questions and problems : Elapsed time is cpu time as opposed to real time?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.