Re: Nagios and threads

2005-06-22 Thread Peter Edwards
On 6/22/05, Kamal R. Prasad <[EMAIL PROTECTED]> wrote: > [snip] > > at least some assumptions that the child won't be > > doing much before > > execing or exiting. (But Im sure one of the > > The child process should be able to call any system > calls it likes -without assuming that pthreads from

Re: Nagios and threads

2005-06-22 Thread Peter Edwards
On 6/20/05, Charles Sprickman <[EMAIL PROTECTED]> wrote: > Hello, > > Just curious if there's any regulars here who would like to help Ethan > out: > [snip] > > ... It happens when the main thread forks to execute an active > check. On the second fork to create the grandchild, the grandchild is

Re: occasional ECONNREFUSED when connect()ing.

2005-02-19 Thread Peter Edwards
On Fri, 18 Feb 2005 16:18:41 +0300, Deomid Ryabkov <[EMAIL PROTECTED]> wrote: > I have a strange case of occasional refused connect()'s. > The system is running 4.10-STABLE. > > This was originally reported by one of our developers. > The test script he provided is a simple Perl script that repeat

Re: malloc vs ptmalloc2

2005-02-15 Thread Peter Edwards
On Mon, 14 Feb 2005 08:04:50 -0500, David Schultz <[EMAIL PROTECTED]> wrote: > Right, databases, language runtimes, and the small set of other > applications for which it really matters usually have their own > special-purpose allocators. I was counting on that when I said > that replacing malloc

Re: seg fault on kse_release () (fwd)

2005-01-26 Thread Peter Edwards
On Tue, 25 Jan 2005 14:04:45 -0800, Julian Elischer <[EMAIL PROTECTED]> wrote: > > > Jose Hidalgo Herrera wrote: > > >The line causing the SEGFAULT is > >rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t); > > > >Why?, because t is declared as: > >int t; > >then you say: > >args for s

Re: seg fault on kse_release () (fwd)

2005-01-26 Thread Peter Edwards
On Mon, 24 Jan 2005 14:27:53 -0800 (PST), Yan Yu <[EMAIL PROTECTED]> wrote: > Hi, all, I have a newbie Q: > I am trying to use creating large number of threads and allocting > memory to stress the system. > My user program causes SEG fault in the kernel code, kse_release () in > kern_kse.c. >

Re: NFS + VM question

2004-10-16 Thread Peter Edwards
On Fri, 15 Oct 2004 13:49:48 +0100, David Malone <[EMAIL PROTECTED]> wrote: > On Thu, Oct 14, 2004 at 04:27:38PM +0200, Oliver Fromme wrote: > > On the other hand, the kernel should know that the mounts > > come from the same NFS source, so it might actually be able > > to handle it efficiently (i.

Re: make installworld DESTDIR=foo troubles

2003-12-12 Thread Peter Edwards
Marco Molteni wrote: Makoto Matsushita wrote [2003-12-12]: molter> what am I missing? It seems that you forget to set PATH environment variable. As you know, "env -i" does not pass any environment variable to child process if any other variables are explicitly set. Hi Makoto-san, if you

Re: rfork problem

2003-11-04 Thread Peter Edwards
David Schultz wrote: On Tue, Nov 04, 2003, Igor Serikov wrote: David, Is it okay to have a condition that can be created by a mortal user and then cannot be changed by the root? The waiting process cannot be killed and would keep "waiting" till system reboot. Aah, I see. No, it's not

Re: real vs. avail memory

2003-10-19 Thread Peter Edwards
David Schultz wrote: On Sun, Oct 12, 2003, Dag-Erling Smrgrav wrote: I've gotten used to the fact that there is a small discrepancy between real and available memory, but I was surprised to see the following in dmesg on a new P4 system: real memory = 1073676288 (1023 MB) avail memory = 1037799

Re: getfsent(3) and spaces in fstab

2003-08-06 Thread Peter Edwards
On Tue, 2003-08-05 at 11:05, Simon Barner wrote: > Hi, > > > Check PR 37569: This bugged the hell out of me also, so I created a > > patch to allow enclosing the device name in quotes. The PR was logged > > over a year ago: I can't remember the details, but the source has been > > sitting silently

Re: getfsent(3) and spaces in fstab

2003-08-05 Thread Peter Edwards
Hi, Check PR 37569: This bugged the hell out of me also, so I created a patch to allow enclosing the device name in quotes. The PR was logged over a year ago: I can't remember the details, but the source has been sitting silently in my tree and working since then. Whatever way the problem is resolv

Re: wait()/alarm() race condition

2003-03-31 Thread Peter Edwards
> Greetings, > > I have a loop which calls wait(), and I want another function to be > called > as close to once per minute as possible. Pseudo code: > [snip example] > > My concern is there is a small possibility that the alarm signal is > delivered after the if() but before the wait. So it is

Re[2]: dlinfo() from sunOS, _DYNAMIC from Linux: did we have something like this?

2002-12-19 Thread Peter Edwards
_WORD_SIZE == 32 #define HAVE_ELF32_DYN 1 #define HAVE_ELF64_DYN 0 #else #define HAVE_ELF64_DYN 1 #define HAVE_ELF32_DYN 0 #endif .. and cross your fingers before compiling. -- Peter Edwards. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: A quick gdb help

2002-11-12 Thread Peter Edwards
I tend to avoid using "set", and use "print", with an assignment expression: eg "print i = 1" or "p i = 1". It removes any namespace conflicts between variables in the target process and gdb settings. -- Peter. > I need to set a variable value in gdb: > > (gdb) set xyz = 1 <- works > (gdb) s

Re: Command used to trace the stack of a process

2002-10-29 Thread Peter Edwards
Is /usr/ports/sysutils/pstack what you're looking for? -- Peter. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: ptrace problem

2002-06-11 Thread Peter Edwards
gt; suspended. Valid solution/workaround seems to be in calling > PT_CONTINUE with sigcont, and PT_DETACH after it. > > Example is attached. Please cc me a reply:) > Thanks Does the patch in kern/35175 fix the problem? -- Peter Edwards, Openet Telecom. To Unsubscribe: se

