Linked Questions

43 votes
2 answers
48k views

I have a very large table with 250,000+ rows, many containing a large text block in one of the columns. Right now it's 2.7GB and expected to grow at least tenfold. I need to perform python specific ...
Marlon Dyck's user avatar
26 votes
2 answers
22k views

In Ubuntu, /usr/bin/time -v any-command tells me the memory usage of any-command and some information. (Source: https://stackoverflow.com/a/774601/2885946) I want to do the same thing in OS X/macOS. ...
ryo's user avatar
  • 2,197
37 votes
1 answer
12k views

I am trying to measure memory consumption of a running program in Linux. I wrote a C program to allocate 1G memory, then use time to output its "Maximum resident set size": /usr/bin/time -f '%Uu %Ss %...
zhanxw's user avatar
  • 3,319
15 votes
3 answers
13k views

I'm running a number of short-lived docker containers each of which does some memory-intensive batch processing. I'm looking for a way to find the peak memory usage each container hit while it was ...
Vito's user avatar
  • 1,758
9 votes
2 answers
2k views

Is there a way to measure how much an executed terminal command/operation used memory, like the built-in command time for measuring execution time. I'd like to compare commands with different ...
Tom Smith's user avatar
  • 381
6 votes
5 answers
4k views

I have an old code base that makes extensive use of GD (no, switching to imagemagick is not an option). It's been running for several years, through several versions. However, when I run it in my ...
Shauna's user avatar
  • 9,594
9 votes
2 answers
4k views

I am implementing an algorithm and want to measure the time and memory consumption of it. To my aid I've written my own measuring utility, which reads from /proc/[pid]/stat the amount of user and ...
Mats_SX's user avatar
  • 194
3 votes
2 answers
2k views

I want to know how much memory is consumed if I create a ruby object. Does Ruby have any method to tell? Is there any difference for memory consumption in the following? users = User.where("...
pangpang's user avatar
  • 8,869
5 votes
1 answer
4k views

Can I say 'maximum resident set size of a process' equals 'required RAM size at least for the process'? Am I right? If not, why?
minkyung's user avatar
  • 153
1 vote
2 answers
2k views

I'm composing yaml file for scripts running in docker and orchestrated by kubernetes. Is there a way to evaluate the resource utilization for a specicific command or docker, or what's the best ...
Yang's user avatar
  • 809
3 votes
1 answer
2k views

The following dtrace script will give the sum of all allocations a process has performed: pid$target::malloc:entry { @ = sum(arg0); } Now, I'm rather interested in the maximum total allocated memory ...
digitalvision's user avatar
0 votes
1 answer
1k views

sometimes I need to follow a process and I always find a bash-script doing pid=$1. As far as I understand, it should get the process ID that I sent to the first shell instance I created that is ...
rafa's user avatar
  • 805
2 votes
1 answer
2k views

I use slurm to run jobs on a cluster. I would like to get stats about the job, such as used memory, number of processors and wall-time. I would like to get such information in the log file. I think ...
simona's user avatar
  • 2,211
3 votes
1 answer
967 views

Can someone let me know what is the unit of maximum resident size in the output below? /usr/bin/time -l mvn clean package -T 7 -DskipTests ... real 530.51 user 837.49 sys 64.28 ...
tuk's user avatar
  • 6,954
0 votes
1 answer
959 views

I have to measure the memory usage and the execution time of the process executed by proc_open(). Measuring the time is not that hard, but I can't find any method to get the memory usage. (the program ...
Love Paper's user avatar

15 30 50 per page