Sunday, April 11, 2004

Process information

A few interesting things I've learned about getting information on currently running processes:


  • If you have the PROCFS mounted (which I think is normally the case), you can look in /proc. This contains a bunch of subdirectories corresponding to the PID of the currently running processes. Inside each of the directories is a bunch of files with pertinent information. I haven't yet begun to look closely at these, but I shall! Here's the Procfs manpage:

    FreeBSD Hypertext Man Pages: procfs


  • The command to get kernel information, esp. about its currently running condition is vmstat:

    FreeBSD Hypertext Man Pages: vmstat



  • The following port looks to be a nice utility for getting process info as well. Perhaps it even parses the above files?

    Port description for sysutils/pmap




No comments:

Post a Comment