Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Andrew Thompson wrote: On Mon, Apr 03, 2006 at 01:57:17AM -0300, Marc G. Fournier wrote: On Mon, 3 Apr 2006, Andrew Thompson wrote: On Mon, Apr 03, 2006 at 01:23:59AM -0300, Marc G. Fournier wrote: in kern/kern_jail.c, I can see the prison_check() call ... wouldn't one

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Scott Long
Matthew Jacob wrote: I must have missed something here. What's the problem that causes contigmalloc to be called here? If this is to do with 4GB of memory, that was fixed in -CURRENT over a month ago. He's using 6.0-RELEASE. Scott ___

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Ganbold
Kris Kennaway wrote: On Mon, Apr 03, 2006 at 02:27:31PM +0900, Ganbold wrote: Kris Kennaway wrote: On Mon, Apr 03, 2006 at 12:56:57PM +0900, Ganbold wrote: Here is dmes.boot and pciconf output on FreeBSD-6.0-RELEASE. Boot takes 3-4 minutes after da0: 140014MB (286749488 512

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Kris Kennaway
On Mon, Apr 03, 2006 at 03:15:54PM +0900, Ganbold wrote: Kris Kennaway wrote: On Mon, Apr 03, 2006 at 02:27:31PM +0900, Ganbold wrote: Kris Kennaway wrote: On Mon, Apr 03, 2006 at 12:56:57PM +0900, Ganbold wrote: Here is dmes.boot and pciconf output on

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Matthew Jacob
On Mon, 3 Apr 2006, Scott Long wrote: Matthew Jacob wrote: I must have missed something here. What's the problem that causes contigmalloc to be called here? If this is to do with 4GB of memory, that was fixed in -CURRENT over a month ago. He's using 6.0-RELEASE. A reason to allow an

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Scott Long
Matthew Jacob wrote: On Mon, 3 Apr 2006, Scott Long wrote: Matthew Jacob wrote: I must have missed something here. What's the problem that causes contigmalloc to be called here? If this is to do with 4GB of memory, that was fixed in -CURRENT over a month ago. He's using 6.0-RELEASE.

[amr] raid config went from RAID5 to RAID0 ?

2006-04-03 Thread Rutger Bevaart
I just noticed something very strange on one of our Dell PE1750 servers. It is running FreeBSD 4-STABLE on dual CPU's with the embedded Dell Raid controller (amr driver). Attached are 3 disks of 145GB. On a RAID5 logical drive this gives me ~280GB storage. Up until the last reboot (35 days ago)

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Daniel Eischen
On Mon, 3 Apr 2006, Andrew Thompson wrote: On Mon, Apr 03, 2006 at 01:23:59AM -0300, Marc G. Fournier wrote: taking it off of pgsql-hackers, so that we don't annoy them unnecessarily ... 'k, looking at the code, not that most of it doesn't go over my head ... but ... in

Problem with LSI v3 MegaRAID

2006-04-03 Thread Roman V. Palagin
Hello! Please, somebody take a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=95260 - Roman --- Any opinions in this posting are my own and not those of my present or previous employers. ___

Re: problems with an SATA drive on nVidia3 controller

2006-04-03 Thread Mikhail Teterin
On Sunday 02 April 2006 04:42 pm, Søren Schmidt wrote: = What freebsd version are we talking about here ? (dmesg would have been = nice). 6.1 as of Sunday. dmesg.boot attached. = Have you tried another cable ? Not yet -- I was not there on weekend. I vaguely remember nVidia controllers being

Re: new feature: private IPC for every jail

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/48471 [kernel] [patch] new feature: private IPC for every jail Its an ancient, 4.x patch for having private IPC in a jail ... not sure how hard it would be to bring it up to 6.x / -current standards

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Sun, 2 Apr 2006, Tom Lane wrote: Oops. Here is the problem: kill() is lying by claiming there is no such process as 83699. It looks to me like there in fact is such a process, but it's in a different jail. I venture that FBSD 6 has decided to return ESRCH (no such process) where FBSD

Re: new feature: private IPC for every jail

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Robert Watson wrote: (1) The fact that system v ipc primitives are loadable, and unloadable, which requires some careful handling relating to registration order, etc. For this one, I'm lost at the issue ... if not loaded, jail processes just couldn't attach ... if

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Daniel Eischen wrote: On Mon, 3 Apr 2006, Andrew Thompson wrote: On Mon, Apr 03, 2006 at 01:23:59AM -0300, Marc G. Fournier wrote: taking it off of pgsql-hackers, so that we don't annoy them unnecessarily ... 'k, looking at the code, not that most of it doesn't go over

Re: new feature: private IPC for every jail

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: On Mon, 3 Apr 2006, Robert Watson wrote: (1) The fact that system v ipc primitives are loadable, and unloadable, which requires some careful handling relating to registration order, etc. For this one, I'm lost at the issue ... if not loaded, jail

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Tom Lane
Robert Watson [EMAIL PROTECTED] writes: However, pid's in general uniquely identify a process only at the time they are recorded. So any pid returned here is necessarily stale -- even if there is another process with the pid returned by GETPID, it may actually be a different process that

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Tom Lane wrote: That's a fair question, but in the context of the code I believe we are behaving reasonably. The reason this code exists is to provide some insurance against leaking semaphores when a postmaster process is terminated unexpectedly (ye olde

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Tom Lane
Robert Watson [EMAIL PROTECTED] writes: Maybe I've misunderstood the problem here -- is the use of the GETPID operation occuring within a coordinated set of server processes, or does it also occur between client and server processes? I think it's quite reasonable to argue that a

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Daniel Eischen
On Mon, 3 Apr 2006, Marc G. Fournier wrote: On Mon, 3 Apr 2006, Daniel Eischen wrote: I think the suggestion was to make this EPERM rather than ESRCH to make postgres a bit happier, not remove the check entirely. Im not familiar with that part of the kernel at all, so I cant say what the

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Tom Lane wrote: Robert Watson [EMAIL PROTECTED] writes: Maybe I've misunderstood the problem here -- is the use of the GETPID operation occuring within a coordinated set of server processes, or does it also occur between client and server processes? I think it's quite

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: The problem is that PostgreSQL uses kill(PID, 0) to determine whether or not another process is running when it tries to allocate a semaphore ... for instance, when it starts up, it tries to semget(54320001); ... if that fails, based on the PID

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Tom Lane
Robert Watson [EMAIL PROTECTED] writes: Any multi-instance application that uses unvirtualized System V IPC must know how to distinguish between those instances. Sure. How is PostgreSQL deciding what semaphores to use? Can it be instructed to use non-colliding ones by specifying an

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Robert Watson wrote: On Mon, 3 Apr 2006, Marc G. Fournier wrote: The problem is that PostgreSQL uses kill(PID, 0) to determine whether or not another process is running when it tries to allocate a semaphore ... for instance, when it starts up, it tries to

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Peter Jeremy
On Mon, 2006-Apr-03 08:19:00 -0400, Daniel Eischen wrote: I don't really see what the problem is. ESRCH seems perfectly reasonable for trying to kill (even sig 0) a process from a different jail. If you're in a jail, then you shouldn't have knowledge of processes from other jails. I agree in

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Vivek Khera
On Apr 3, 2006, at 12:37 PM, Tom Lane wrote: semaphore keys on each cycle of life, so you'd have to get fooled by chance coincidence of existing PIDs every time over many cycles to have a severe resource-leakage problem. (BTW, Marc, that's the reason for *not* randomizing the key selection as

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Daniel Eischen
On Tue, 4 Apr 2006, Peter Jeremy wrote: On Mon, 2006-Apr-03 08:19:00 -0400, Daniel Eischen wrote: I don't really see what the problem is. ESRCH seems perfectly reasonable for trying to kill (even sig 0) a process from a different jail. If you're in a jail, then you shouldn't have knowledge

Re: new feature: private IPC for every jail

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Robert Watson wrote: So the question is this: if you load System V IPC support after you start a jail, how do we handle jails that have already started? Do we go out and create new name spaces for jails already started (a problem for method (1), because it implies System V

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Tue, 4 Apr 2006, Peter Jeremy wrote: On Mon, 2006-Apr-03 08:19:00 -0400, Daniel Eischen wrote: I don't really see what the problem is. ESRCH seems perfectly reasonable for trying to kill (even sig 0) a process from a different jail. If you're in a jail, then you shouldn't have knowledge

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Daniel Eischen wrote: On Tue, 4 Apr 2006, Peter Jeremy wrote: On Mon, 2006-Apr-03 08:19:00 -0400, Daniel Eischen wrote: I don't really see what the problem is. ESRCH seems perfectly reasonable for trying to kill (even sig 0) a process from a different jail. If you're in

Re: new feature: private IPC for every jail

2006-04-03 Thread Julian Elischer
Robert Watson wrote: On Mon, 3 Apr 2006, Marc G. Fournier wrote: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/48471 [kernel] [patch] new feature: private IPC for every jail Its an ancient, 4.x patch for having private IPC in a jail ... not sure how hard it would be to bring it up to

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Daniel Eischen
On Mon, 3 Apr 2006, Marc G. Fournier wrote: On Mon, 3 Apr 2006, Daniel Eischen wrote: Or: 3) Run postgres in such a way that it doesn't look for remnant IPC information from other instances (use a per-jail-specific port #?). Postgres has no business cleaning up after

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: That's a fair question, but in the context of the code I believe we are behaving reasonably. The reason this code exists is to provide some insurance against leaking semaphores when a postmaster process is terminated unexpectedly (ye olde

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Kris Kennaway
On Mon, Apr 03, 2006 at 03:42:51PM -0400, Stephen Frost wrote: * Tom Lane ([EMAIL PROTECTED]) wrote: That's a fair question, but in the context of the code I believe we are behaving reasonably. The reason this code exists is to provide some insurance against leaking semaphores when a

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: BTW, Marc, it occurs to me that a workaround for you would be to create a separate userid for postgres to run under in each jail; then the regular protection mechanisms would prevent the different postmasters from interfering with each others' semaphore

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Tom Lane
Stephen Frost [EMAIL PROTECTED] writes: Could this be handled sensibly by using SEM_UNDO? Just a thought. Interesting thought, but I think it doesn't work for the special case where the semaphore's previous owner is actually our same PID --- which is actually the more commonly exercised path,

Re: 6.0 hangs at boot on Toshiba laptop

2006-04-03 Thread Olivier Boudeville
Hello, well I finally gave up trying to install FreeBSD on my Toshiba, after numerous unsuccessful attempts, despite careful changes in the settings, as I mentioned in : http://osdl.sourceforge.net/OSDL/OSDL-0.3/src/doc/web/main/documentation/misc/Toshiba.html#freebsd I however tried to install

Re: FreeBSD 2.2.9 Released

2006-04-03 Thread Polichism
- Original Message - From: Colin Percival [EMAIL PROTECTED] To: Silves [EMAIL PROTECTED] Cc: Peter Jeremy [EMAIL PROTECTED]; 'FreeBSD Current' freebsd-current@freebsd.org; freebsd-stable freebsd-stable@freebsd.org Sent: Saturday, April 01, 2006 11:43 PM Subject: Re: FreeBSD 2.2.9

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: The problem here is actually that two postgres instances are trying to use the same sempahore when they are actually different postgres instances. No, the problem here is that kill(PID, 0) reports that a PID is 'not in use' when, in fact, it is,

Issues with nullconsole in FreeBSD 6.0-p6

2006-04-03 Thread Jonas Bülow
I'm experiencing a really strange problem using nullconsole in FreeBSD 6.0-p6. Briefly, what happens is that the use of nullconsole affects the behavior of the OS negatively, very negatively. There are two different setups with different kernel configurations. They both have console set to

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Tom Lane wrote: Robert Watson [EMAIL PROTECTED] writes: Any multi-instance application that uses unvirtualized System V IPC must know how to distinguish between those instances. Sure. How is PostgreSQL deciding what semaphores to use? Can it be instructed to use

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: Does PGSQL have a way to specify the semaphore ID to use? Yes, changing the port # that the server responds on ... So if you use that setting, do things work as desired? If not, then that's what we should be debugging. Robert N M Watson

Re: new feature: private IPC for every jail

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: On Mon, 3 Apr 2006, Robert Watson wrote: So the question is this: if you load System V IPC support after you start a jail, how do we handle jails that have already started? Do we go out and create new name spaces for jails already started (a

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Stephen Frost wrote: So I think the code is pretty bulletproof as long as it's in a system that is behaving per SysV spec. The problem in the current FBSD situation is that the jail mechanism is exposing semaphore sets across jails, but not exposing the existence of the

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Tom Lane wrote: BTW, as long as we're annoying the freebsd-stable list with discussions of workarounds, I'm wondering whether our shared memory code might have similar risks. Does FBSD 6 also lie about the existence of other-jail processes connected to a shared memory

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Marc G. Fournier wrote: This falls under well,we broke kill() so that it now reports a PID is not in use even though it is, so its has to be the application that fixes it ... and you *still* haven't shown *why* kill() reporting a PID is in use, even if its not in the

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Stephen Frost
* Robert Watson ([EMAIL PROTECTED]) wrote: On Mon, 3 Apr 2006, Stephen Frost wrote: This is certainly a problem with FBSD jails... Not only the inconsistancy, but what happens if someone manages to get access to the appropriate uid under one jail and starts sniffing or messing with the

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Robert Watson
On Mon, 3 Apr 2006, Stephen Frost wrote: This is why it's disabled by default, and the jail documentation specifically advises of this possibility. Excerpt below. Ah, I see, glad to see it's accurately documented. As it has been for the last five years, I believe since introduction of the

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Kris Kennaway
On Mon, Apr 03, 2006 at 06:51:45PM -0400, Stephen Frost wrote: * Robert Watson ([EMAIL PROTECTED]) wrote: On Mon, 3 Apr 2006, Stephen Frost wrote: This is certainly a problem with FBSD jails... Not only the inconsistancy, but what happens if someone manages to get access to the

ATTENTION: Your account has been restricted

2006-04-03 Thread Wells Fargo
[1]Wells Fargo Home Page Wells Fargo Home Page [2]Talking ATM Locations [3]Skip Navigation to go to main content of this page Dear customers: Wells Fargo is constantly working to increase security for all Online Banking users. To ensure the integrity of our online payment system,

Problem with Razer Copperhead (USB-mouse)

2006-04-03 Thread Christian Baer
Good evening, folks! A few hours ago I installed FreeBSD on a new machine. This is the only one I have with a USB-mouse attached (the stated Copperhead) - actually, it's the only machine I have with any type of mouse attached. :-) FreeBSD boots fine and also recognizes the mouse correctly:

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
yOn Mon, 3 Apr 2006, Robert Watson wrote: On Mon, 3 Apr 2006, Marc G. Fournier wrote: This falls under well,we broke kill() so that it now reports a PID is not in use even though it is, so its has to be the application that fixes it ... and you *still* haven't shown *why* kill() reporting a

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Stephen Frost wrote: * Robert Watson ([EMAIL PROTECTED]) wrote: On Mon, 3 Apr 2006, Stephen Frost wrote: This is certainly a problem with FBSD jails... Not only the inconsistancy, but what happens if someone manages to get access to the appropriate uid under one jail and

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Marc G. Fournier
On Mon, 3 Apr 2006, Robert Watson wrote: On Mon, 3 Apr 2006, Marc G. Fournier wrote: The problem here is actually that two postgres instances are trying to use the same sempahore when they are actually different postgres instances. No, the problem here is that kill(PID, 0) reports that a

Re: [HACKERS] semaphore usage port based?

2006-04-03 Thread Stephen Frost
* Marc G. Fournier ([EMAIL PROTECTED]) wrote: On Mon, 3 Apr 2006, Stephen Frost wrote: Running the Postgres instances under different uids (as you'd probably expect to do anyway if not using the jails) is probably the right approach. Doing that and using jails would probably work, just don't

Re: Problem with Razer Copperhead (USB-mouse)

2006-04-03 Thread Anish Mistry
On Monday 03 April 2006 19:37, Christian Baer wrote: Good evening, folks! A few hours ago I installed FreeBSD on a new machine. This is the only one I have with a USB-mouse attached (the stated Copperhead) - actually, it's the only machine I have with any type of mouse attached. :-)

Re: contigmalloc() lameness (Re: boot problem in HP Proliant ML370 G4)

2006-04-03 Thread Ganbold
Kris Kennaway wrote: On Mon, Apr 03, 2006 at 03:15:54PM +0900, Ganbold wrote: Kris Kennaway wrote: On Mon, Apr 03, 2006 at 02:27:31PM +0900, Ganbold wrote: Kris Kennaway wrote: On Mon, Apr 03, 2006 at 12:56:57PM +0900, Ganbold wrote: Here is