Re: soclose() so-so_upcall() = race?

2008-03-07 Thread Robert Watson
On Fri, 7 Mar 2008, Alexander Motin wrote: As I can see so_upcall() callback is called with SOCKBUF_MTX unlocked. It means that SB_UPCALL flag can be removed during call and socket can be closed and deallocated with soclose() while callback is running. Am I right or I have missed something?

sysctl: good practices and how to deprecate a node

2008-03-07 Thread Jean-Sébastien Pédron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm currently working again on the Synaptics Touchpad support[1] in psm(4). The enable_synaptics() probe function adds a subtree to hw.psm; I didn't changed its behaviour for now. This subtree is created only if: o

libpthread/fork issue

2008-03-07 Thread Marko, Shaun
I'm working on FreeBSD 6.2 and I'm wondering if anybody can help with an issue I've found using fork and threads. The attached program demonstrates the problem. In short, if a process creates a thread, joins the thread, then forks a child process which creates a thread, the child's attempt to

Re: Versioned symbols

2008-03-07 Thread Adriano dos Santos Fernandes
Jeremy Chadwick escreveu: On Thu, Mar 06, 2008 at 11:28:39PM -0300, Adriano dos Santos Fernandes wrote: I want to make versioned symbols as they work in Linux, but I had no success with FreeBSD. This seems quite relevant, specific to RELENG_7. (Said feature isn't available in earlier

Re: Comments on pmake diffs for building on Linux

2008-03-07 Thread Robert Huff
Tom Evans writes: Yup. The proof will be in the pudding, as they say. The proof of the pudding is in the eating, actually. There's no proof actually in the pudding. /pedant Add some brandy, or maybe rum :-) Makes the coding more fun. Maybe not faster or

Re: libpthread/fork issue

2008-03-07 Thread Joerg Sonnenberger
On Thu, Mar 06, 2008 at 09:45:15PM -0600, Marko, Shaun wrote: In short, if a process creates a thread, joins the thread, then forks a child process which creates a thread, the child's attempt to create a thread will cause the program to dump core with the following error message. fork and

Re: sysctl: good practices and how to deprecate a node

2008-03-07 Thread John Baldwin
On Friday 07 March 2008 05:11:17 am Jean-Sébastien Pédron wrote: Hello, I'm currently working again on the Synaptics Touchpad support[1] in psm(4). The enable_synaptics() probe function adds a subtree to hw.psm; I didn't changed its behaviour for now. This subtree is created only if: o

Re: libpthread/fork issue

2008-03-07 Thread John Baldwin
On Thursday 06 March 2008 10:45:15 pm Marko, Shaun wrote: I'm working on FreeBSD 6.2 and I'm wondering if anybody can help with an issue I've found using fork and threads. The attached program demonstrates the problem. In short, if a process creates a thread, joins the thread, then forks a

Preparing an Oracle Database XE port/package -- any tips ?

2008-03-07 Thread Adrian Penisoara
Hi, After having to deploy an Oracle Database XE [1] installation (with Linux 32bit binaries from the official RPM package) on a production FreeBSD 6.2machine I realized it would be very much feasible to produce a FreeBSD port/package for it. I would like to know whether similar efforts have

Re: Preparing an Oracle Database XE port/package -- any tips ?

2008-03-07 Thread Rink Springer
Hi, On Fri, Mar 07, 2008 at 04:36:56PM +0200, Adrian Penisoara wrote: After having to deploy an Oracle Database XE [1] installation (with Linux 32bit binaries from the official RPM package) on a production FreeBSD 6.2machine I realized it would be very much feasible to produce a FreeBSD

Re: Network Throughput between jail and base system

2008-03-07 Thread Wesley Shields
On Fri, Mar 07, 2008 at 12:13:04AM +0200, Stefan Lambrev wrote: Greetings, Ilias Marinos wrote: Hello all, I have a jail to my FreeBSD-STABLE, in which I run some uname -a will be more helpful then FreeBSD-STABLE. services.I have configured and setup this jail using

Re: libpthread/fork issue

2008-03-07 Thread Daniel Eischen
On Thu, 6 Mar 2008, Marko, Shaun wrote: I'm working on FreeBSD 6.2 and I'm wondering if anybody can help with an issue I've found using fork and threads. The attached program demonstrates the problem. In short, if a process creates a thread, joins the thread, then forks a child process which

A (perhaps silly) kqueue question

2008-03-07 Thread Vlad GALU
I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both socket descriptors). As the man page is not pretty clear about it and I don't have my UNP copy

Re: Preparing an Oracle Database XE port/package -- any tips ?

2008-03-07 Thread Ion-Mihai Tetcu
On Fri, 07 Mar 2008 16:14:15 +0100 Alexander Leidinger [EMAIL PROTECTED] wrote: Quoting Adrian Penisoara [EMAIL PROTECTED] (from Fri, 7 Mar 2008 16:36:56 +0200): Hi, After having to deploy an Oracle Database XE [1] installation (with Linux 32bit binaries from the official RPM

Re: soclose() so-so_upcall() = race?

2008-03-07 Thread Andre Oppermann
Robert Watson wrote: On Fri, 7 Mar 2008, Alexander Motin wrote: As I can see so_upcall() callback is called with SOCKBUF_MTX unlocked. It means that SB_UPCALL flag can be removed during call and socket can be closed and deallocated with soclose() while callback is running. Am I right or I

pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread Steven Hartland
Seems if you have package X which depends on package Y which depends on package Z then pkg_add -r X will always fail unless you first :- 1. pkg_add -r Y 2. pkg_add -r Z The failure will be:- pkg_add: could not find package Z ! This happens even though Z exists in the remote source package

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Julian Elischer
Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both socket descriptors). As the man page is not pretty clear about it and I

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Vlad GALU
On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote: Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both socket

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Julian Elischer
Vlad GALU wrote: On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote: Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Vlad GALU
On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote: Vlad GALU wrote: On 3/7/08, Julian Elischer [EMAIL PROTECTED] wrote: Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with

Re: A (perhaps silly) kqueue question

2008-03-07 Thread Robert Watson
On Fri, 7 Mar 2008, Vlad GALU wrote: I see an unusual symptom with one of our in-house applications. The main I/O loop calls kevent(), which in turn returns two events with EV_EOF error set, always for the same descriptors (they're both socket descriptors). As the man page is not pretty clear

Re: Preparing an Oracle Database XE port/package -- any tips ?

2008-03-07 Thread Alexander Leidinger
Quoting Adrian Penisoara [EMAIL PROTECTED] (from Fri, 7 Mar 2008 16:36:56 +0200): Hi, After having to deploy an Oracle Database XE [1] installation (with Linux 32bit binaries from the official RPM package) on a production FreeBSD 6.2machine I realized it would be very much feasible to

Re: Preparing an Oracle Database XE port/package -- any tips ?

2008-03-07 Thread Jonathan Adams
I am defnitely interested in helping in this area if needed. A couple of years ago, I struggled mightily trying to get Oracle running on 5.1 On Fri, Mar 7, 2008 at 9:39 AM, Rink Springer [EMAIL PROTECTED] wrote: Hi, On Fri, Mar 07, 2008 at 04:36:56PM +0200, Adrian Penisoara wrote:

Re: pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread walt
Steven Hartland wrote: Seems if you have package X which depends on package Y which depends on package Z then pkg_add -r X will always fail unless you first :- 1. pkg_add -r Y 2. pkg_add -r Z The failure will be:- pkg_add: could not find package Z ! This happens even though Z exists in the

Re: pkg_add -r doesn't process sub dependencies?

2008-03-07 Thread Steven Hartland
- Original Message - From: walt [EMAIL PROTECTED] If you are using RELENG_7, pkg_add is looking in the wrong place on the remote server for packages. I just submitted a patch on the -STABLE list for this problem. I'm actually using PACKAGESITE which is meant to bypass all path

[kern/sys_pipe.c] PIPE_NODIRECT and pipe throughput

2008-03-07 Thread Antipov Dmitry
[originally posted to [EMAIL PROTECTED] Hello all, recently I've tried a few benchmarks around pipe throughput on Linux vs. FreeBSD. Everyone interesting can see my stuff at http://213.148.29.37/PipeBench, and initial post to Linux kernel developers mailing list at