On Thu, 29 Jul 1999 09:26:12 -0700 (PDT)
Matthew Dillon <[EMAIL PROTECTED]> wrote:
> Yes, it will work. Oops. I do see one problem though... if you do
> this the underlying file object will be marked for sequential operation
> even after the grep (in this case) exits. That is, an madvise() of
> MADV_NORMAL, SEQUENTIAL, or RANDOM appears to have a permanent effect
> on the object. This is probably not correct behavior. We could probably
> fix this by moving this particular flag from the object to the vm_entry.
In NetBSD, we store advice in the map entry, specifically because two
different processes may wish to have different access patterns on the
same object.
Just a data point.
-- Jason R. Thorpe <[EMAIL PROTECTED]>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message