`time` is a command line utility for running another program and summarizing resource usage

learn more… | top users | synonyms

4
votes
3answers
5k views

Find last shutdown time

This is the command I am using: last -x|grep shutdown | head -1 but it's giving me the duration with +2 hours: shutdown system down 3.14-1-amd64 Mon Jul 21 08:43 - 22:19 (13:36) the last ...
1
vote
2answers
40 views

Tracking/Monitoring Short-Lived CPU-Intensive Process on one CPU

So I've been working with this issue for some time now, and I'm having trouble finding the tools to troubleshoot this problem, which I have to imagine exist. So here's the basics of my problem: We ...
2
votes
1answer
125 views

Is it possible to read PVclock from user space?

Is it possible to read clocksource xen or kvmclock using some user space tool? Referring to /sys/devices/system/clocksource/clocksource0/current_clocksource. Reading the actual value of the pvclock. ...
1
vote
1answer
25 views

how to track the time taken for a move operation from one folder to another in linux

how to track the time taken for a move operation from one folder to another in linux I have been performing a move operation like the sample below. I would like to know how much time in seconds does ...
1
vote
1answer
48 views

Why are the timestamps on my removable media taken as UTC time?

I'm running Debian 8, and all of the files on my removable media (SD cards, USB sticks) show up with the time stamp interpreted as UTC, rather than my local time? What's going on? date gives me the ...
1
vote
1answer
363 views

Unpacking of initramfs is very slow

I am trying to improve the kernel boot time of my device and I would like some help. I am using OMAPL138 with kernel version 2.6.37 and it takes about 50 seconds until the boot process is finished, ...
1
vote
1answer
382 views

What value is stored in linux xtime variable?

Whenever I print the value of /proc/interrupts the value of rtc0 in IRQ8 which is for RTC shows only 1 interrupt on CPU0. I have read that when booting the value of the xtime variable is stored from ...
0
votes
1answer
75 views

I want to measure the time between two jobs in a logfile

