Questions tagged [measure]

21 questions
57
votes
5 answers

Measuring RAM usage of a program

time is a brilliant command if you want to figure out how much CPU time a given command takes. I am looking for something similar that can measure the max RAM usage of the program and any children. Preferably it should distinguish between allocated…
Ole Tange
  • 33,591
  • 31
  • 102
  • 198
16
votes
2 answers

How to detect if a disk is seeking?

I can use a variety of tools to measure the volume of disk I/O currently flowing through the system (such as iotop and iostat) but I'm curious if it's possible to easily detect if a disk is seeking a lot with only a small amount of I/O. I know it;s…
Gearoid Murphy
  • 562
  • 6
  • 12
14
votes
1 answer

Measuring disk I/O usage of a program

time is a brilliant command if you want to figure out how much CPU time a given command takes. I am looking for something similar that can measure the disk I/O of the program and any children. Preferably it should distinguish between I/O that was…
Ole Tange
  • 33,591
  • 31
  • 102
  • 198
9
votes
2 answers

How to time grep commands accurately?

I want to compare the speed of these two commands: grep pattern1 files* grep pattern2 files* Unfortunately, the first grep reads much of files* into memory buffers, so the second grep runs very quickly, but for the wrong reason. How do I…
user2267
9
votes
2 answers

Measuring internet connection quality

I'm having WLAN trouble on my dualbooting win/linux laptop - the connection on linux side has occasional trouble, and seems somewhat slow and chunky. I would try to fix this issue by fiddling with all sorts of router settings, or WLAN kernel modules…
Ilari Kajaste
  • 325
  • 1
  • 2
  • 6
9
votes
1 answer

How to measure an operation's duration in terminal, not in code

For example, I need to do "make " for some software. I want to measurement how long this is going take. Is there easy and accurate way to do so?
Anders Lind
  • 2,315
  • 3
  • 21
  • 16
4
votes
1 answer

How to output process stats after completion?

I would like to run a process from bash in Cygwin so that I have some short summary after execution like peak memory usage or average CPU usage, like time but with more information. Are there any options?
Euri Pinhollow
  • 231
  • 1
  • 7
4
votes
1 answer

How can I make fullscreen cross hairs appear centered on the pointer?

How can I make fullscreen crosshairs, centered on the mouse, appear on my screen? I read a lot of science papers with graphs that I want to quickly be able to see what feature is horizontal/vertical with another feature. I'm looking for something…
user1717828
  • 3,512
  • 6
  • 23
  • 32
4
votes
1 answer

Is "top" accounting for Kernel Interrupts?

I have a simple interrupt that is triggered by a GPIO-input. The IRQ only increments a variable and returns. When I turn the frequency of the interrupts up to somewhere around 10-20 kHz, the system becomes unresponsive. I measure the CPU-load using…
Wiingaard
  • 141
  • 5
3
votes
2 answers

On Screen Protractor

A handy program for measuring the pixel dimensions of something on-screen is screen ruler: sudo apt install screenruler ; screenruler I like how you can place it anywhere on your screen and it stays on top of all other applications as you use…
Lonnie Best
  • 4,895
  • 6
  • 27
  • 42
2
votes
1 answer

performance comparison of multiple commands excutions

I've got three different programs written in three different languages, and I'm trying to compare their performance in terms of runtime, and memory consumption. What I'm looking for is some command that looks something like: $ SOMETHING (python…
7kemZmani
  • 121
  • 2
2
votes
2 answers

Resource usage (% CPU) for given command on OS X

The time -v command outputs % CPU utilization for a given command on Linux. How do I do this on OS X? The Linux/OS X difference is illustrated here. I would like to measure multi-core utilization across the total execution period of a short-running…
user12719
  • 121
  • 1
  • 3
2
votes
1 answer

How do I measure the RAM usage of desktop environments?

I would like to measure the RAM usage of several desktop environments (including Cinnamon, GNOME, KDE, LXDE, LXQt, MATE and Xfce) running on my Sabayon machine. I would prefer a command-line way of checking RAM usage, if possible. I have tried using…
Josh Pinto
  • 3,483
  • 15
  • 52
  • 87
1
vote
1 answer

How to measure how long linux takes to shutdown

I need to calculate how long linux takes to shutdown. I am running an embedded busybox linux on ARM i.MX7. I looked in /var/volatile/log/messages but that only shows the last startup. I need to know how long the system takes to shutdown after eg…
arcomber
  • 274
  • 1
  • 8
1
vote
1 answer

How to measure disk and network IO more frequently than a second?

I am running some experiments that use cpu, disk, and network resources. (by the way, I use Cent OS 7) I want to measure its cpu, disk, and network resource usage. Some tools I know (dstat, iostat) only provides a second as the minimum interval…
syko
  • 675
  • 3
  • 9
  • 15
1
2