There is no direct communication between apache and the OS, but there is some point in the lifespan of the process that the OS is told to update the /proc/$pid/stats file with the cpu usage of the process and any child processes... Whatever this trigger may be, it does not occur until the apache process is reset and waiting for the next request to come in. I think if I could find out what triggers that update, I could force an update of the stats before the end of the request, and see the cpu usage. | [reply] |