Skip to contentSkip to conversation

support for only 255 processes on a 405

DISCUSSION Ralph Blach 2 participants 4 messages Aug 27, 2001

lore
Share & tools
lore
#0 lore raw

Is there any support for having a special case for the 405 that would limit the number of processes to 255. This means that the pid and context could be the same. This might be a performance gain.

Chip

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · Ralph Blach

Is there any support for having a special case for the 405 that would limit the number of processes to 255. This means that the pid and context could be the same. This might be a performance gain.

The PID and context are already reused until there are more than 255 (or whatever the MMU can support) active processes. There isn't a special case needed, this is generic to all PowerPC with small context space resources.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw

Dan

Perhaps i dont understand. It looks like from the code that process id and pids dont match. Could you explain how this code works.

Chip

Quoted 7 lines · Dan Malek
Quoted 4 lines · Ralph Blach

Is there any support for having a special case for the 405 that would limit the number of processes to 255. This means that the pid and context could be the same. This might be a performance gain.

Quoted 6 lines

The PID and context are already reused until there are more than 255 (or whatever the MMU can support) active processes. There isn't a special case needed, this is generic to all PowerPC with small context space resources.

        -- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 2 lines · Ralph Blach

Perhaps i dont understand. It looks like from the code that process id and pids dont match. Could you explain how this code works.

The "contexts" are associated with an MM context, not with a process ID. Typically a process has one MM context, but there are cases (like multithreaded address spaces) that will share an MM context and all get the same TLB context. A "process" is somewhat blurry in Linux, but you can still think of it as an address space plus a processor thread. We are really concerned what happens to the address space and how that affects the MMU, not what the thread actually does, or how many share the address space.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/