Linux-process management and system monitoring

Source: Internet
Author: User
1. list all processes in the current system. Which of the following processes did you start in the system? Highlighted. the init process was first started.

1. list all processes in your current system. Which of the following processes did you start in the system?

Highlighted. the init process was first started.


2. list the processes that occupy the highest memory in the current system. VcD4KPHA + yOfNvLjfwcHQ0M6qtbHHsM + 1zbPW0NW808PE2rTm1 + 6437XEvfizzDwvcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140415/2014041509184326.jpg" alt = "\">

3. list the three kernel threads in the current system.

The information in the COMMAND column is enclosed in [] as the kernel thread)


4. list all processes in the current system, and indicate which processes have higher priority and what are the characteristics of these processes?

The smaller the number in the NI column, the higher the priority of the process. most of these processes are kernel processes.


5. list some daemon in the current system and their PID and nice values.

, Where the TTY column value is '? All are daemon processes.


6. attach a USB flash drive or a CD to list all processes associated with the device.


7. please refer to some typical processes to explain: Which of these daemon processes have a higher priority and which processes have a lower priority. what kind of processes have a lower priority? What kind of process has a higher priority?

, TTY column '? 'Processes are daemon. the smaller the value of the NI column, the higher the priority of the process. It can be seen that the kernel process has a higher priority and the common daemon process has a lower priority.


8. use the nice program to start three vi programs. nice is 5, 10, and 15 respectively. observe the priority of these three vi programs. what is the relationship between nice value and process priority? Or, if the nice value increases by 1, will the priority value also increase by 1 or more? (You can use the renice command to constantly adjust the nice value of the process to obtain the actual rule ).

We can see from the experiment results below that the priority value increases by 1 for every nice value increase, but not every time you modify nice values, they increase or decrease the corresponding priority values. However, the priority value always increases or decreases with the nice value.




9. start the vi editor, transfer it to the background, call the foreground, and exit vi.


10. start the vi editor, transfer it to the background, and then kill the job.


11. start the two vi editors and call them to the background to check which jobs are being executed.


12. after obtaining the ls command help manual, transfer it to the background, transfer it to the foreground, and exit the manual.


13. create files a and B, and start vi to edit them. At the beginning, file a is required to be executed on the foreground, and file B is executed on the background. Enter some text in file a, switch it to the background, and then transfer file B to the foreground. Finally, the vi process that opened file a is killed, and file B is saved and the vi process is exited.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.