Monday, September 24, 2012

UTLK chapter 3 Process management: self study and extra readings

Hi all,

I have listed some points which should be taken for extra reading and could get you deep into process management



  1. Read more about the TASK_TRACED process state and how each signal sent by the debugger causes program to be in TASK_TRACED.
  2. How does kernel use other stacks in case of 4KB stack when  deeply nested interrupt/exception calls are made?
  3. How does process switching from user to kernel mode changes esp.

UTLK chapter 3 Process management: Assignements

Following are the assignments one can do to get more hands on linux kernel process management. They will give you actual experience of things. Will make to browse through kernel code and process management structures which will help you drastically later when you will thing about the project ideas and in implementation phase.

Assignments:
  1. Write a module to show two siblings(threads) share same address space?
  2. Change max_pid by editing /proc/sys/kernel/pid_max. And write down a module and user space program to test whether changed limit has been applied or not. ps: Do we need to reboot the machine to get this modified limit applied. Also see whether there is limit on process creation per user, so any user could not create large number processes.


Project topics.
How to decide process 

Saturday, September 1, 2012

Initial draft: why me working on Linux process management

From long time ago, when I started working on linux kernel, I had wish to linux process management.
I started reading from book called Linux kernel development by Robert Love. This book contains the chapter process management chapter first. When I started reading this chapter, I subsequently started to write some kernel modules having IOCTL interfaces. As things were working as I coded I got interested in process management. But I had to leave processes behind due to file systems. But I would not have regret if I would have learnt linux file system concepts completely. I do accept that although my final year engineering project was in file systems, except big picture of file systems and VFS I hardly know anything about linux EXT3, EXT4 file systems. Later after completing graduation I should have tried to learn the linux process management completely. I tried, but my efforts were discrete. The only thing which made my mind to try read and know process management repetedly after several failures of knowing it was "Con Kolivas: Australian anesthetist who written linux scheduler as fun in spare time". Later I got interested because his brain fuck scheduler was experimental scheduler in Android.I hardly could read 3rd chapter from LKD completely. But now I am feeling shame on me. So this time I have decided to get through the process management and spend my later time as a Linux process management monk. nice, i will rename my blogs name as a linuxprocessmonk. Hope I will get through this and could help lot of people, give back through kernel as well as kernelnewbies mailing list. Thanks for reading ...... :) will see you soon on mailing list.