Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-16 Thread Alexander Kabaev
On Sat, 14 Aug 2010 17:32:25 +0300 Kostik Belousov kostik...@gmail.com wrote: On Sat, Aug 07, 2010 at 09:37:22PM +0200, Marius Strobl wrote: On Sat, Aug 07, 2010 at 09:09:04PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06,

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-16 Thread Marius Strobl
On Sat, Aug 14, 2010 at 05:32:25PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 09:37:22PM +0200, Marius Strobl wrote: On Sat, Aug 07, 2010 at 09:09:04PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-14 Thread Kostik Belousov
On Sat, Aug 07, 2010 at 09:37:22PM +0200, Marius Strobl wrote: On Sat, Aug 07, 2010 at 09:09:04PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 02:11:31PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Marius Strobl
On Fri, Aug 06, 2010 at 02:11:31PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 01:08:08PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To:

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Kostik Belousov
On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 02:11:31PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 01:08:08PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-07 Thread Marius Strobl
On Sat, Aug 07, 2010 at 09:09:04PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 02:11:31PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 01:08:08PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Kostik Belousov
On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Kostik Belousov
On Fri, Aug 06, 2010 at 01:08:08PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-06 Thread Marius Strobl
On Fri, Aug 06, 2010 at 12:04:04PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote: Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-05 Thread Jeremie Le Hen
Hi Kib, In-Reply-To: 20100629083901.gg13...@deviant.kiev.zoral.com.ua On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-29 Thread Kostik Belousov
On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-29 Thread Marius Strobl
On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward and commit it? I refreshed the patch. Hopefully, nobody will object,

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-28 Thread Kostik Belousov
On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward and commit it? I refreshed the patch. Hopefully, nobody will object, and I commit it shortly. Thanks, Regards. On Sat, Jul 25, 2009

Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-06-23 Thread Jeremie Le Hen
Hi Kostik, This patch seems to have faded out from memory. Is it possible to go forward and commit it? Thanks, Regards. On Sat, Jul 25, 2009 at 12:29:16AM +0300, Kostik Belousov wrote: Below is the prototype that seems to work for me both with patched and old rtld on i386. Patch also

Re: concurrent sysctl implementation

2009-07-25 Thread Gary Jennejohn
On Sat, 25 Jul 2009 00:29:16 +0300 Kostik Belousov kostik...@gmail.com wrote: Below is the prototype that seems to work for me both with patched and old rtld on i386. Patch also contains bits for amd64 that I did not tested yet. All other arches are not buildable for now. [patch deleted]

Re: concurrent sysctl implementation

2009-07-25 Thread Kostik Belousov
On Sat, Jul 25, 2009 at 03:01:54PM +0200, Gary Jennejohn wrote: On Sat, 25 Jul 2009 00:29:16 +0300 Kostik Belousov kostik...@gmail.com wrote: Below is the prototype that seems to work for me both with patched and old rtld on i386. Patch also contains bits for amd64 that I did not tested

Re: concurrent sysctl implementation

2009-07-24 Thread Jeremie Le Hen
Hi Ed, Sorry for the late reply. On Sat, May 09, 2009 at 02:13:13PM +0200, Ed Schouten wrote: We probably could. I think I discussed this with Robert Watson some time ago and we could use things like ELF hints. But still, that doesn't prevent us from reaching this limitation later on. Can

Re: concurrent sysctl implementation

2009-07-24 Thread Kostik Belousov
On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed, Sorry for the late reply. On Sat, May 09, 2009 at 02:13:13PM +0200, Ed Schouten wrote: We probably could. I think I discussed this with Robert Watson some time ago and we could use things like ELF hints. But still,

Re: concurrent sysctl implementation

2009-07-24 Thread Jeremie Le Hen
On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed, Sorry for the late reply. On Sat, May 09, 2009 at 02:13:13PM +0200, Ed Schouten wrote: We probably could. I think I discussed this with Robert

Re: concurrent sysctl implementation

2009-07-24 Thread Ed Schouten
* Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed, Sorry for the late reply. On Sat, May 09, 2009 at 02:13:13PM +0200, Ed Schouten wrote: We

Re: concurrent sysctl implementation

2009-07-24 Thread Kostik Belousov
On Fri, Jul 24, 2009 at 01:54:04PM +0200, Jeremie Le Hen wrote: On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed, Sorry for the late reply. On Sat, May 09, 2009 at 02:13:13PM +0200, Ed

Re: concurrent sysctl implementation

