Messages in this thread | | | Subject | Re: [PATCH][RESEND] nommu: yield CPU periodically while disposing large VM | From | "Steven J. Magnani" <> | Date | Tue, 16 Nov 2010 07:03:57 -0600 |
| |
On Mon, 2010-11-15 at 20:47 -0800, Andrew Morton wrote: > On Mon, 15 Nov 2010 08:29:11 -0600 "Steven J. Magnani" <steve@digidescorp.com> wrote: > > > As efficient as schedule() may be, it still scares me to call it on > > reclaim of every block of memory allocated by a terminating process, > > particularly on the relatively slow processors that inhabit NOMMU land. > > This is cond_resched(), not schedule()! cond_resched() is just a few > instructions, except for the super-rare case where it calls schedule().
The light comes on..._cond_resched() is overloaded. I was looking at the static version, which calls schedule(). The extern version is much more lightweight.
I'll respin the patch.
Thanks, ------------------------------------------------------------------------ Steven J. Magnani "I claim this network for MARS! www.digidescorp.com Earthling, return my space modulator!"
#include <standard.disclaimer>
| |