Originally posted by arQon
View Post
Originally posted by arQon
View Post
Originally posted by arQon
View Post
Originally posted by arQon
View Post
The Apache problem appears to be to handle the situation efficiently where many threads (users) access the same file ("test.html") for read-only purposes. At least that's my understanding of it. As I previously wrote (I think in the comments on a preceding article), Apache might approach this problem with a cache of shared read-only data. I don't know if it already does so in one way or another, but it appears that in this specific test the "user" threads appear to eventually access kernel page locking with contention, and this becomes an issue. Independently of how Apache as an application might address this with other means, it appears that there is a certain interest in the kernel handling this situation well, or at least to keep it from regressing unnecessarily. I suppose there is a general question regarding the efficiency of page locking.
EDIT: The problem here doesn't seem to be a global lock, but the locks specific to each page/file. If that is correct, I would expect a problem for the whole machine only if there are specific files where the same files are accessed by all processes and if these accesses are subject to the same problem.
Perhaps a good solution of this case will also be somewhat applicable to other situations (such as those which you mention), so I'm curious what the solution will be.
Leave a comment: