General :: Top Command Usage ?
Aug 11, 2009Does top command find out cpu time and process time for an interval and then calculates the process's cpu usage
eg: process time(interval 5sec)/cpu time (interval 5 sec)*100 %
Does top command find out cpu time and process time for an interval and then calculates the process's cpu usage
eg: process time(interval 5sec)/cpu time (interval 5 sec)*100 %
I'm need how to use the man & cat commands in red hat linux
View 2 Replies View RelatedUnder SuSE, (Mem: 31908592k total, 31421504k used,) how do i know which process or program using my memory?
View 2 Replies View RelatedIm trying to list the cpu usage of all process that have a cpu usage of 10% or more. Im not interested in the lower usages. Im using the top command and can get a list of all the cpu usage for all the process but cant only get the processes with 10% or more. I'd want these processes sent to a new file. Would I be able to cat the cpu usages and PID into a file?
View 8 Replies View Relatedi want to use the command at to execute a script on a specific time FOR EXAMPLE :at 12:30pm but the script does not have to ececute at all, I DIT IT BUT THE SCRIPT EXECUTES EACH 12:30pm (that'sy problem) i want to write a script that will execute each two months from a specific time . for example: from january 12, 2010 the script has to run before march 12,2010
View 5 Replies View RelatedIn Red Hat, suppose if root user wishes to give a privilege to run the fdisk command to a user named sam.And he makes appropriate configuration changes in /etc/sudoers file. Now when sam wishes to run the fdisk command, then he has to issue:
Code:
[sam@system43~]$sudo /sbin/fdisk -l
Password: But in ubuntu, after the same configuration being done, what sam needs to do is:
Code:
[sam@somesystem43~]$sudo fdisk -l
Password: ***
That means, in ubuntu the user need not type the full path of the command. I wish to know how can I make red hat system work like ubuntu as far as the sudo usage is concerned.
how to Check the disk usage of different linux servers using df -h linux command. My host server is 66.50.100.1, I can check its disk usage by using df -h command. I got my disk usage. Now using my host server Im going to check the server 66.50.100.3 disk usage. Is its possible to check the disk usage of 66.50.100.3 using my host server?
View 4 Replies View RelatedI have a debian linux on my server. My disk space is only 10GB. When I check the space usage with discus program, it says:
Mount Total Used Avail Prcnt Graph
/ 9.39 GB 8.30 GB 1.10 GB 88.3% [*********-]
+ib/init/rw 124.3 MB 0 KB 124.3 MB 0.0% [----------]
/sys 0 KB 0 KB 0 KB 0.0% [----------]
/dev 120.1 MB 92 KB 120.0 MB 0.1% [----------]
/dev/shm 124.3 MB 0 KB 124.3 MB 0.0% [----------]
But when I use this command:
du / --max-depth=0
It says:
1860864 /
Why the stats of discuss is not like du command?
Is there a command to check specific processes that's using the most IO/disk usage? I know sar and ps but I want more specific details on IO on individual processes
View 5 Replies View RelatedI was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.
View 14 Replies View RelatedIs there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
View 2 Replies View RelatedIn my server java based application is running and java usage showing some time 300% of usage in top command. on that time java application is getting some types errors. at that time i checked vmstat and sar commands also but they showing the free CPU. My server configuration as given below
Quote:
Processor Intel(R) Xeon(R) CPUX5670 @ 2.93GHz
No fo Cores 8
Ram :64GB
[code]....
Is it possible to narrow down the ram command to give me JUST the free ram? Both commands that I know give me much more information that I would like to log.
Code:
free -m
This line gives me this. I really only want the one under "free"
Code:
total used free shared buffers cached
Mem: 1262 612 649 0 250 114
-/+ buffers/cache: 247 1014
Swap: 4010 6 4003
Code:
cat /proc/meminfo
This line gives me this. I really only want "MemFree"
Code:
MemTotal: 1292372 kB
MemFree: 636088 kB
Buffers: 279032 kB
Cached: 118768 kB
SwapCached: 532 kB
Active: 191408 kB
Inactive: 324684 kB .....
The command time shows the time taken by a command to complete. Is there a command that shows the change in disk usage caused by a command? I would like to know how large a package is when I install it from source.
View 2 Replies View Relatedis there a command that shows current network usage, similar to the way htop shows memory and processor usage?
View 3 Replies View RelatedI'm monitoring all kind of things like ( Mem, network, cpu, IOPS,..) But still not found a command where i can see the CPU usage but in MHZ ( or Hz). Using top or looking into /proc/cpuinfo doesn't give me the info i want.
View 4 Replies View Relatedthe basic usage of lsof and fuser command in linux
View 1 Replies View RelatedI regularly use 'df -h' to check usage on each of my primary directories and mount points.
I'm currently somewhat confused by disk usage within my filesystem, so I'd like to do the following:
Display directory size of all, or say, the 10 largest, subdirectories to a specified directory. So, if I passed the root (/) directory, output would list the subdirectory of / with the largest disk usage first and its associated disk usage listed in human readable format (either M or G suffix as appropriate), followed by the subdirectory and usage for the second largest directory and so on.
Can anyone suggest a command or series of commands to do this?
When at the console, what is the command (if there is one) to determine memory usage (used/free) on the hard drive that is being used for one's OS?
View 2 Replies View RelatedI want to rename some files in one directory and found the command 'rename' most appropriate.
Changing the file extension is easy since there are lot of examples for this.
But now I want to rename my files like this:
'somePrefix_blablabla.ext' --> '0_blablabla.ext'
'somePrefix_blablablablabla.ext' --> '0_blablablablabla.ext'
I DON'T want an incrementation, just the leading prefix '0_'
correct perl expression syntax for this?
I'm running into a problem where my system is running out of disk space on the root partition, but I can't figure out where the runaway usage is. I've had a stable system for a couple of years now, and it just ran out of space. I cleaned some files up to get the system workable again, but can't find the big usage area, and I'm getting conflicting results.For example, when I do a df it says I'm using 44GB out of 58 GB:
Code:
[root@Zion ~]# df -h
Filesystem Size Used Avail Use% Mounted on
[code]....
I usually use "top" command to check the resource usage , it is very good and simple method to know the status ( loading , CPU , memory usage ), but we have many servers so we can't check the servers frequently , so we can't find the problem before the problem happens
Any method / script that I can implement to send us a alert mail if the resource usage reach a specific level , for example , if the CPU usage reach 90% , then send us a alert mail.
I am sure that all of us know the result of top command in linux. i want to get the value that the top command return as CPU usage, memory usage. so how do i do(programming relation)?
View 3 Replies View RelatedI've come across a really strange issue with one of my RHEL servers. The "free" command shows that 7019 MB of memory are actually in use by my system, but when summing up the actual usage (or even virtual usage like the example below) it doesn't add up - the sum is far less than what is reported by "free":
Code:
[root@server1 ~]# free -m
total used free shared buffers cached
Mem: 12011 7946 4065 0 4 23
-/+ buffers/cache: 7919 4092
[code]....
I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns.
However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?
If I, using sar or vmstat, found that there is a CPU load on my Linux box. How can I know the top processes consuming the CPU?
View 9 Replies View RelatedI wonder to know the command or the procedure to get the overall CPU utilisation in linux. I have used top, iostat, mpstat but the outputs are not the way i needed. Is it possible to get the output like...
CPU usage: .....% or something like that.
I am running Slackware 13.0. I am aware of free -m, vmstat, top, etc. However, none of these programs display how much ram each program is using. Is there a program that displays how much ram each program is using? I run a headless so I'd need a program that runs in CLI.
I know that top command shows %MEM (only two programs were using 0.1%MEM) but after running free -m I only have a total of 400 MB ram left out of my 1.5 GB of ram. Where is all that lost ram?
my linux bos red hat Ent 5.0 is reporting CPU usage 100% for the service/agent cimserver.basically is slows down my system and I have to kill it so my system is OK again.my question is Can I set the CPU usage for this service? I mean can I set it to use only 4% or 10% of my CPU? or any other way to troubleshoot this 100% CPU usage. Since I've uninstalled and reinstall the agent and same issue.is it possible to set the CPU Usage?
View 5 Replies View RelatedI am a bit worried about my linux vserver box. No more memory is left. To investigate this issue, i was looking at "top". But it deeply confuses me. It seems that no more memory is left, altough the process list in top never adds up to 100%
[Code]...