Another test, same steps as previous,  but increase shares in subclass:
"guarantee=5000,limit=7500", 

the process will run a while, then hang, the stats shows
Number of pages used(including pages lent to children): 7506

Which is slightly larger than 7500 ( limit)

and ps shows:
sse       4234  1.4  2.7 62828 14340 pts/3   D    17:24   0:22 ./60.out

It looks like the process will run to its top limit then lock ...

Kai


On 12/1/05, Dave Hansen <[EMAIL PROTECTED]> wrote:
On Thu, 2005-12-01 at 16:11 -0500, kai unc wrote:
>
>         +       if (!in_interrupt() && !ckrm_class_limit_ok(ckrm_task_memclass(p))
>         +                       && wait) {
>         +               /* take a nap, let kswapd refresh zone */
>         +               blk_congestion_wait(WRITE, HZ/50);
>         +               while (!ckrm_class_limit_ok(ckrm_task_memclass(p))
>         +                       blk_congestion_wait(WRITE, HZ/50);
>         +       }

Do you really want to use HZ here?  Doesn't the behavior change if HZ
changes?

-- Dave


Reply via email to