Dear Minchan, > So what's the effect for user? Sorry I have no idea. The kernel seems to work well without this patch; or in fact not so well, PAE crashing with spurious OOM. In my fruitless efforts of avoiding OOM by sensible choices of sysctl tunables, I noticed that maybe the treatment of min_free_kbytes was not right. Getting this right did not help in avoiding OOM. > It seems you saw old kernel. Yes I have Debian on my machines. :-) > Current kernel includes following logic. > > static unsigned long global_dirtyable_memory(void) > { > unsigned long x; > > x = global_page_state(NR_FREE_PAGES) + global_reclaimable_pages(); > x -= min(x, dirty_balance_reserve); > > if (!vm_highmem_is_dirtyable) > x -= highmem_dirtyable_memory(x); > > return x + 1; /* Ensure that we never return 0 */ > } > > And dirty_lanace_reserve already includes high_wmark_pages. > Look at calculate_totalreserve_pages. > > So I think we don't need this patch. > Thanks. Presumably, dirty_balance_reserve takes min_free_kbytes into account? Then I agree that this patch is not needed on those newer kernels. A question: what is the use or significance of vm_highmem_is_dirtyable? It seems odd that it would be used in setting limits or threshholds, but not used in decisions where to put dirty things. Is that so, is that as should be? What is the recommended setting of highmem_is_dirtyable? Thanks, Paul Paul Szabo psz@xxxxxxxxxxxxxxxxx http://www.maths.usyd.edu.au/u/psz/ School of Mathematics and Statistics University of Sydney Australia -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>