Re: FreeBSD 6.2-STABLE apache 2.2.4 = bad performance. Help!

2007-07-20 Thread Stanislav Sedov
On Wed, 18 Jul 2007 23:12:57 +0100 Michael Vaughn [EMAIL PROTECTED] mentioned: Hello everyone, I am contacting -performance, -questions, and -hackers in the hope someone helps me troubleshoot a problem with FreeBSD 6.2 and apache 2.2.4 Try to run truss(1) on any of apache processes and

Re: Path to executable of current process?

2007-07-20 Thread Steve Watt
In [EMAIL PROTECTED], Michael B Allen [EMAIL PROTECTED] wrote: Actually what I'm *really* trying to do is port some code that invokes GDB to do a backtrace and I need to give GDB the path to the executable of the current process (e.g. on linux this is /proc/pid/exe) and the pid of the process to

Re: Path to executable of current process?

2007-07-20 Thread Peter Jeremy
On 2007-Jul-19 22:00:23 -0400, Michael B Allen [EMAIL PROTECTED] wrote: Well I figured out how to get kvm_getargv working. Unfortunately it seems only root can call kvm_open so the faulting process can't backtrace unless it so happens to be running as root (which it's not). Is there any way to

tunefs.8 oddity

2007-07-20 Thread Maxim Konovalov
Hello, after spending a half an hour trying to help a friend of mine to turn soft updates on the root filesystem on I'd like to revert a part of rev. 1.21 just because it makes life of an average sysadmin easier: Index: tunefs.8 ===

Re: tunefs.8 oddity

2007-07-20 Thread Maxim Konovalov
On Fri, 20 Jul 2007, 23:21+0800, Xin LI wrote: Maxim Konovalov wrote: Hello, after spending a half an hour trying to help a friend of mine to turn soft updates on the root filesystem on I'd like to revert a part of rev. 1.21 just because it makes life of an average sysadmin easier:

Re: tunefs.8 oddity

2007-07-20 Thread Xin LI
Maxim Konovalov wrote: Hello, after spending a half an hour trying to help a friend of mine to turn soft updates on the root filesystem on I'd like to revert a part of rev. 1.21 just because it makes life of an average sysadmin easier: Index: tunefs.8

Insufficient locking in log() / kvprintf() / somewhere?

2007-07-20 Thread Romain Tartière
Hello FreeBSD hackers! I recently got some apache problems (maybe just forgetting to restart it after an update, but it is not the interest of this e-mail) and each httpd process was segfaulting as soon as created. I got surprising things like that in my systems log: === begin snippet === pid

Re: Insufficient locking in log() / kvprintf() / somewhere?

2007-07-20 Thread Tom Judge
Romain Tartière wrote: Hello FreeBSD hackers! I recently got some apache problems (maybe just forgetting to restart it after an update, but it is not the interest of this e-mail) and each httpd process was segfaulting as soon as created. I got surprising things like that in my systems log: ===

Re: tunefs.8 oddity

2007-07-20 Thread Stefan Esser
Maxim Konovalov schrieb: On Fri, 20 Jul 2007, 23:21+0800, Xin LI wrote: Maxim Konovalov wrote: Hello, after spending a half an hour trying to help a friend of mine to turn soft updates on the root filesystem on I'd like to revert a part of rev. 1.21 just because it makes life of an

Re: tunefs.8 oddity

2007-07-20 Thread Julian Elischer
Stefan Esser wrote: Maxim Konovalov schrieb: On Fri, 20 Jul 2007, 23:21+0800, Xin LI wrote: Maxim Konovalov wrote: Hello, after spending a half an hour trying to help a friend of mine to turn soft updates on the root filesystem on I'd like to revert a part of rev. 1.21 just because it makes

Re: tunefs.8 oddity

2007-07-20 Thread Stefan Esser
Julian Elischer wrote: Stefan Esser wrote: Maxim Konovalov wrote: On Fri, 20 Jul 2007, 23:21+0800, Xin LI wrote: Any chance that we resolve the bug instead of documenting it? :-) Personally, I have no energy/time for that. It was documented for ages, it is still documented in other BSDs.

Get pid of child that has exited?

2007-07-20 Thread Michael B Allen
Hello, How does one get the pid if a child process that has exited? On other systems this is available in siginfo_t but si_pid seems to be 0. Is that normal? Mike ___ freebsd-hackers@freebsd.org mailing list

Re: Get pid of child that has exited?

2007-07-20 Thread Michael B Allen
On 7/20/07, Michael B Allen [EMAIL PROTECTED] wrote: Hello, How does one get the pid if a child process that has exited? On other systems this is available in siginfo_t but si_pid seems to be 0. Is that normal? Nevermind. I see siginfo_t isn't portable. I'm using waitpid now. Mike

Re: Get pid of child that has exited?

2007-07-20 Thread Warner Losh
How does one get the pid if a child process that has exited? On other systems this is available in siginfo_t but si_pid seems to be 0. Is that normal? wait4, wait3 and waitpid will all return it: If wait4(), wait3(), or waitpid() returns due to a stopped, continued, or terminated