194Monitoring and maintaining processesH3C Comware V7 is a full-featured, modular, and scalable network operating system based on the Linuxkernel. Comware V7 software features run the following types of independent processes:• User process—Runs in user space. Most Comware V7 software features run user processes. Eachprocess runs in an independent space so the failure of a process does not affect other processes.The system automatically monitors user processes. Comware V7 supports preemptivemultithreading. A process can run multiple threads to support multiple activities. Whether a processsupports multithreading depends on the software implementation.• Kernel thread—Runs in kernel space. A kernel thread executes kernel code. It has a higher securitylevel than a user process. If a kernel thread fails, the system breaks down. You can monitor therunning status of kernel threads.Displaying and maintaining processesCommands described in this section apply to both user processes and kernel threads. You can executethese commands in any view.The system identifies a process that consumes excessive memory or CPU resources as an anomaly source.To display and maintain processes (in standalone mode):Task CommandDisplay memory usage. display memory [ slot slot-number [ cpu cpu-number ] ]Display process state information. display process [ all | job job-id | name process-name ] [ slot slot-number[ cpu cpu-number ] ]Display CPU usage for allprocesses. display process cpu [ slot slot-number [ cpu cpu-number ] ]Monitor process running state. monitor process [ dumbtty ] [ iteration number ] [ slot slot-number [ cpucpu-number ] ]Monitor thread running state. monitor thread [ dumbtty ] [ iteration number ] [ slot slot-number [ cpucpu-number ] ]For detailed information about the display memory [ slot slot-number ] command, see FundamentalsCommand Reference.To display and maintain processes (in IRF mode):Task CommandDisplay memory usage. display memory [ chassis chassis-number slot slot-number [ cpucpu-number ] ]Display process state information. display process [ all | job job-id | name process-name ] [ chassischassis-number slot slot-number [ cpu cpu-number ] ]Display CPU usage for allprocesses.display process cpu [ chassis chassis-number slot slot-number [ cpucpu-number ] ]