Re: lwp resource limit

2012-06-05 Thread Matt Thomas
On Jun 4, 2012, at 7:19 PM, Christos Zoulas wrote: In article 20120605013242.ga7...@panix.com, Thor Lancelot Simon t...@panix.com wrote: On Mon, Jun 04, 2012 at 06:13:09PM -0400, Christos Zoulas wrote: That is a good idea! The only problem with it is that ps -sx and the sysctl limit will

Re: lwp resource limit

2012-06-05 Thread Martin Husemann
On Mon, Jun 04, 2012 at 11:16:45PM -0700, Matt Thomas wrote: The latter is my preference. How many processes ever have lid 1 exit early? Yes, do not count lid 1 and don't have it decrement the count on exit. Martin

Re: lwp resource limit

2012-06-05 Thread Chuck Silvers
On Tue, Jun 05, 2012 at 11:20:35AM +0200, Martin Husemann wrote: On Mon, Jun 04, 2012 at 11:16:45PM -0700, Matt Thomas wrote: The latter is my preference. How many processes ever have lid 1 exit early? Yes, do not count lid 1 and don't have it decrement the count on exit. some processes

pmap fragmentation

2012-06-05 Thread David Laight
If you look at the pmap(1) output for something like firefox on amd64 you see: 0040 36K read/exec /usr/pkg/lib/xulrunner/xulrunner-bin 00609000 4K read/write [ anon ] 7F7FC040 64K read/write [ anon ] 7F7FC041960K

Devices not at mainbus?

2012-06-05 Thread Thor Lancelot Simon
Aside from pseudodevices, do we have any devices which aren't children of mainbus? Some ports' use of obio seems like, perhaps, a candidate for this, but I have not started checking them all. -- Thor Lancelot Simont...@panix.com We cannot usually in

Re: Devices not at mainbus?

2012-06-05 Thread Matt Thomas
On Jun 5, 2012, at 8:42 AM, Thor Lancelot Simon wrote: Aside from pseudodevices, do we have any devices which aren't children of mainbus? Some ports' use of obio seems like, perhaps, a candidate for this, but I have not started checking them all. directly or through parents? Not all ports

Re: Devices not at mainbus?

2012-06-05 Thread Thor Lancelot Simon
On Tue, Jun 05, 2012 at 08:52:38AM -0700, Matt Thomas wrote: On Jun 5, 2012, at 8:42 AM, Thor Lancelot Simon wrote: Aside from pseudodevices, do we have any devices which aren't children of mainbus? Some ports' use of obio seems like, perhaps, a candidate for this, but I have not

re: merge coming soon: jmcneill-usbmp

2012-06-05 Thread matthew green
- usbd_bus_methods{} gains a get_lock() to enable the host controller to provide a lock for the USB code. if the lock isn't provided, old-style protection is (partially) applied. It is better if the USB driver can select the lock, like in FreeBSD. Else

Re: Devices not at mainbus?

2012-06-05 Thread David Holland
On Tue, Jun 05, 2012 at 12:03:49PM -0400, Thor Lancelot Simon wrote: Aside from pseudodevices, do we have any devices which aren't children of mainbus? Some ports' use of obio seems like, perhaps, a candidate for this, but I have not started checking them all. directly or

Re: Devices not at mainbus?

2012-06-05 Thread Thor Lancelot Simon
On Tue, Jun 05, 2012 at 06:06:08PM +, David Holland wrote: Does it matter? Is there a case where a driver's notion of MAXPHYS should depend on anything other than the buses it's attached to? I see you say buses. So I assume you're taking into account funny constraints to do with bus

Re: Devices not at mainbus?

2012-06-05 Thread David Holland
On Tue, Jun 05, 2012 at 02:14:02PM -0400, Thor Lancelot Simon wrote: Does it matter? Is there a case where a driver's notion of MAXPHYS should depend on anything other than the buses it's attached to? I see you say buses. So I assume you're taking into account funny constraints to do

Re: merge coming soon: jmcneill-usbmp

2012-06-05 Thread Hans Petter Selasky
On Tuesday 05 June 2012 19:59:08 matthew green wrote: - usbd_bus_methods{} gains a get_lock() to enable the host controller to provide a lock for the USB code. if the lock isn't provided, old-style protection is (partially) applied. It

Re: Devices not at mainbus?

2012-06-05 Thread Manuel Bouyer
On Tue, Jun 05, 2012 at 02:14:02PM -0400, Thor Lancelot Simon wrote: On Tue, Jun 05, 2012 at 06:06:08PM +, David Holland wrote: Does it matter? Is there a case where a driver's notion of MAXPHYS should depend on anything other than the buses it's attached to? I see you say buses.