bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes to the filesystem while find is running - comments?


From: Casper . Dik
Subject: Re: Changes to the filesystem while find is running - comments?
Date: Wed, 24 Nov 2004 20:29:04 +0100

>Modern kernels seem to have arbitrary fixed limits for just about 
>everything.

There's generally an arbitrary limit on buffers to do I/O with
the kernel with as the kernel typically needs to allocate a buffer
to compute results in before it does a copyout (think readdir() and
others)

>My understanding is that this is sound engineering practice.  It protects 
>the system against rogue processes, and contributes to security and stability.


Quite.  For pathname,s the kernel also needs to know how big
a buffer to allocate before reading from the user's address space
which can be expensive (and you can't rely on the NUL byte to stay
in the same location if you want to look first and copy later)

Casper




reply via email to

[Prev in Thread] Current Thread [Next in Thread]