interaction between wait(2), ptrace(2), and rfork(2) with flags |= RFLINUXTHPN

2002-06-10 Thread Peter Edwards
Hi, kern_exit.c:wait1() has the following lines in -STABLE: > if ((p->p_sigparent != SIGCHLD) ^ ((uap->options & WLINUXCLONE) != 0)) > continue; As it is, if you ptrace(PT_ATTACH) to a process started with rfork(flags|RFLINUXTHPN), and do a waitpid() as you normally would, this causes

Re: A weird disk behaviour

2002-03-06 Thread Peter Edwards
Zhihui Zhang wrote: > ... I also do not read anything during the partial block write, > and I think the disk controller should not do that either. If you do a partial block write, surely at some point the block must be read in order to preserve that segment of data you are _not_ overwriting?

ptrace() bug?

2002-02-18 Thread Peter Edwards
Hi, I recently wrote a program that was using ptrace() to suspend a process, and resume it later. Maybe ptrace just isn't used enough, or maybe I just don't get all the reasons behind why it's implemented the way it is, but it seems to be somewhat buggy. (I'm bringing this up on -hackers rather t

Re: Solaris /usr/proc/bin/pstack functionality?

2002-01-14 Thread Peter Edwards
I've submitted PR33874 that implements a version of pstack for FreeBSD. (er, actually due to "difficulties" with our mail server, it's logged twice, the second being 33873: can someone delete one of them?) Jos, if its still of use to you, can you see if it works? Bernd Walter wrote: > > On Thu,

Re: dir-listing bug in linux-emulation

2000-10-28 Thread Peter Edwards
Hmm, It appears, on second look, a little more complex. The cookies are used properly in most places, but the fix was introduced in 1.36 breaks it. I understand what's going on now, and I'll try a for a more complete patch... Watch this space! -- Peter. Peter Edwards wrote: > >

Re: dir-listing bug in linux-emulation

2000-10-28 Thread Peter Edwards
Hi, Here's a patch that fixes the problem for me. can someone review and possibly commit it? Here's my understanding: The data returned by VOP_READDIR is not neccessarily the same as that consumed from the directory vnode. linux_getdents fills in a "doff" field in the linux_dirent structure usi

Re: mmap cdev function in device drivers

2000-05-09 Thread Peter Edwards
Hi, Just trying to take some of the aforementioned "magic" out of i386_btop / vtop :-) >return( atop(vtophys(bktr->bigbuf) + offset) ); atop (I assume) stands for "address to page" (given a pointer, give the number of the page it is in) vtophys is "virtual to physical". (given a pointer in a

Re: Why not gzip iso images?

2000-03-15 Thread Peter Edwards
Paul Robinson wrote: > I think this saving shows a little respect > and concern for the less fortunate home user stuck with a 56K modem paying > $x/hour where x can be anywhere between 0.5 and 5... Sorry, can't resist. Given (my) local call rates, if I started downloading the 3.4 ISO image and di

Re: PCI programming woes.

1999-08-19 Thread Peter Edwards
"David E. Cross" wrote: > [snip] > Take your average run-to-the mill PCI network driver... like FPA or FXP. Now > look for the attach routines... there are *2* of them, with the exact same > function name, and different arguments?!?! > > Huh, what is going on here? Help? In if_fxp.c, goto the

Re: PCI programming woes.

1999-08-19 Thread Peter Edwards
"David E. Cross" wrote: > [snip] > Take your average run-to-the mill PCI network driver... like FPA or FXP. Now > look for the attach routines... there are *2* of them, with the exact same > function name, and different arguments?!?! > > Huh, what is going on here? Help? In if_fxp.c, goto the

Re: amandad zombies (fwd)

1999-07-21 Thread Peter Edwards
Sounds like (the already fixed) http://www.freebsd.org/cgi/query-pr.cgi?pr=10468 Snob Art Genre wrote: > I will probably send-pr this, do you have anything to add to what I > posted before I do so? To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body

Re: amandad zombies (fwd)

1999-07-21 Thread Peter Edwards
Sounds like (the already fixed) http://www.freebsd.org/cgi/query-pr.cgi?pr=10468 Snob Art Genre wrote: > I will probably send-pr this, do you have anything to add to what I > posted before I do so? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of

Re: speed of file(1)

1999-07-21 Thread Peter Edwards
A quick look at the source reveals: A MAXMAGIS constant in file.h that estimates a limit of 1000 lines in magic. (The real number is 4802) An array sized on MAXMAGIS, that is reallocated every ALLOC_INTR lines of magic once MAXMAGIS is exceeded. The patch updates MAXMAGIS to 5000 (give a bit of

Re: speed of file(1)

1999-07-21 Thread Peter Edwards
A quick look at the source reveals: A MAXMAGIS constant in file.h that estimates a limit of 1000 lines in magic. (The real number is 4802) An array sized on MAXMAGIS, that is reallocated every ALLOC_INTR lines of magic once MAXMAGIS is exceeded. The patch updates MAXMAGIS to 5000 (give a bit of

Re: xl driver for 3Com

1999-06-01 Thread Peter Edwards
Dennis wrote: > For "Fairness" gaps in between frames are better > as you approach capacity of your wire. Isn't there some ethernet requirement (implemented on the NIC) that a transmitter holds off the wire a little to give other NICs enough time to notice there's nothing being transmitted? The