machdep.hlt_cpus not safe with ULE?

2011-02-19 Thread Steven Hartland
I'm trying to debug a possibly failing CPU, so I thought it would be easy just disable the cores using machdep.hlt_cpus and see if we see the panic's we've been seeing. The problem is it seems ULE doesnt properly support machdep.hlt_cpus and still schedules processes onto the halted cpus which ob

Re: machdep.hlt_cpus not safe with ULE?

2011-02-19 Thread Gary Jennejohn
On Sat, 19 Feb 2011 12:36:57 - "Steven Hartland" wrote: > I'm trying to debug a possibly failing CPU, so I thought it would > be easy just disable the cores using machdep.hlt_cpus and see if > we see the panic's we've been seeing. > > The problem is it seems ULE doesnt properly support machd

Re: machdep.hlt_cpus not safe with ULE?

2011-02-19 Thread Steven Hartland
- Original Message - From: "Gary Jennejohn" Looking at the kernel source it appears that only sched_4bsd.c makes use of hlt_cpus_mask. Given ULE is default do these need to be either removed totally or at least conditionally based on the scheduler choice as currently they are quite

Re: [patch] nmount ro, rw and negated option handling

2011-02-19 Thread Jaakko Heinonen
On 2011-01-25, Jaakko Heinonen wrote: > Another related bug is in vfs_domount_update(): if VFS_MOUNT() succeeds > but vfs_export() fails, old mount flags and options are restored. I > think this shouldn't happen when VFS_MOUNT() has been already > successfully completed and this is the final reason

Re: machdep.hlt_cpus not safe with ULE?

2011-02-19 Thread Steven Hartland
For reference I've found that an alternative is to set the following in loader.conf:- hint.lapic.2.disabled=1 hint.lapic.3.disabled=1 2 and 3 here are the apic numbers displayed by dmesg on boot for the cpu's Obviously this requires a reboot so no perfect for all uses but it does work for what w

Re: Can vm_mmap()/vm_map_remove() be called with giant held? (linuxolator dvb patches)

2011-02-19 Thread Kostik Belousov
On Fri, Feb 18, 2011 at 09:55:42PM +0100, Juergen Lock wrote: > I have finally got back to this and did the style and vm_map_remove() > return value handling fixes, updated the patches in-place: > > http://people.freebsd.org/~nox/dvb/linux-dvb.patch > > (for head) > > http://people.f