I have a logfile which name/directory is: /srv/uni/kani/LogDay.09-03-2016 The name of the logfile changes date every day. So tomorrow will be: `LogDay.10-03-2016' and so on... I would like help to ...
0
votes
1answer
49 views

Issues with storing an echo of a date conversion into a string variable inunix

Apologies but this question comes from a question previously raised: How can I convert a local date-time into UTC date-time? Toby has been absolutely great helping me with some conversion string-->BST ...
3
votes
0answers
36 views

What process state(s) is counted into cpu time?

Two observations of mine (correct me if wrong): In the output of time for timing a process, 'User' and 'Sys' come from wait (2) or times (2), depending on the particular system. In Linux ...
3
votes
0answers
81 views

System time in Minix with best precision

I'm working on a project to modify the scheduler in MINIX 3. So to test it I need to analyse the wait time and turnaround time. To calculate the wait time I'm storing the system time when the process ...
3
votes
0answers
73 views

Linux Mint system clock is days ahead after an overnight laptop suspend

I'm a long-time Ubuntu user, who recently started trying out Linux Mint on a laptop. This is not a dual-boot setup, Mint is the only OS on the machine. When I suspend the laptop (i.e. close the ...
3
votes
0answers
737 views

cpu time measurement with wait4 vs. cpuacct cgroup

I want to start a process and measure the cpu time (user+sys) it needs until it terminates. I know I can use the wait4 system call, which returns a struct with user and system time (I use the sum of ...
2
votes
0answers
25 views

How to support 64-bit times on a 32-bit Linux platform

I need to support 64-bit times on a 32-bit ARM embedded Linux system based on kernel version 4.1. I use clock_gettime() and clock_settime() to get/set the time, but they are limited to 32-bit seconds ...
2
votes
0answers
58 views

What hardware support is needed for linux to do `gettimeofday` / `clock_gettime` in userspace using `hped`?

On reasonably modern systems Linux can service "system" calls like gettimeofday and clock_gettime entirely in userspace through the linux-vdso.so (or linux-gate.so) virtual library, so it does not ...
2
votes
0answers
57 views

Improve kernel boot time

I am using OMAPL138 and kernel version 2.6.37 and I would like to improve the boot time. By analyzing the kernel boot process I think it is taking a long time at MII PHY CONFIGURATION. The printscreen ...
2
votes
0answers
93 views

How does an X86 Linux system maintain the system time, when no NTP etc. is in play?

When an x86 Linux system is powered up and running, how does it keep track of software time? E.g. is it incrementing a software counter based on hardware interrupts from the RTC, or is there some ...
2
votes
0answers
135 views

Which counter generates timer interrupts?

I did a iotop to observe the interrupts on my computer. This is the interrupt shown most often. 0 [PIC-edge time] 247 Ints/s (max: 389) I believe it's the timer interrupt, well since ...
1
vote
0answers
40 views

How to run a jar together with faketime

I need run a certain jar file with a mock time for testing purposes. When I execute the jar in the usual way $ java -jar myjar.jar it runs perfectly. But when I try to run it together with ...
1
vote
0answers
45 views

On Ubuntu - /var/log/messages timestamps are 4 minutes ahead

As mentioned in the subject, timestamps in my /var/log/messages are 4 minutes ahead comparing to my desktop clock or the date command. If it was an hour, I would think this is a timezone issue, but ...
1
vote
0answers
40 views

date/time setting does not work after unplugging power adapter or sudden power cut

For some reason, I want to configure the date/time in my Linux (CentOS 6.5) to be different from the REAL date/time, but the setting won't work if I turn my computer(desktop not laptop if this ...
1
vote
0answers
134 views

Variations in Ubuntu 12.04 /usr/bin/time statistics

I have a command line tool which I run on Ubuntu 12.04.5 LTS. I need to calculate the cpu time for this program. I have been checking /usr/bin/time function. command: /usr/bin/time -v -a -o ...
1
vote
0answers
119 views

Changing file time using touch

Im trying to change the file time of a m#merge the files to a temporary file. mergecap -w "${dir_dcn}"/merge_dcn.pcap "${FILES_dcn[@]}" touch -r "${FILES_dcn[14]}" dcn_file ls -l dcn_file ...
0
votes
0answers
16 views

Error when trying to run ptp4l in hybrid E2E mode

I have an Intel 9301CT 7345 that I need to set up as a PTP master. I am on Fedora 21, and have compiled the latest version of linuxPTP (ptp4l). My network setup requires the mode to be "hybrid E2E", ...
0
votes
0answers
55 views

Must set CMOS clock to localtime (due to DOS dual boot), timedatectl or hwclock seems to keep setting CMOS (hardware) clock to UTC!

This is beyond crazy. I have a dual-boot system, one OS is FreeDOS (which has NO ability to deal with CMOS clock being anything other than local time), and the other is Linux Mint 17. The way this ...
0
votes
0answers
60 views

Incorrect file creation/modification time

So I run a backup script on a home server running Fedora 23. I also run a prune script that removes files older than 30 days. This fresh backup file keeps getting deleted because it's creation or ...
0
votes
0answers
43 views

dd process real vs. sys time

I have two quad core workstations. One is based on Intel Atom x86_64 architecture (WS1). Another one is based on armv7l architecture (WS2). Both are running 3.10 kernel version. Identical busybox dd ...
0
votes
0answers
65 views

issues with acpi-cpufreq and frequency scaling

I am using the Ubuntu distribution on Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz with Kernel version: 3.14.5. I deactivated the intel_pstate driver and activated the acpi-cpufreq driver with userspace ...
0
votes
0answers
612 views

System CPU Time and User CPU Time Calculation for a Process in Linux

I want to calculate CPU time consumption of a particular process in system mode and user mode using statistics present in /proc/<PID>. There are two fields utime and stime in ...