Re: Process States Explanation
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fr0zen wrote: Where can I get a good list of what each process state means? I have searched the manual pages and handbook and have not been able to find answers or explanations for what states such as pfault mean. I know they are linked to the systemcalls, but how can I get more info about this? Any information, pointers, or feedback would be greatly appreciated. Thanks pfault = page fault = grab a page from the next layer of memory, perhaps? Wiki page: (http://en.wikipedia.org/wiki/Page_fault). - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFhpKLEnKyINQw/HARAn0LAJ4vglDhzrT9/tL+3902qenbkUx+kgCfTET5 BGTM/FWwGd9IHHoQ5o3d78U= =gUyX -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Process States Explanation
In response to Fr0zen [EMAIL PROTECTED]: Where can I get a good list of what each process state means? I have searched the manual pages and handbook and have not been able to find answers or explanations for what states such as pfault mean. I know they are linked to the systemcalls, but how can I get more info about this? Please wrap you lines around 72 chars or so. Any information, pointers, or feedback would be greatly appreciated. Unfortunately, I don't think there's any such comprehensive resource. However, I would expect that 80% of the time, a google on state freebsd will produce enough information to satisfy you. The other 20% of the time, you'll either need to read the source code or find a helpful developer to explain. Don't hesitate to ask on this list if you come across a state you can't find information on. -- Bill Moran Collaborative Fusion Inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Process States Explanation
[Format recovered--see http://www.lemis.com/email/email-format.html] Single line paragraph On Monday, 18 December 2006 at 1:06:13 -0600, Fr0zen wrote: Where can I get a good list of what each process state means? That depends on what you mean by process state. The real definition is in /usr/include/sys/proc.h, but there are now only three states: enum { PRS_NEW = 0,/* In creation */ PRS_NORMAL, /* threads can be run. */ PRS_ZOMBIE } p_state; /* (j/c) S* process status. */ Maybe you mean the thread state, also described in the same file, but I doubt it. There are two other possibilities: - The information reported by ps(1) in the STAT column. This is described, not surprisingly, in the man page ps(1). - The information reported by ps(1) in the MWCHAN column. This is a name passed by a part of the kernel when it sleeps, so any process with a value in MWCHAN is sleeping. The names are frequently associated with the name of the function doing the sleeping. In general, you need to understand the kernel code to make a lot of sense of them. Still, if you do a 'ps al' you'll see a number of names again and again: ttyin Waiting for character input select Waiting for a select() to complete waitWaiting for something to happen, possibly time limited (= 1 second) nanslp Waiting for 1 second. Maybe we should write up some of these. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. pgp7RI8dVjj20.pgp Description: PGP signature
Re: Process States Explanation
Fr0zen wrote: Where can I get a good list of what each process state means? It's not standardised - every kernel developer and device driver writer can introduce whatever states he needs. signature.asc Description: OpenPGP digital signature