Re: Active_mm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 04, 2002 at 01:08:01PM +0200, R!SC wrote:

> what is active_mm field in task_struct?
> it's often used in  schedule alghoritm.

active_mm contains the active user-space virtual memory mappings. For
"normal" tasks, mm == active_mm. For kernel tasks, though, they don't
care about user-space mappings, so instead of fully flushing page tables
etc., active_mm is set to the previous task's (the one being scheduled
out) mm (see context_switch), and the mm's mm_count is incremented in
case the other "real" users of the mm (mm_users) die.

task->mm is NULL for kernel threads.

This is very rough, and doesn't seem quite right. I don't know quite
what effect TLBSTATE_LAZY actually has on i386 (it only seems to affect
SMP which I don't follow ...)

With any luck, somebody who has a clue about this can comment

regards
john

-- 
"Me and my friends are so smart, we invented this new kind of art:
 Post-modernist throwing darts"
	- the Moldy Peaches
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux