Thanks for the reply.could you please more elaborate on that? On 11/3/06, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
Hi.. > Maybe for cache aligning purposes.. I second that. Several variables/properties inside task_struct are padded in certain ways (using long, explicit alignment and so on) so they are grouped in same cache line. This way, memory access can be significantly improved, especially for most often read properties... in this case, "state" is a good example. It's also not a surprised if thread_info is also "grouped" with "state" in the same cache line. Both are mostly read, so it makes sense to group them. regards, Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/