<p dir="ltr">On Oct 21, 2016 1:07 PM, "Tapani Pälli" <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>> wrote:<br>
><br>
><br>
><br>
> On 10/21/2016 12:51 PM, Marek Olšák wrote:<br>
>><br>
>> On Fri, Oct 21, 2016 at 6:58 AM, Tapani Pälli <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>> On 10/20/2016 09:24 PM, Marek Olšák wrote:<br>
>>>><br>
>>>><br>
>>>> On Thu, Oct 20, 2016 at 6:31 PM, Tapani Pälli <<a href="mailto:tapani.palli@intel.com">tapani.palli@intel.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>><br>
>>>>> On 10/20/2016 06:55 PM, Marek Olšák wrote:<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Mon, Oct 17, 2016 at 9:03 PM, Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Hi,<br>
>>>>>>><br>
>>>>>>> The latest branch:<br>
>>>>>>> <a href="https://cgit.freedesktop.org/~mareko/mesa/log/?h=glsl-alloc-rework2">https://cgit.freedesktop.org/~mareko/mesa/log/?h=glsl-alloc-rework2</a><br>
>>>>>>><br>
>>>>>>> It contains:<br>
>>>>>>> - all review comments resolved<br>
>>>>>>> - commits from Tapani's jenkins branch (fixes for glsl, nir, i965)<br>
>>>>>>><br>
>>>>>>> My updated patches are also on the list if you wanna review them.<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> Since there are no other comments, it looks like it's ready to land.<br>
>>>>>> i965 and Gallium were tested by Tapani and me, respectively. The<br>
>>>>>> branch contains all fixes first, followed by the allocation changes.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> I haven't had time for further testing but it would make sense to try<br>
>>>>> also<br>
>>>>> with some benchmarks and steam games on i965. JP recalled there was<br>
>>>>> something that got triggered by Manhattan earlier with his patches. I'll<br>
>>>>> try<br>
>>>>> to get this testing done tomorrow.<br>
>>>><br>
>>>><br>
>>>><br>
>>>> I suggest you put shaders from Manhattan into your shader-db, so that<br>
>>>> you don't have to run the game under valgrind. Also in future, it's<br>
>>>> better to use shader-db instead of running games for stuff like this.<br>
>>>><br>
>>><br>
>>> Makes sense as ralloc is mostly used in compiler but I think some of those<br>
>>> rallocated structures get also accessed when app calls GL API. I'll run at<br>
>>> least gfxbench manually just as a paranoid check to see if there's anything.<br>
>>><br>
>>> About shader-db .. should we consider making a scripts folder there and<br>
>>> start sharing some? It's used for instruction count analysis, memory<br>
>>> analysis .. would be nice to have some sort of 'standard' skeleton scripts<br>
>>> for this which can be then modified for purposes.<br>
>><br>
>><br>
>> Not sure what you mean. Our script for shader-db reporting is si-report.py.<br>
>><br>
><br>
> I mean scripts for comparing runs. For example for compile time performance one might use Eric Anholt's compare-perf but that requires some additional scripts that print correct output from run. Or maybe for leaks it would be interesting to have a comparison summary script of memory leaks between runs? Current scripts seem to only report instruction count difference between 2 runs?</p>
<p dir="ltr">Well, it only reports instruction count difference for Intel. Our stats are completely different. I use the "time" command to measure compiler performance. It seems to do the job well.</p>
<p dir="ltr">><br>
> I did run some valgrind comparisons with gfxbench4, your branch against Mesa master. I did not spot anything obvious related to ralloc.<br>
><br>
> On i965 there's a huge load of invalid writes's and read's in general but this happens on master as well so maybe these are not 'valid hits'. There's also some leaks both with master and your branch but your branch has less, so it seems to fix some things.</p>
<p dir="ltr">It can't fix anything. Both allocators are hierarchical, so most code doesn't care about freeing memory.</p>
<p dir="ltr">I usually don't see any invalid reads and writes with radeonsi.</p>
<p dir="ltr">Marek</p>
<p dir="ltr">><br>
> // Tapani<br>
</p>