Mail Archives: djgpp/1996/03/17/09:17:23
> The problem comes, when I try to lock the memory so that it is not swapped out
> when in low memory. What I use is (to be sure) something like this :
There is a bug in CWSDPMI in the locking code. It does not return failures,
and it does not check to see if it can complete when it starts locking. So,
it will lock 1/2 the memory, fail (due to insufficient memory) then return with
no error. At that point, any page fault can't be satsified (no free memory)
so it dies with a page fault error.
Because of the way CWSDPMI lazy pages untouched memory, it makes the accounting
a real nightmare for determining how much lockable memory there is. So I
took the easy way out and didn't handle the error cases properly, and it
doesn't return the lockable memory field correctly in the meminfo requests.
I'll fix it someday, but for now the effort exceeds the time required+value
returned in my mind (especially with my very tight time budget).
- Raw text -