2009-07-24 Thread Jeremie Le Hen
On Fri, Jul 24, 2009 at 01:56:49PM +0200, Ed Schouten wrote: * Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed, Sorry for the late reply. On

Re: concurrent sysctl implementation

2009-07-24 Thread Ed Schouten
* Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 01:56:49PM +0200, Ed Schouten wrote: * Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: Hi Ed,

Re: concurrent sysctl implementation

2009-07-24 Thread Kostik Belousov
On Fri, Jul 24, 2009 at 03:49:53PM +0200, Ed Schouten wrote: * Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 01:56:49PM +0200, Ed Schouten wrote: * Jeremie Le Hen jere...@le-hen.org wrote: On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: On Fri,

Re: concurrent sysctl implementation

2009-05-14 Thread Ed Schouten
* John Baldwin j...@freebsd.org wrote: Well, in theory a bunch of small requests to SYSCTL_PROC() nodes that used sysctl_wire_old() (or whatever it is called) could cause the amount of user memory wired for sysctls to grow unbounded. Thus, allowing this limited concurrency is a tradeoff as

Re: concurrent sysctl implementation

2009-05-14 Thread John Baldwin
On Thursday 14 May 2009 5:34:26 pm Ed Schouten wrote: * John Baldwin j...@freebsd.org wrote: Well, in theory a bunch of small requests to SYSCTL_PROC() nodes that used sysctl_wire_old() (or whatever it is called) could cause the amount of user memory wired for sysctls to grow unbounded.

Re: concurrent sysctl implementation

2009-05-11 Thread John Baldwin
On Friday 08 May 2009 5:41:17 pm Ed Schouten wrote: A solution would be to solve it as follows: - Use a semaphore, initialized to some insane high value to put an upper limit on the amount of concurrent sysctl calls. I'm not sure whether this is really needed. Maybe this issue is not as

Re: concurrent sysctl implementation

2009-05-11 Thread jt
John, Thank you for your input on this matter, I'm excited to write some software for this project since its given me great code to learn from as i've grown up (still a kid though :). My questions are a bit more detailed below. On Mon, May 11, 2009 at 12:24 PM, John Baldwin

Re: concurrent sysctl implementation

2009-05-11 Thread John Baldwin
On Monday 11 May 2009 2:27:48 pm j...@0xabadba.be wrote: John, Thank you for your input on this matter, I'm excited to write some software for this project since its given me great code to learn from as i've grown up (still a kid though :). My questions are a bit more detailed below.

Re: concurrent sysctl implementation

2009-05-09 Thread Lars Engels
On Fri, May 08, 2009 at 11:41:17PM +0200, Ed Schouten wrote: Hi, * vasanth raonaik vasanth.raon...@gmail.com wrote: Hello Jt, I am a newbee in this alias. I am having a very basic question. It would be really good if you could give me some of this information. Could you please

Re: concurrent sysctl implementation

2009-05-09 Thread Ed Schouten
Hi Lars, * Lars Engels lars.eng...@0x20.net wrote: Why is sysctl used to get a random number? Can't we get a different source for it? We probably could. I think I discussed this with Robert Watson some time ago and we could use things like ELF hints. But still, that doesn't prevent us from

Re: concurrent sysctl implementation

2009-05-08 Thread Ed Schouten
Hi, * vasanth raonaik vasanth.raon...@gmail.com wrote: Hello Jt, I am a newbee in this alias. I am having a very basic question. It would be really good if you could give me some of this information. Could you please elaborate on what is the current architecture of sysctl implementation

Re: concurrent sysctl implementation

2009-05-08 Thread jt
Ed, Thanks :) I'll be implementing this as discussed over the next few months thanks for the technical detail I've been extremely busy with finals. I will write the list with my thoughts within the next week, sorry for the delay. =jt On May 8, 2009, at 17:41, Ed Schouten e...@80386.nl

concurrent sysctl implementation

2009-05-05 Thread jt
Hackers, I've been using FreeBSD since a boy and now its time for me to give back. I will be doing my final projects in university concerning concurrency in the FreeBSD Kernel. I've been discussing with Ed@ methods of implementing sysctl concurrently since we use sysctl quite a lot for

Re: concurrent sysctl implementation

2009-05-05 Thread vasanth raonaik
Hello Jt, I am a newbee in this alias. I am having a very basic question. It would be really good if you could give me some of this information. Could you please elaborate on what is the current architecture of sysctl implementation and How the concurrency would benefit us. Thanks in advance,