Issue metadata
Sign in to add a comment
|
Memory-infra UMA for malloc is > than slow-report |
||||||||||||||||||||||||
Issue descriptionI was comparing data between our new uma and go/slow-memory-reports Everything seems fine, the only odd thing is that malloc reported by our new UMA is > than the one from SLM, despite the fact that SLM samples only on low-memory scenarios. I would have expected SLM to be higher. See data in https://docs.google.com/a/google.com/document/d/1YEt23GNGg2IN60hX14qkVC5ZgNYk6wSVUipj-gTlnWk/edit?usp=sharing I suspect that what might be going on is that the temporary summarization code in memory_dump_manager.cc is extracting the outer size of malloc (incl fragmentation and caches) while slow reports might be looking at allocated_object_sizes. Not worth fixing if that's the case given that we are working on moving the full memory-infra computation code, but would be nice to just check that's the case just for our peace of mind.
,
May 31 2017
That does not make sense to me. On Android, where we get maximum number of slow report traces from the numbers for malloc and malloc/allocated_objects should be equal. So, there should be no difference because of choosing different metrics. AFAIK slow reports use malloc and not allocated_objects_size. The link for UMA has a filter for RAM size to 2-3GB. Slow reports does not have such filter for the average graph. Anyway after removing that filter the malloc average in UMA shows 37 and slow reports show 34. Now the other issue is devices running on Canary and Dev could have 64 bit chrome and UMA does not seem to have a filter for that. Slow reports graph shows either 32bit or 64 bit only. 32bit avg: 34 64bit avg: 54 I am not sure if we can make a fair comparison now :(
,
Jun 1 2017
You can filter by 32/64 bit in UMA: click the 'AND' button at the bottom of the filters then select 'bitness' in the first of the new dropdowns that appear. When I do this (and also remove the 2-3GB filter - nice catch) the numbers seem sensible (UMA < slow reports).
,
Jun 1 2017
Ok I figured out. 1) I made a bunch of distraction mistakes: - the 2-3 GB filter is because of an early attempt of matching the histogram of SMM. I forgot to remove. - You are right about bitness. I re-copy/pasted the data and now make sense. I also figured out that the math for 95th percentile is different between UMA and SMM. This is because data in the UMA dynamic table is pre-bucketed so they take the 95th percentile of something that has been already bucketed. This explains why now the avg match but the 95th percentile diverge a bit. No other action to be done here. We'll fix the rest once we move the graph pipeline into chrome. Thanks for the inputs |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by hjd@chromium.org
, May 31 2017