Here is another useful command to count total process/thread is running.
When run ps aux... indeed can get all the running process..
# ps aux | grep httpd
But the list is too long..
Therefore.. have a try use pgrep..
# pgrep httpd
Can see all the list are the process id for the httpd process.
Then to count how much thread had been running by httpd..
# pgrep httpd | wc -l
Total process/thread is show up.
Wednesday, January 13, 2010
Tuesday, January 12, 2010
Check RAM slot in Linux using dmidecode..
Sometimes.. when a server is running..
It is impossible to check, how many RAM slot still available on this server..
Is quite hard to identify the hardware availability without open up the chasing..
I found out, there is a command called "dmidecode"..
Where it can be grab mostly the information you need..
When run
# dmidecode
can see the server chasing information such as server tag, server model, product model and more...
Let back to our main purpose..
# dmidecode -t -17 | grep Size
to can view the RAM size that been installed and the slot not yet installed RAM.
To check the maximum RAM capacity can installed..
# dmidecode -t 16
Sometimes, may face problem with the command such as No such file or directory..
Which may cause by some module not installed or different distro.
Therefore, ignore the -t 17 or -t 16 when execute and add pipe along with keywords..
# dmidecode | grep Size
same thing can be view, just with extra information which you may not need..
# dmidecode | grep Maximum
Sometimes.. you may forget about the case sensitive letters..
Therefore add the -i to ignore the case sensitive.
# dmidecode | grep -i size
output also same as what you need.
dmidecode can retrieve a lot data..
RAM model, speed also can be retrieve...
It do a really handy works for System Engineer when it come to upgrade devices..
It is impossible to check, how many RAM slot still available on this server..
Is quite hard to identify the hardware availability without open up the chasing..
I found out, there is a command called "dmidecode"..
Where it can be grab mostly the information you need..
When run
# dmidecode
can see the server chasing information such as server tag, server model, product model and more...
Let back to our main purpose..
# dmidecode -t -17 | grep Size
to can view the RAM size that been installed and the slot not yet installed RAM.
To check the maximum RAM capacity can installed..
# dmidecode -t 16
Sometimes, may face problem with the command such as No such file or directory..
Which may cause by some module not installed or different distro.
Therefore, ignore the -t 17 or -t 16 when execute and add pipe along with keywords..
# dmidecode | grep Size
same thing can be view, just with extra information which you may not need..
# dmidecode | grep Maximum
Sometimes.. you may forget about the case sensitive letters..
Therefore add the -i to ignore the case sensitive.
# dmidecode | grep -i size
output also same as what you need.
dmidecode can retrieve a lot data..
RAM model, speed also can be retrieve...
It do a really handy works for System Engineer when it come to upgrade devices..
Subscribe to:
Posts (Atom)