![]() ![]() vmstat command gives a summary reporting about memory, processes, and paging. Managing virtual memory with vmstatĪnother important command used in Linux process management which is vmstat. The swap level measures the chance to transfer a process from the memory to the swap.Ĭhoosing the accurate swappiness value for your system requires some experimentation to choose the best value for your server. ![]() $ sudo sysctl -wvm.swappiness=50 sudo sysctl -wvm.swappiness=50Ĭhanging the swappiness value using the above commands is not permanent, you have to write it on /etc/nf file like this: $ echo 50 >/proc/sys/vm/swappiness echo 50 >/proc/sys/vm/swappiness Notice: the default value for most distros for this value is between 30 and 60, you can modify it like this: This command shows a value from 0 to 100, this value means the system will use the swap if the memory becomes 70% used. $ cat /proc/sys/vm/swappiness cat /proc/sys/vm/swappiness This command shows the swap size and how much is used: The third value is the available swap for usage which is 3070.įrom the above results, you can say that memory status is good since no swap is used, so while we are talking about the swap, let’s discover what proc directory provides us about the swap. The second value is the used swap which is 0. The first value is the total swap size which is 3070 megabytes. Swapping occurs when memory becomes to be crowded. The output of free command here means 536 megabytes is used while 1221 megabytes is available. The -m option to show values in megabytes.Ĭertificates – Digital Certificates (Summary) One of most used commands in Linux process management is the free command: In server administration, memory management is one of your responsibility that you should care about as a system administrator. The orphan process is a process that still executing and its parent process has died while orphan processes do not become zombie processes. ![]() Zombie Process exists in the process table although it is terminated. ![]() Orphan Process it continues running while its parent process has terminated or finished.ĭaemon Process is always created from a child process and then exit. All processes except process 0 have one parent process.Ĭhild process is created by a parent process. Parent process is a process which runs the fork() system call. There are four common types of processes: Before we start talking about Linux process management, we should review process types. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |