Re: problem for the VM gurus

1999-06-14 Thread Matthew Dillon
: VM lookup the page again. Always. vm_fault already does this, : in fact. We would clean up the code and document it to this effect. : : This change would allow us to immediately fix the self-referential : deadlocks and I think it would also allow me to fix a similar bug

Re: problem for the VM gurus

1999-06-14 Thread Matthew Dillon
: A permanent vnode locking fix is many months away because core : decided to ask Kirk to fix it, which was news to me at the time. : However, I agree with the idea of having Kirk fix VNode locking. : : Actually, core did no such thing. Kirk told me a month or so ago that he

Re: problem for the VM gurus

1999-06-14 Thread Dag-Erling Smorgrav
Matthew Dillon dil...@apollo.backplane.com writes: :A permanent vnode locking fix is many months away because core :decided to ask Kirk to fix it, which was news to me at the time. :However, I agree with the idea of having Kirk fix VNode locking. : : Actually, core did no such

Re: problem for the VM gurus

1999-06-13 Thread John S. Dyson
* We hack a fix to deal with the mmap/write case. A permanent vnode locking fix is many months away because core decided to ask Kirk to fix it, which was news to me at the time. However, I agree with the idea of having Kirk fix VNode locking. But since this

Re: problem for the VM gurus

1999-06-13 Thread David Greenman
A permanent vnode locking fix is many months away because core decided to ask Kirk to fix it, which was news to me at the time. However, I agree with the idea of having Kirk fix VNode locking. Actually, core did no such thing. Kirk told me a month or so ago that he

Re: problem for the VM gurus

1999-06-13 Thread Julian Elischer
On Sun, 13 Jun 1999, John S. Dyson wrote: Remember that you cannot assume that the mappings stay the same during almost any I/O mechanism anymore. The issue of wiring pages and assuming constant mapping has to be resolved. A careful definition of whether or not one is doing I/O to an

Re: problem for the VM gurus

1999-06-13 Thread David Greenman
Interesting. It's an overlapping same-process deadlock with mmap/write. This bug also hits NFS, though in a slightly different way, and also occurs with mmap/write when two processes are mmap'ing two files and write()ing the other descriptor using the map as a buffer. I see a

Re: problem for the VM gurus

1999-06-12 Thread Matthew Dillon
Interesting. It's an overlapping same-process deadlock with mmap/write. This bug also hits NFS, though in a slightly different way, and also occurs with mmap/write when two processes are mmap'ing two files and write()ing the other descriptor using the map as a buffer. I see a

Re: problem for the VM gurus

1999-06-09 Thread John S. Dyson
Howard Goldstein said: On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : On Mon, 7 Jun 1999, Matthew Dillon wrote: : ... what version of the operating system? : 4.0-CURRENT 3.2R too... I just checked the source (CVS) tree, and something bad

Re: problem for the VM gurus

1999-06-09 Thread Brian Feldman
On Wed, 9 Jun 1999, John S. Dyson wrote: Howard Goldstein said: On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : On Mon, 7 Jun 1999, Matthew Dillon wrote: : ... what version of the operating system? : 4.0-CURRENT 3.2R too... I just

Re: problem for the VM gurus

1999-06-09 Thread John S. Dyson
On Wed, 9 Jun 1999, John S. Dyson wrote: Howard Goldstein said: On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : On Mon, 7 Jun 1999, Matthew Dillon wrote: : ... what version of the operating system? : 4.0-CURRENT 3.2R too...

Re: problem for the VM gurus

1999-06-09 Thread Howard Goldstein
John S. Dyson writes: Howard Goldstein said: On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : 4.0-CURRENT 3.2R too... I just checked the source (CVS) tree, and something bad happend between 1.27 and 1.29 on ufs_readwrite.c. Unless

Re: problem for the VM gurus

1999-06-09 Thread John S. Dyson
John S. Dyson writes: Howard Goldstein said: On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : 4.0-CURRENT 3.2R too... I just checked the source (CVS) tree, and something bad happend between 1.27 and 1.29 on ufs_readwrite.c.

Re: problem for the VM gurus

1999-06-07 Thread John S. Dyson
Arun Sharma said: bread ffs_read ffs_getpages vnode_pager_getpages vm_fault --- slow_copyin ffs_write vn_write dofilewrite write syscall getblk finds that the buffer is marked B_BUSY and sleeps on it. But I can't figure out who marked it busy. This looks like the

Re: problem for the VM gurus

1999-06-07 Thread Brian Feldman
One of the problems that would make it sensible to do a complete rewrite of vfs_bio.c is this? Brian Feldman_ __ ___ ___ ___ ___ gr...@unixhelp.org_ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) |

Re: problem for the VM gurus

1999-06-07 Thread John S. Dyson
One of the problems that would make it sensible to do a complete rewrite of vfs_bio.c is this? Specifically for that reason, probably not. However, if the effort was taken as an entire and encompassing effort, with the understanding of what is really happening in the code regarding policy

Re: problem for the VM gurus

1999-06-07 Thread John S. Dyson
Brian Feldman said: In the long-standing tradition of deadlocks, I present to you all a new one. This one locks in getblk, and causes other processes to lock in inode. It's easy to induce, but I have no idea how I'd go about fixing it myself (being very new to that part of the kernel.)

Re: problem for the VM gurus

1999-06-07 Thread Matthew Dillon
... what version of the operating system? -Matt : In the long-standing tradition of deadlocks, I present to you all a new one. :This one locks in getblk, and causes other processes to lock in inode. It's :easy to induce, but I have no idea how

Re: problem for the VM gurus

1999-06-07 Thread Brian Feldman
On Mon, 7 Jun 1999, Matthew Dillon wrote: ... what version of the operating system? -Matt 4.0-CURRENT : In the long-standing tradition of deadlocks, I present to you all a new one. :This one locks in getblk, and causes other processes

Re: problem for the VM gurus

1999-06-07 Thread Howard Goldstein
On Mon, 7 Jun 1999 18:38:51 -0400 (EDT), Brian Feldman gr...@unixhelp.org wrote: : On Mon, 7 Jun 1999, Matthew Dillon wrote: : ... what version of the operating system? : 4.0-CURRENT 3.2R too... To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the

problem for the VM gurus

1999-06-06 Thread Brian Feldman
In the long-standing tradition of deadlocks, I present to you all a new one. This one locks in getblk, and causes other processes to lock in inode. It's easy to induce, but I have no idea how I'd go about fixing it myself (being very new to that part of the kernel.) Here's the program which

Re: problem for the VM gurus

1999-06-06 Thread Arun Sharma
Brian Feldman gr...@unixhelp.org writes: In the long-standing tradition of deadlocks, I present to you all a new one. This one locks in getblk, and causes other processes to lock in inode. It's easy to induce, but I have no idea how I'd go about fixing it myself (being very new to