Messages in this thread | | | Date | Tue, 9 Aug 2011 07:32:55 +0800 | From | Wu Fengguang <> | Subject | Re: [PATCH 4/5] writeback: per task dirty rate limit |
| |
> --- linux-next.orig/kernel/fork.c 2011-08-08 22:11:59.000000000 +0800 > +++ linux-next/kernel/fork.c 2011-08-08 22:18:05.000000000 +0800 > @@ -1301,6 +1301,9 @@ static struct task_struct *copy_process( > p->pdeath_signal = 0; > p->exit_state = 0; > > + p->nr_dirtied = 0; > + p->nr_dirtied_pause = 8;
Hmm, it looks better to allow a new task to dirty 128KB without being throttled, if the system is not in dirty exceeded state. So changed the last line to this:
+ p->nr_dirtied_pause = 128 >> (PAGE_SHIFT - 10);
Thanks, Fengguang
| |