Recursion in the UVA

2010-05-10 Thread Evan Geller
I'm a bit confused how recursion in the UVA works. vm_map_entries are allocated from a vm_map_entry zone, but if the vm_map_entry slabs are full and it needs to allocate a vm_map_entry to satisfy the mapping, there would seem to be a starvation. I also see a uk_recurse field per keg that gets incre

Re: How to get stack bounds of current process?

2010-05-10 Thread Kostik Belousov
On Mon, May 10, 2010 at 09:45:21PM +0400, Lev Serebryakov wrote: > Hello, Kostik. > You wrote 10 мая 2010 г., 18:58:17: > > > >> I'm proting some application from Linux, which discover its stack > >> bounds by reading and pasing "/proc/self/maps". FreeBSD have > >> "/prov/curproc/

Re: How to get stack bounds of current process?

2010-05-10 Thread Lev Serebryakov
Hello, Kostik. You wrote 10 мая 2010 г., 18:58:17: >> I'm proting some application from Linux, which discover its stack >> bounds by reading and pasing "/proc/self/maps". FreeBSD have >> "/prov/curproc/map", but I can not find how to determine which record >> is for stack (I'v

Re: Ability to tell the difference between normal and syscall traps

2010-05-10 Thread Kostik Belousov
On Mon, May 10, 2010 at 07:48:47PM +0300, Ali Polatel wrote: > Kostik Belousov yazm??: > > On Sun, May 09, 2010 at 09:28:51PM +0300, Ali Polatel wrote: > > > Kostik Belousov yazm??: > > > > On Sun, May 09, 2010 at 08:33:03AM +0300, Ali Polatel wrote: > > > > > Kostik Belousov yazm??: > > > > > > On

Re: Ability to tell the difference between normal and syscall traps

2010-05-10 Thread Ali Polatel
Kostik Belousov yazmış: > On Sun, May 09, 2010 at 09:28:51PM +0300, Ali Polatel wrote: > > Kostik Belousov yazm??: > > > On Sun, May 09, 2010 at 08:33:03AM +0300, Ali Polatel wrote: > > > > Kostik Belousov yazm??: > > > > > On Sat, May 08, 2010 at 02:15:09PM +0300, Ali Polatel wrote: > > > > > > Do

Re: Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

2010-05-10 Thread Ed Schouten
* Dmitry Krivenok wrote: > - int dev_num = minor(dev); > + int dev_num = minor(dev2unit(dev)); Almost there. Just remove all calls to unit2minor() and minor2unit() (if present) and replace minor() with dev2unit(): int dev_num = dev2unit(dev); But even better, don't use device unit numbe

Re: hifn(4) DMA fix for review

2010-05-10 Thread Sam Leffler
On May 7, 2010, at 12:13 PM, Oleksandr Tymoshenko wrote: Proposed patch addresses hifn(4) problems on FreeBSD/mips. Current implementation keeps some of the state information (indexes in buffers, etc) in DMA-mapped memory and bus_dma code invalidates them during sync operations. This fix mov

Re: hifn(4) DMA fix for review

2010-05-10 Thread Sam Leffler
On May 9, 2010, at 3:16 PM, Patrick Lamaiziere wrote: Le Fri, 07 May 2010 12:13:20 -0700, Oleksandr Tymoshenko a écrit : Hi, Proposed patch addresses hifn(4) problems on FreeBSD/mips. Current implementation keeps some of the state information (indexes in buffers, etc) in DMA-mapped m

Re: How to get stack bounds of current process?

2010-05-10 Thread Kostik Belousov
On Mon, May 10, 2010 at 11:57:08AM +0400, Lev Serebryakov wrote: > Hello, Freebsd-hackers. > > I'm proting some application from Linux, which discover its stack > bounds by reading and pasing "/proc/self/maps". FreeBSD have > "/prov/curproc/map", but I can not find how to determine

How to get stack bounds of current process?

2010-05-10 Thread Lev Serebryakov
Hello, Freebsd-hackers. I'm proting some application from Linux, which discover its stack bounds by reading and pasing "/proc/self/maps". FreeBSD have "/prov/curproc/map", but I can not find how to determine which record is for stack (I've looked into implementation of proc_f