0
votes
1answer
60 views

Running an executable with fixed execution-time and memory limit and getting exit-code

What is the best way to run an executable with execution-time and memory(RAM) limit (e.g. 2.5 seconds and 32768 kB)? Also I need to get the exit-code if it exits without violating time and memory ...
4
votes
2answers
220 views

How to use free -m to get memory usage for all users

I typed the free command to get the memory usage as follows : free -m output: I want to use this command to get the same info but for all users for example : I used this command .. because ...
0
votes
2answers
148 views

How can I see the memory occupied by a file and folder and also entire directory from terminal?

I'm having some files and folders in the "My Documents" directory. What are the commands to see the size of a file and directory in a terminal?
0
votes
1answer
502 views

memory usage doesn't add up [duplicate]

Possible Duplicate: How do I get the actual used memory including RAM disks? If I add up all the memory usage I get from top -b -n 1 or htop or ps aux, I get a number that is a few GB under ...
7
votes
4answers
5k views

Is there an application that can show memory usage in a similar manner to top?

I would like to leave an application running in my terminal that shows me the memory usage, similar to how top shows CPU and other info, and iotop shows the top I/O users. Does such an application ...
7
votes
2answers
4k views

How to log memory and cpu usage of an application?

Similar to question How to log CPU load?, I would like to log memory of a process. The process I want to log, is killed on a remote server, and I want to find out the CPU load and the memory usage ...