Re: Re: some doubt in struct task data member..

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

 



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/


[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