HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Doug Barton
Howdy, Per discussion in freebsd-rc@, I have removed set_rcvar() from rc.subr. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. I have no plans to MFC this change,

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Denny Lin
On Sat, Jan 14, 2012 at 01:05:59AM -0800, Doug Barton wrote: to make the change by hand, change this: name=foo rcvar=`set_rcvar` to: name=foo rcvar=foo_enable The scripts installed by net/avahi-app still use set_rcvar() because they are included in the source. -- Denny Lin

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Chris Rees
On 14 January 2012 11:11, Denny Lin dennyli...@hs.ntnu.edu.tw wrote: On Sat, Jan 14, 2012 at 01:05:59AM -0800, Doug Barton wrote: to make the change by hand, change this: name=foo rcvar=`set_rcvar` to: name=foo rcvar=foo_enable The scripts installed by net/avahi-app still use

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 14.01.2012 04:10, Michael Schnell wrote: On Thu, 12 Jan 2012, Yuri Pankov wrote: On Thu, Jan 12, 2012 at 02:57:52PM +0200, Alexander Motin wrote: On 01/12/12 14:18, Yuri Pankov wrote: On Wed, Jan 11, 2012 at 09:33:17PM +0200, Alexander Motin wrote: I would like request for testing of my

netisr ambigios policy

2012-01-14 Thread Коньков Евгений
From sys/net/netisr.c switch (netisr_dispatch_policy) { case NETISR_DISPATCH_DEFERRED: netisr_direct_force = 0; netisr_direct = 0; break; case NETISR_DISPATCH_HYBRID: netisr_direct_force = 0;

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Best
On Thu Jan 12 12, Rainer Hurling wrote: On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motinm...@freebsd.org wrote: I would like request for testing of my work on further HDA sound driver improvement.

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 01/14/12 15:48, Alexander Best wrote: On Thu Jan 12 12, Rainer Hurling wrote: On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motinm...@freebsd.org wrote: I would like request for testing of my work

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Jilles Tjoelker
On Sat, Jan 14, 2012 at 01:05:59AM -0800, Doug Barton wrote: Per discussion in freebsd-rc@, I have removed set_rcvar() from rc.subr. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such

Re: netisr ambigios policy

2012-01-14 Thread Коньков Евгений
Здравствуйте, Коньков. Вы писали 14 января 2012 г., 15:31:04: КЕ From sys/net/netisr.c КЕ switch (netisr_dispatch_policy) { КЕ case NETISR_DISPATCH_DEFERRED: КЕ netisr_direct_force = 0; КЕ netisr_direct = 0; КЕ break; КЕ

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Rainer Hurling
On 14.01.2012 10:05 (UTC+1), Doug Barton wrote: Howdy, Per discussion in freebsd-rc@, I have removed set_rcvar() from rc.subr. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Best
On Sat Jan 14 12, Alexander Motin wrote: On 01/14/12 15:48, Alexander Best wrote: On Thu Jan 12 12, Rainer Hurling wrote: On 12.01.2012 12:18 (UTC+1), Alexander Motin wrote: On 01/12/12 12:52, Gary Jennejohn wrote: On Wed, 11 Jan 2012 21:33:17 +0200 Alexander Motinm...@freebsd.org wrote: I

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Chris Rees
On 14 January 2012 15:16, Rainer Hurling rhur...@gwdg.de wrote: On 14.01.2012 10:05 (UTC+1), Doug Barton wrote: Howdy, Per discussion in freebsd-rc@, I have removed set_rcvar() from rc.subr. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Mickaël Maillot
2012/1/11 Alexander Motin m...@freebsd.org Hi. I would like request for testing of my work on further HDA sound driver improvement. List of changes done this time: - Huge old hdac driver was split into three independent pieces: HDA controller driver (hdac), HDA CODEC driver (hdacc) and

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Doug Barton
On 01/14/2012 06:44, Jilles Tjoelker wrote: Why must the 2-argument form of set_rcvar die at the same time? It is used very differently and does not cause unnecessary forks. Instead, it is called in the same shell environment to define additional rc.conf variables that have defaults and are

[RESOLVED]: upgrading to r230059 cause slow network throughput

2012-01-14 Thread Коньков Евгений
Здравствуйте, Коньков. Вы писали 13 января 2012 г., 21:32:14: КЕ I have tryed as ULE as SCHED_4BSD, no changes КЕ in both cases low throughput КЕ CPUload КЕ http://piccy.info/view3/2478224/e5d7f208538d05d813411c34eb493a8f/orig/ КЕ if load КЕ

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with present value from 10-CURRENT SVN (sources from CVS or STABLE will need that patch line modified respectively) and some minor additional

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Doug Barton
On 01/14/2012 07:16, Rainer Hurling wrote: BTW, is there any reason not to set 'rcvar=${name}_enable' in all that cases? http://lists.freebsd.org/pipermail/freebsd-rc/2012-January/002660.html Also, as I pointed out in my commit message, using the literal value is a tiny bit faster, and every

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 14.01.2012 23:25, Steve Kargl wrote: On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with present value from 10-CURRENT SVN (sources from CVS or STABLE will need that patch line modified respectively)

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Rainer Hurling
On 14.01.2012 22:29 (UTC+1), Doug Barton wrote: On 01/14/2012 07:16, Rainer Hurling wrote: BTW, is there any reason not to set 'rcvar=${name}_enable' in all that cases? http://lists.freebsd.org/pipermail/freebsd-rc/2012-January/002660.html Also, as I pointed out in my commit message, using

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Sat, Jan 14, 2012 at 11:39:43PM +0200, Alexander Motin wrote: On 14.01.2012 23:25, Steve Kargl wrote: On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with present value from 10-CURRENT SVN (sources

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Doug Barton
On 01/14/2012 13:25, Steve Kargl wrote: Remove dvd insert music cd in drive, 'cdcontrol play'. The drive is reading the cd and 'cdcontrol status' indicates that it is playing. No sound. The way that this was explained to me (and I'm certainly no expert) is that in the ATA-CAM world the only

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 15.01.2012 00:10, Steve Kargl wrote: On Sat, Jan 14, 2012 at 11:39:43PM +0200, Alexander Motin wrote: On 14.01.2012 23:25, Steve Kargl wrote: On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: That is probably because of $FreeBSD$ macro resolution. Here is version with

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Steve Kargl
On Sun, Jan 15, 2012 at 12:31:51AM +0200, Alexander Motin wrote: Audio from DVDs always played by software after reading if from the disk as usual data. Audio CDs instead could be played either by the CD drive itself via analog audio connection or by software using digital audio extraction

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Jan Beich
Alexander Motin m...@freebsd.org writes: I would like request for testing of my work on further HDA sound driver improvement. [...] - Codec pins and GPIO signals configuration was exported via set of writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger driver

Re: [RFT] Major snd_hda rewrite

2012-01-14 Thread Alexander Motin
On 01/15/12 03:06, Jan Beich wrote: Alexander Motinm...@freebsd.org writes: I would like request for testing of my work on further HDA sound driver improvement. [...] - Codec pins and GPIO signals configuration was exported via set of writable sysctls. Another sysctl dev.hdaa.X.reconfig