Re: [RFC] count TLB refill for Netlogic XLR chip

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

 



On Sat, Oct 1, 2011 at 3:39 PM, Jayachandran C.
<jayachandranc@xxxxxxxxxxxxxxxxx> wrote:
> On Sat, Oct 01, 2011 at 01:19:53PM +0800, Hillf Danton wrote:
>> TLB miss is one of the concerned factors when tuning the performance of user
>> applications, and there are on netlogic XLR chip eight 64-bit registers,
>> c0 register 22 select 0-7, which could be used as temporary storage.
>>
>> One of them is used for counting TLB refill, and any comment is appreciated.
>>
>
> Few comments:
>
> Adding this unconditionally will add overhead to the TLB refill handler, this
> should be probably controlled by a boot-time variable, or with some
> perf/profile framework.
>

Boot-time variable will be added.

> If you have access to our SDK, it uses register 22,2 for counting TLB misses
> it would be good to retain that compability, otherwise it will mess up when
> we merge this back to our internal code.
>

It is clear for all users if the usage of reg 22 is defined in , say,
mips-extns.h?

> The reporting part currently will only print the misses on a crash (if I am
> not mistaken), again this has to be tied in with some standard framework.
>

How about one line added in /proc/interrupts?

Thanks
Hillf



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

  Powered by Linux