Filesystem deadlock

1999-02-22 Thread Alexander N. Kabaev
The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE as of today) to lookup. Shortly after this script is started, all disk activity stops and any attempt to create new process causes system to freese. While in DDB, ps command shows, that all ten fgrep processes are sleeping

Re: Filesystem deadlock

1999-02-22 Thread Brian Feldman
On Mon, 22 Feb 1999, Alexander N. Kabaev wrote: > The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE > as of today) to lookup. Shortly after this script is started, all disk > activity > > stops and any attempt to create new process causes system to freese. While in > DDB,

Re: Filesystem deadlock

1999-02-22 Thread Luoqi Chen
> On Mon, 22 Feb 1999, Alexander N. Kabaev wrote: > > > The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE > > as of today) to lookup. Shortly after this script is started, all disk > > activity > > > > stops and any attempt to create new process causes system to freese. Wh

Re: Filesystem deadlock

1999-02-22 Thread John S. Dyson
Luoqi Chen said: > > > This seems to be the good old vnode deadlock during vm_fault() that has been > reported a couple of times, and there's still no satisfactory solution to it: > fgrep does something like this: (don't ask me why) > > addr = mmap(0, len, PROT_READ|PROT_WRITE, MAP_PRIVATE,

Re: Filesystem deadlock

1999-02-23 Thread Kevin Day
> On Mon, 22 Feb 1999, Alexander N. Kabaev wrote: > > > The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE > > as of today) to lookup. Shortly after this script is started, all disk > > activity > > > > stops and any attempt to create new process causes system to freese. Wh

Re: Filesystem deadlock

1999-02-23 Thread Valentin Nechayev
Alexander N. Kabaev wrote: ANK> The following script reliably causes FreeBSD 4.0-CURRENT (and 3.1-STABLE ANK> as of today) to lookup. 2.2.8 and 3.0-RELEASE are not vulnerable, by the way. ANK> Shortly after this script is started, all disk ANK> activity stops and any attempt to create new proces

Re: Filesystem deadlock

1999-02-23 Thread Luoqi Chen
> Luoqi Chen said: > > > > > This seems to be the good old vnode deadlock during vm_fault() that has been > > reported a couple of times, and there's still no satisfactory solution to > > it: > > fgrep does something like this: (don't ask me why) > > > > addr = mmap(0, len, PROT_READ|PROT_WR

Re: Filesystem deadlock

1999-02-23 Thread John S. Dyson
Luoqi Chen said: > > > Do you still have that piece of code? Does it handle the case involves more > than one process? For example, process 1 mmaps file B and reads file A into > the mmapped region, while process 2 mmaps file A and reads file B, this could > also result in a deadlock. > It used t

Re: Filesystem deadlock

1999-02-24 Thread Luoqi Chen
> Luoqi Chen said: > > > > > Do you still have that piece of code? Does it handle the case involves more > > than one process? For example, process 1 mmaps file B and reads file A into > > the mmapped region, while process 2 mmaps file A and reads file B, this > > could > > also result in a deadl