Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-12-01 Thread Aubrey
On 12/1/06, Nick Piggin <[EMAIL PROTECTED]> wrote: The pattern you are seeing here is probably due to the page allocator always retrying process context allocations which are <= order 3 (64K with 4K pages). You might be able to increase this limit a bit for your system, but it could easily caus

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-30 Thread Nick Piggin
Aubrey wrote: On 11/29/06, Nick Piggin <[EMAIL PROTECTED]> wrote: That was the order-9 allocation failure. Which is not going to be solved properly by just dropping caches. But Sonic apparently saw failures with 4K allocations, where the caches weren't getting shrunk properly. This would be mo

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-30 Thread Aubrey
On 11/29/06, Nick Piggin <[EMAIL PROTECTED]> wrote: That was the order-9 allocation failure. Which is not going to be solved properly by just dropping caches. But Sonic apparently saw failures with 4K allocations, where the caches weren't getting shrunk properly. This would be more interesting b

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-29 Thread Nick Piggin
Aubrey wrote: On 11/29/06, Sonic Zhang <[EMAIL PROTECTED]> wrote: Forward to the mailing list. > On 11/27/06, Nick Piggin <[EMAIL PROTECTED]> wrote: >> I haven't actually written any nommu userspace code, but it is obvious >> that you must try to keep malloc to <= PAGE_SIZE (although order 2

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-29 Thread Aubrey
On 11/29/06, Sonic Zhang <[EMAIL PROTECTED]> wrote: Forward to the mailing list. > On 11/27/06, Nick Piggin <[EMAIL PROTECTED]> wrote: >> I haven't actually written any nommu userspace code, but it is obvious >> that you must try to keep malloc to <= PAGE_SIZE (although order 2 and >> even 3 a

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-28 Thread Sonic Zhang
Forward to the mailing list. Sonic Zhang wrote: On 11/27/06, Nick Piggin <[EMAIL PROTECTED]> wrote: I haven't actually written any nommu userspace code, but it is obvious that you must try to keep malloc to <= PAGE_SIZE (although order 2 and even 3 allocations seem to be reasonable, from pro

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-26 Thread Nick Piggin
Aubrey wrote: On 11/22/06, Peter Zijlstra <[EMAIL PROTECTED]> wrote: The lack of a MMU on your system makes it very hard not to rely on higher order allocations, because even user-space allocs need to be physically contiguous. But please take that into consideration when writing software. W

Re: The VFS cache is not freed when there is not enough free memory to allocate

2006-11-26 Thread Mike Frysinger
On 11/22/06, Peter Zijlstra <[EMAIL PROTECTED]> wrote: Yes it does that, but there is no guarantee that those 50MB have a single 1M contiguous region amongst them. right ... the testcase posted is more to quickly illustrate the problem ... the requested size doesnt really matter, what does matt