Re: mmap bug

1999-08-13 Thread Andrew Gallatin
Arun Sharma writes: > The daemons which are involved in freeing up pages during low memory > conditions qualify as system daemons. Making sure that these daemons > don't block avoids the deadlock. > > -Arun The second solution involves a little more than that. Such as blessing "normal

Re: mmap bug

1999-08-13 Thread Andrew Gallatin
Arun Sharma writes: > The daemons which are involved in freeing up pages during low memory > conditions qualify as system daemons. Making sure that these daemons > don't block avoids the deadlock. > > -Arun The second solution involves a little more than that. Such as blessing "norma

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Fri, Aug 13, 1999 at 03:04:43PM +0930, Mark Newton wrote: > Arun Sharma wrote: > > > The second alternative - to mark system daemons as special > > sounds much more attractive. > > Ok, now define the difference between "system daemons" and any other > daemon (or, for that matter, any other p

Re: mmap bug

1999-08-12 Thread Mark Newton
Arun Sharma wrote: > The second alternative - to mark system daemons as special > sounds much more attractive. Ok, now define the difference between "system daemons" and any other daemon (or, for that matter, any other process). - mark Mark Newton Email

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Thu, Aug 12, 1999 at 12:02:19PM +0100, Tony Finch wrote: > Matthew Dillon wrote: > > > >One solution would be to map clean R+W pages RO and force a write fault > >to occur, allowing the system to recognize that there are too many dirty > >pages in vm_fault before it is too late and

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Fri, Aug 13, 1999 at 03:04:43PM +0930, Mark Newton wrote: > Arun Sharma wrote: > > > The second alternative - to mark system daemons as special > > sounds much more attractive. > > Ok, now define the difference between "system daemons" and any other > daemon (or, for that matter, any other

Re: mmap bug

1999-08-12 Thread Mark Newton
Arun Sharma wrote: > The second alternative - to mark system daemons as special > sounds much more attractive. Ok, now define the difference between "system daemons" and any other daemon (or, for that matter, any other process). - mark Mark Newton Emai

Re: mmap bug

1999-08-12 Thread Arun Sharma
On Thu, Aug 12, 1999 at 12:02:19PM +0100, Tony Finch wrote: > Matthew Dillon <[EMAIL PROTECTED]> wrote: > > > >One solution would be to map clean R+W pages RO and force a write fault > >to occur, allowing the system to recognize that there are too many dirty > >pages in vm_fault before

Re: mmap bug

1999-08-12 Thread Tony Finch
Matthew Dillon wrote: > >One solution would be to map clean R+W pages RO and force a write fault >to occur, allowing the system to recognize that there are too many dirty >pages in vm_fault before it is too late and flush some of them. The >downside of this is that, of course, we

Re: mmap bug

1999-08-12 Thread Tony Finch
Matthew Dillon <[EMAIL PROTECTED]> wrote: > >One solution would be to map clean R+W pages RO and force a write fault >to occur, allowing the system to recognize that there are too many dirty >pages in vm_fault before it is too late and flush some of them. The >downside of this is

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:If the latter mmap.c is allowed to fill up filesystem, -current hangs in : :/kernel: pid 2 (pagedaemon), uid 0 on /: file system full :/kernel: vnode_pager_putpages: I/O error 28 :/kernel: vnode_pager_putpages: residual I/O 16384 at 880 : :...repeating the last two lines, gradually increasing pind

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:If the latter mmap.c is allowed to fill up filesystem, -current hangs in : :/kernel: pid 2 (pagedaemon), uid 0 on /: file system full :/kernel: vnode_pager_putpages: I/O error 28 :/kernel: vnode_pager_putpages: residual I/O 16384 at 880 : :...repeating the last two lines, gradually increasing pin

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:If the latter mmap.c is allowed to fill up filesystem, -current hangs in : :/kernel: pid 2 (pagedaemon), uid 0 on /: file system full :/kernel: vnode_pager_putpages: I/O error 28 :/kernel: vnode_pager_putpages: residual I/O 16384 at 880 : :...repeating the last two lines, gradually increasing pind

Re: mmap bug

1999-08-11 Thread Juha Nurmela
If the latter mmap.c is allowed to fill up filesystem, -current hangs in /kernel: pid 2 (pagedaemon), uid 0 on /: file system full /kernel: vnode_pager_putpages: I/O error 28 /kernel: vnode_pager_putpages: residual I/O 16384 at 880 ...repeating the last two lines, gradually increasing pindex, re

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:> :>He's trying to ask if this is a problem with the code in question or 3.2R's :>mmap. : : That's better. It appears to be a classic resource related deadlock that :is caused by the VFS code needing pages in order to page things out (and thus :free up pages), but is unable to since no memory is

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:If the latter mmap.c is allowed to fill up filesystem, -current hangs in : :/kernel: pid 2 (pagedaemon), uid 0 on /: file system full :/kernel: vnode_pager_putpages: I/O error 28 :/kernel: vnode_pager_putpages: residual I/O 16384 at 880 : :...repeating the last two lines, gradually increasing pin

Re: mmap bug

1999-08-11 Thread Juha Nurmela
If the latter mmap.c is allowed to fill up filesystem, -current hangs in /kernel: pid 2 (pagedaemon), uid 0 on /: file system full /kernel: vnode_pager_putpages: I/O error 28 /kernel: vnode_pager_putpages: residual I/O 16384 at 880 ...repeating the last two lines, gradually increasing pindex, r

Re: mmap bug

1999-08-11 Thread Matthew Dillon
:> :>He's trying to ask if this is a problem with the code in question or 3.2R's :>mmap. : : That's better. It appears to be a classic resource related deadlock that :is caused by the VFS code needing pages in order to page things out (and thus :free up pages), but is unable to since no memory i

Re: mmap bug

1999-08-11 Thread Jake Burkholder
> >He's trying to ask if this is a problem with the code in question or 3.2R's > >mmap. > >That's better. It appears to be a classic resource related deadlock that > is caused by the VFS code needing pages in order to page things out (and thus > free up pages), but is unable to since no memory

Re: mmap bug

1999-08-11 Thread David Greenman
>Looks like Oleg made a mistake in posting the code. I saw an earlier version >of this in freebsd-questions and followed up with him. > >I've appended the version I think he meant to include. > >He's reporting this behavior with 3.2R. Runs fine with 'mmap -u', appears to >hang the machine on the se

RE: mmap bug

1999-08-11 Thread Charles Randall
Looks like Oleg made a mistake in posting the code. I saw an earlier version of this in freebsd-questions and followed up with him. I've appended the version I think he meant to include. He's reporting this behavior with 3.2R. Runs fine with 'mmap -u', appears to hang the machine on the second it

Re: mmap bug

1999-08-11 Thread Jake Burkholder
> >He's trying to ask if this is a problem with the code in question or 3.2R's > >mmap. > >That's better. It appears to be a classic resource related deadlock that > is caused by the VFS code needing pages in order to page things out (and thus > free up pages), but is unable to since no memor

Re: mmap bug

1999-08-11 Thread David Greenman
This report seems to be severely lacking in details. First, I don't understand why it is called "mmap" since it doesn't do an mmap and the "addr" that is being frobbed with isn't even initialized. Second, I get a core dump when I run it on a -stable machine: [speedy:tmp9] mmap unlink files? NO

Re: mmap bug

1999-08-11 Thread Andy Doran
Um, just where do you call mmap(2) in this code? - ad Oleg Derevenetz wrote: > This small program, running as 'mmap', not 'mmap -u', can hang my machine. > Is this a known bug in FreeBSD's kernel, or it is my fantasy ? > Thank you for answer. > > #include > #include > #include > #include >

Re: mmap bug

1999-08-11 Thread David Greenman
>Looks like Oleg made a mistake in posting the code. I saw an earlier version >of this in freebsd-questions and followed up with him. > >I've appended the version I think he meant to include. > >He's reporting this behavior with 3.2R. Runs fine with 'mmap -u', appears to >hang the machine on the s

Re: mmap bug

1999-08-11 Thread Bosko Milekic
Are you running this as root? <- - - . . Bosko Milekic http://www.dsuper.net/~bmilekic/ Network Operations - Delphi SuperNet, an Internet Direct company +1.514.281.7500 (vox) / +1.514.281.6599 (fax) / http://www.dsuper.net/

Re: mmap bug

1999-08-11 Thread Jason Thorpe
On Wed, 11 Aug 1999 20:48:08 +0400 (MSD) Oleg Derevenetz wrote: > This small program, running as 'mmap', not 'mmap -u', can hang my machine. > Is this a known bug in FreeBSD's kernel, or it is my fantasy ? > Thank you for answer. If it hangs your system, must be a bug in FreeBSD. Here is

RE: mmap bug

1999-08-11 Thread Charles Randall
Looks like Oleg made a mistake in posting the code. I saw an earlier version of this in freebsd-questions and followed up with him. I've appended the version I think he meant to include. He's reporting this behavior with 3.2R. Runs fine with 'mmap -u', appears to hang the machine on the second i

Re: mmap bug

1999-08-11 Thread David Greenman
This report seems to be severely lacking in details. First, I don't understand why it is called "mmap" since it doesn't do an mmap and the "addr" that is being frobbed with isn't even initialized. Second, I get a core dump when I run it on a -stable machine: [speedy:tmp9] mmap unlink files? NO

Re: mmap bug

1999-08-11 Thread Andy Doran
Um, just where do you call mmap(2) in this code? - ad Oleg Derevenetz wrote: > This small program, running as 'mmap', not 'mmap -u', can hang my machine. > Is this a known bug in FreeBSD's kernel, or it is my fantasy ? > Thank you for answer. > > #include > #include > #include > #include >

Re: mmap bug

1999-08-11 Thread Bosko Milekic
Are you running this as root? <- - - . . Bosko Milekic <[EMAIL PROTECTED]> http://www.dsuper.net/~bmilekic/ Network Operations - Delphi SuperNet, an Internet Direct company +1.514.281.7500 (vox) / +1.514.281.6599 (fax) / http://www.dsuper.net/

Re: mmap bug

1999-08-11 Thread Jason Thorpe
On Wed, 11 Aug 1999 20:48:08 +0400 (MSD) Oleg Derevenetz <[EMAIL PROTECTED]> wrote: > This small program, running as 'mmap', not 'mmap -u', can hang my machine. > Is this a known bug in FreeBSD's kernel, or it is my fantasy ? > Thank you for answer. If it hangs your system, must be a bug