How to run program or process on specific CPU cores on Linux

As multi-core CPUs become increasingly popular on server-grade hardware as well as end-user desktop PCs or laptops, there have been growing efforts in the community (e.g., in terms of programming models, compiler or operating system support) towards developing applications optimized for multi-core architecture. One operating system (OS) support often exploited to run performance-critical applications on […]
Continue reading…

 

How to checkpoint and restore a Linux process

Suppose you have a Linux process running, and want to capture its current snapshot after freezing it. The frozen process is then loaded from the snapshot to resume. Such concept of process checkpointing can be very useful under a variety of circumstances. It can be used for process backup, live migration, faster boot-up service, etc. […]
Continue reading…

 

How to monitor memory usage of a Linux process

When you check memory usage of individual Linux processes, you may often use top command line utility. While top command is a solid program for system monitoring purposes, there are other enhanced versions of top, in terms of user-friendliness. One such tool is called htop. The htop utility is an interactive process viewer for Linux. […]
Continue reading…

 

How to kill multiple processes at once with grep

There are cases where you want to kill multiple processes that match a certain pattern in their command line strings. For example, suppose you want to kill all processes that are running commands with keyword “jppf” in their arguments. $ ps aux | grep jppf xmodulo 3324 0.1 2.9 156524 15176 pts/0 Sl 22:16 0:01 […]
Continue reading…