CPU & I/O Memory Usage

I have this question which give me a file.tar.gz which include a calculator file and want to extract and run it
in the output it wants to show
1)cpu avg usage
2)total time taken to run
3)memory and I/O usage
can anyone help???


Similar Content



Correctly Measure Available Memory In Linux

I'm currently using the command below, to output the memory usage of a debian system in bash scripts.

Code:
memusage=$(memusage=$(/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}' | cut -d "%" -f1);echo "$(printf "%0.0f\n" $memusage)") && echo Memory Usage is $memusage

Being new to Linux though, I just found out that Linux takes up a lof of memory and puts it in cached.

Code:
root@Client1:~# free -m
             total       used       free     shared    buffers     cached
Mem:           927        799        128          0         15        754
-/+ buffers/cache:         28        898
Swap:           99          0         99

So the first command will actually output that the memory usage is 87%, when in reality is not. Its actually thinking that the memory usage is high because its also counting the cached memory, as used memory.

How can I modify the first command not to consider cached memory, as used memory?

Thanks

Equivalent Command For "time -v" In Centos

I want to know the approximate maximum memory usage by my process. If I start the process using "time -v <myprocess>", I get the output after it terminates. This works fine in RedHat Enterprise Linux, but not in Centos. There does not seem to be an option "-v" for time. Do I miss anything ? What is the equivalent in Centos to know the peak memory usage by a process ?

Changing The Output Of CPU And RAM Usage

I am using the following two commands to output CPU and RAM usage on a Linux machine.

Code:
/bin/grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'

/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}'

My problem is that the output is like this

Quote:
5.33672%
13.9723%
Is there a way to output a single number? For example

Quote:
5
13
Thank you

Convert Txt To 3 Column Html

I have a server sending me a plain text email every day, reporting the below parameters. Its reading them from a text file, and sending them to my email.

How can convert this to a three column html table and send that?

Code:
Sync Total: 1 directory, 4 files, 0 symlinks
---------------------------------
Host Name: host name here
---------------------------------
Group Name: group name here
---------------------------------
Disk Usage: 37%
---------------------------------
CPU Usage: 78%
---------------------------------
Memory Usage: 11%
---------------------------------
Temperatu  44.9'C
---------------------------------
Local IP: 192.168.0.115
---------------------------------
Public IP: public ip here
---------------------------------
Tunnel Port: 5001
---------------------------------
Tunnel Status:
Fri Mar 6 06:23:00 EET 2015 opening reverse tunnel from my_host_he 5001 to 127.0.0.1:22
---------------------------------

Thanks

Memory Rises To Maximum

I have a running jboss application server 5 on RHEL 6.After few days it is noticed that the memory usage is at maximum.When the services of jboss are restared all of the memory is left free?I am unable to diagnose the issue?
Memory assigned is 24GB heap size is 16 GB.

Why Sudden Surge In CPU Usage In Xubuntu?

I've got two identical computers with Xubuntu on them. They've both worked awesomely until recently when one of them gets hung up when I switch to different websites. The CPU gets stuck on 100% and I have to wait a minute or two for it to drop.

The only difference between the two computers is that I added half a GB RAM to the one that is still quick. But that wouldn't really explain why this one is slowing because it's been quick for over a year.

I checked and the file usage still has 60% available.

Any ideas what might be slowing it down and what I might do to get it back to being quick?

Thanks!

A Question On Blkid

Hi,

On fedora20, when I execute the blkid -L command I receive the following message:
Quote:
blkid: option requires an argument -- 'L'
blkid from util-linux 2.24.2 (libblkid 2.24.0, 24-Apr-2014)
Usage:
blkid -L <label> | -U <uuid>
...
But I have seen that people have an output like the image as enclosed.

Please let me know How I can fix blkid -L to show a similar result for me.

Centralize Report In Linux

Dear Friends ,

I have more that 20 linux server running into my environment . It is very difficult for me to take system report like ( Disk usage, user session information etc) . So I want to prepare a centralized report on a linux server so that I can take the following report :

1) Disk usage (df -h)
2) Session Login/Logout report (lastlog/last)

Is there any available tool in linux to prepare it or give me a good idea to manage it .

Silly Memory Question

Hello,

So I'm not sure if this is a real issue, my understanding is that when a system reboots the virtual memory is dumped in the process. Is there some configuration that would keep the memory intact after rebooting? I'm on RedHat 6 enterprise server, and I just need to make sure that virtual memory is cleared upon reboot. I'm not sure where to look to make sure this is happening.

thank you.

Samsung R40 Laptop Upgrade?

I don't know if anyone can help with this question, but I have an old Samsung R40 Laptop which used to run Windows XP. The specs show that it will not upgrade to Windows 7,8 or any other OS beyond XP. Yesterday I wiped the HDD clean and installed Linux Mint 17.1 Cinnamon which looks good and runs a little slowly but without problems. The Laptop is in good condition therefore I thought I would upgrade it by adding more memory to speed it up. The Memory installed is 2x512mbs PC2-3200S-333 DDR2 200pin, unfortunately I have not been able to obtain any. I would like to double the memory to 2x1gb (2056mbs). If anyone knows for certain where I can get this memory (or Compatible) in the UK or Europe I would be most grateful.

Thanks,

gael.