Re: [PATCH] mm/tracking dirty pages: update get_dirty_limits formmap tracking

From: Martin Bligh
Date: Wed Jun 21 2006 - 14:12:53 EST



-int vm_dirty_ratio = 40;
+int vm_dirty_ratio = 80;

I don't think you can do that. Because ...

unsigned long available_memory = total_pages;
...
+ dirty = (vm_dirty_ratio * available_memory) / 100;

... there are other things in memory besides pagecache. Limiting
dirty pages to 80% of pagecache might be fine, but not 80%
of total memory.

dirty = (vm_dirty_ratio * (nr_active + nr_inactive)) / 100

might be more sensible. Frankly the whole thing is a crock
anyway, because we should be counting easily freeable clean
pages, not dirty pages, but still.

M.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/