Re: Linux Shared Memory Issue

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

 



Atsushi Nemoto wrote:

>>>>>>On Wed, 24 Apr 2002 15:03:15 -0700, Jun Sun <jsun@mvista.com> said:
>>>>>>
> jsun> Looks like the infamous cache aliasing problem.  Steve
> jsun> Longerbeam had a patch which may help.  Please try it and let me
> jsun> know the results.
> 
> jsun> +#define COLOUR_ALIGN(addr)    (((addr)+SHMLBA-1)&~(SHMLBA-1))
> 
> Recent sparc64's COLOUR_ALIGN macro have pgoff argument like this.
> We should do it same way for MIPS?
> 
> #define COLOUR_ALIGN(addr,pgoff)		\
> 	((((addr)+SHMLBA-1)&~(SHMLBA-1)) +	\
> 	 (((pgoff)<<PAGE_SHIFT) & (SHMLBA-1)))
> 


What is the purpose of adding the pgoff part?  To avoid mapping all shared 
regions into the beginning of cache?

Jun


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux