Month: May 2010

Find Memory Or RAM And Swap Usage In Linux

RAM plays an important role in the performance of a system. So we should monitor this memory usage to troubleshoot system. free is the basic command to get details of RAM and swap usage. #freeExample :# free total used free shared buffers cachedMem: 3059872 2842016 217856 0 33936 2012684-/+ buffers/cache: 795396 2264476Swap: 2000052 67672 1932380 When you see it’s giving total size, used and free size in bytes. If you want to see in MB specify -m option in free #free -mExample :# free -m total used free shared buffers cachedMem: 2988 2784 203 0 33 1974-/+ buffers/cache: 776 2211Swap: 1953 66 1887 Any other commands to check RAM?The answer for this is yes.1. Use proc file system to get detailed RAM usage of the system. #cat /proc/meminfo2. Use top command to see RAM usage So with top too you can see RAM usage live. Please visit http://www.linuxnix.com for more linux admin...

Read More

How To Find And Remove Core Files In Linux?

What is a”Core file” in Linux?  A running program creates a core file when it crashes/stops abnormally due to some bug. The core file is in massive size which contains all the memory info, crash info which is used for programmers to debug the issue and find a solution and patch the bug. Why are we interested in that core files? Ans: This is because of core file size. As we do monitoring of systems on a daily basis and you observe your disk suddenly is full. You are sure that should not as you already have plenty of space. And you may think how come disk is full though there is no much user activity etc. So core files are one reason which will eat up our disk. We have to check for them when we see sudden disk activity. How to find core files in Linux? We can use find command or locate command after running updatedb command. #find / -name core This find command will search entire filesystem for core files. Once you find them use rm command to remove those files which you feel appropriate. #rm -rf /path/to/your/core How core files got its name? A core dump file gets its name from an old memory technology using tiny magnetic cores for...

Read More

How To Kill Defunct Or Zombie Process?

A "defunct" processes is also known as a "zombie" processes. A Zombie process is referred as dead process which is receding on your system though it’s completed executing. In one shot we can say it’s a dead processes which is still in RAM. This process will be in your process table and consuming your memory. Having more defunct process will consume your memory which intern slows your system. We have to kill the defunct process in order to free RAM and make system stable. Why defunct process are created? Ans : When ever a process ends all the memory used by that process are cleared and assigned to new process but due to programming errors/bugs some processes are still left in process table. These are created when there is no proper communication between parent process and child process. Some FAQ? 1. How to find a defunct process? And : Grep defunct value in ps -ef output #ps -ef | grep defunct 2. How can I kill a defunct process? And : Just use kill command #kill defunct-pid 3. Still not able to kill? Ans : Then use kill -9 to force kill that process #kill -9 defunct-pid 4. Still have an issue in killing it? Ans : Then try to kill it’s parent id and then defunct. #kill parent-id-of-defunct-pid Then #kill -9 parent-id-of-defunct-pid 5. Still having defunct? Ans : If...

Read More
  • 1
  • 2

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.