| Summary: | time does not show really consumed time | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jan Ščotka <jscotka> | ||||||||
| Component: | time | Assignee: | Petr Pisar <ppisar> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 6.4 | CC: | bnater, jscotka, psabata | ||||||||
| Target Milestone: | rc | Keywords: | FastFix, Patch | ||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| URL: | http://lists.gnu.org/archive/html/bug-gnu-utils/2013-09/msg00003.html | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||||||
| Doc Text: |
undefined
|
Story Points: | --- | ||||||||
| Clone Of: | |||||||||||
| : | 1005807 1412149 (view as bug list) | Environment: | |||||||||
| Last Closed: | 2017-12-06 10:44:27 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Jan Ščotka
2013-09-04 15:07:15 UTC
Judging from the output, you seem to be using your shell's `time', not the `/usr/bin/time' binary. Despite you use built-in `time', there is the same problem with GNU time. I also think that time should measure monotonic (-alike) time not to get influenced by shifts in system clock. clock_gettime(2) offers: CLOCK_MONOTONIC -- suffers from NTP time adjustment. CLOCK_MONOTONIC_RAW -- uses real hardware clock, I worry about precision and access permission for non-root users. CLOCK_BOOTTIME -- includes time elapsed in suspension but suffers from NTP time adjustment. Is it worth? I guess the CLOCK_MONOTONIC_RAW is the most appropriate. Created attachment 795594 [details]
Test case
Upstream agreed to use clock_gettime(CLOCK_MONOTONIC) for measuring the "real" value. Created attachment 1226439 [details]
Proposed fix
Patches posted to upstream <http://lists.gnu.org/archive/html/bug-gnu-utils/2016-12/msg00000.html>, but upstream seems dead. Created attachment 1239457 [details]
Proposed fix
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com/ |